June 09, 2020 32 bit phobos | ||||
---|---|---|---|---|
| ||||
I tried to compile a 32 bit executable but my system does not have 32 bit phobos. How do I get 32 bit phobos? I am using Manjaro. dmd -m32 source/test2.d /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../libphobos2.a when searching for -lphobos2 /usr/bin/ld: skipping incompatible /usr/lib/libphobos2.a when searching for -lphobos2 /usr/bin/ld: cannot find -lphobos2 collect2: error: ld returned 1 exit status Error: linker exited with status 1 |
June 10, 2020 Re: 32 bit phobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to welkam | On Tuesday, 9 June 2020 at 17:58:56 UTC, welkam wrote: > I tried to compile a 32 bit executable but my system does not have 32 bit phobos. How do I get 32 bit phobos? I am using Manjaro. > > dmd -m32 source/test2.d > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../libphobos2.a when searching for -lphobos2 > /usr/bin/ld: skipping incompatible /usr/lib/libphobos2.a when searching for -lphobos2 > /usr/bin/ld: cannot find -lphobos2 > collect2: error: ld returned 1 exit status > Error: linker exited with status 1 Download a DMD archive (.tar.xz) from https://dlang.org/download.html or use the official install script. DMD archives contain both 32 and 64-bit binaries. |
Copyright © 1999-2021 by the D Language Foundation