You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile to the 32bit target architecture "i686-unknown-linux-musl" with mojo build --target-triple i686-unknown-linux-musl hello.mojo but got the following error:
/usr/bin/ld: i386 architecture of input file '/tmp/mojo_archive-3a1894a.a(hello.mojo.8.o)' is incompatible with i386:x86-64 output
I found this answer in a info channel:
If want compile the file as 32 bits, you can use:
ld -m elf_i386 -s -o file file.o
Is it possible to set the switch -m elf_i386 with the build options? I also tried to force a docker container to run the i386 architecture by using the flag --platform=linux/386, but then mojo cannot be installed. Maybe there is no i386 binary available for download?
Could you please give me a hint to achieve that compilation target?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to compile to the 32bit target architecture "i686-unknown-linux-musl" with
mojo build --target-triple i686-unknown-linux-musl hello.mojo
but got the following error:I found this answer in a info channel:
Is it possible to set the switch
-m elf_i386
with the build options? I also tried to force a docker container to run the i386 architecture by using the flag--platform=linux/386
, but then mojo cannot be installed. Maybe there is no i386 binary available for download?Could you please give me a hint to achieve that compilation target?
Beta Was this translation helpful? Give feedback.
All reactions