Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

32 bit x86 support? #219

Closed
Hoverbear opened this issue Feb 1, 2023 · 2 comments · Fixed by #229
Closed

32 bit x86 support? #219

Hoverbear opened this issue Feb 1, 2023 · 2 comments · Fixed by #229
Assignees
Labels
Milestone

Comments

@Hoverbear
Copy link
Contributor

We hear some folks are using 32 bit x86 machines so we should try to support that if we can.

@cole-h
Copy link
Member

cole-h commented Feb 1, 2023

I did a few minutes of playing around and was able to get fairly far:

$ nix-shell -p glibc_multi.dev
nix-shell$ TARGET_CC=cc cargo build --target=i686-unknown-linux-gnu
[...snip...]
= note: /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: skipping incompatible /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: skipping incompatible /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: skipping incompatible /nix/store/sq78g74zs4sj7n1j5709g9c2pmffx1y8-gcc-11.3.0-lib/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: skipping incompatible /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: skipping incompatible /nix/store/sq78g74zs4sj7n1j5709g9c2pmffx1y8-gcc-11.3.0-lib/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: cannot find libgcc_s.so.1: No such file or directory
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: skipping incompatible /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: skipping incompatible /nix/store/sq78g74zs4sj7n1j5709g9c2pmffx1y8-gcc-11.3.0-lib/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: skipping incompatible /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: skipping incompatible /nix/store/sq78g74zs4sj7n1j5709g9c2pmffx1y8-gcc-11.3.0-lib/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: skipping incompatible /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/libgcc.a when searching for -lgcc
          /nix/store/178vvank67pg2ckr5ic5gmdkm3ri72f3-binutils-2.39/bin/ld: cannot find -lgcc: No such file or directory
          collect2: error: ld returned 1 exit status

However, as you can see, linking failed. I didn't spend much more time investigating that.

glibc_multi.dev was required for ring to compile:

  /nix/store/49zl26cmymymzzh1xqahd6cp1g10l141-glibc-2.35-224-dev/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
      7 | # include <gnu/stubs-32.h>
        |           ^~~~~~~~~~~~~~~~

@Hoverbear Hoverbear added this to the v0.2.1 milestone Feb 1, 2023
@Hoverbear Hoverbear self-assigned this Feb 1, 2023
@Hoverbear Hoverbear mentioned this issue Feb 1, 2023
7 tasks
@Hoverbear Hoverbear added the Linux label Feb 1, 2023
@Hoverbear
Copy link
Contributor Author

Noting 32 bit Darwin machines are not included in planned support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants