japaric / rust-cross

Everything you need to know about cross compiling Rust programs!
Apache License 2.0
2.51k stars 94 forks source link

missing gcc-multilib #36

Open VBota1 opened 6 years ago

VBota1 commented 6 years ago

Hello,

i had to install: gcc-multilib

to fix the following errors: /usr/bin/ld: cannot find Scrt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: cannot find -lutil /usr/bin/ld: cannot find -lutil /usr/bin/ld: cannot find -ldl /usr/bin/ld: cannot find -lrt /usr/bin/ld: cannot find -lpthread /usr/bin/ld: cannot find -lpthread /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: cannot find -lgcc_s /usr/bin/ld: cannot find -lc /usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -lrt /usr/bin/ld: cannot find -lpthread /usr/bin/ld: cannot find -lutil /usr/bin/ld: cannot find crtn.o

sunjay commented 6 years ago

Note that installing this will uninstall gcc-arm-linux-gnueabihf and then you will get the error:

error: linker `arm-linux-gnueabihf-gcc` not found

See also: Can't install both gcc-multilib and gcc-arm-linux-gnueabihf

autodidaddict commented 5 years ago

I just ran into this problem and I'm stuck with the inability to compile for ARM v7 from my Ubuntu machine. Is there a workaround for this? I actually need this capability for the chapter I'm working on in my WebAssembly book.