Skip to content
This repository has been archived by the owner on Feb 3, 2019. It is now read-only.

Can't link #13

Open
ghost opened this issue Mar 14, 2016 · 1 comment
Open

Can't link #13

ghost opened this issue Mar 14, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 14, 2016

When i try to use ./cross32 build, i get this:

 Compiling wiringpi-parallel v0.1.0 (file:///home/dimitri/rust-pi/wiringpi-parallel)
error: linking with `gcc-sysroot` failed: exit code: 1
note: "gcc-sysroot" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/home/dimitri/pi-rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/home/dimitri/rust-pi/wiringpi-parallel/target/arm-unknown-linux-gnueabihf/debug/wiringpi_parallel.0.o" "-o" "/home/dimitri/rust-pi/wiringpi-parallel/target/arm-unknown-linux-gnueabihf/debug/wiringpi_parallel" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/home/dimitri/rust-pi/wiringpi-parallel/target/arm-unknown-linux-gnueabihf/debug" "-L" "/home/dimitri/rust-pi/wiringpi-parallel/target/arm-unknown-linux-gnueabihf/debug/deps" "-L" "/home/dimitri/pi-rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/dimitri/rust-pi/wiringpi-parallel/target/arm-unknown-linux-gnueabihf/debug/deps/libcylus-f1f1ea271432be73.rlib" "/home/dimitri/rust-pi/wiringpi-parallel/target/arm-unknown-linux-gnueabihf/debug/deps/libmmap-4df47dcf5ca20c30.rlib" "/home/dimitri/rust-pi/wiringpi-parallel/target/arm-unknown-linux-gnueabihf/debug/deps/liblibc-f7bf65021e46423a.rlib" "/home/dimitri/pi-rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libstd-9026086f.rlib" "/home/dimitri/pi-rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcollections-9026086f.rlib" "/home/dimitri/pi-rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/librustc_unicode-9026086f.rlib" "/home/dimitri/pi-rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/librand-9026086f.rlib" "/home/dimitri/pi-rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liballoc-9026086f.rlib" "/home/dimitri/pi-rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liballoc_jemalloc-9026086f.rlib" "/home/dimitri/pi-rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liblibc-9026086f.rlib" "/home/dimitri/pi-rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcore-9026086f.rlib" "-l" "c" "-l" "m" "-l" "dl" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "compiler-rt"
note: /home/dimitri/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find Scrt1.o: Arquivo ou diretório não encontrado
/home/dimitri/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: Arquivo ou diretório não encontrado
/home/dimitri/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lc
/home/dimitri/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lm
/home/dimitri/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -ldl
/home/dimitri/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lpthread
collect2: error: ld returned 1 exit status

error: aborting due to previous error
Could not compile `wiringpi-parallel`.

To learn more, run the command again with --verbose.
@Ogeon
Copy link
Owner

Ogeon commented Mar 14, 2016

That's odd. They should exist in the Raspberry Pi sysroot. Did you do the gcc trick? Did you modify any scripts? Did you do anything else out of the ordinary?

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

No branches or pull requests

1 participant