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

Error when building for ARMv6 #21

Open
AgustinCB opened this issue Aug 27, 2018 · 0 comments
Open

Error when building for ARMv6 #21

AgustinCB opened this issue Aug 27, 2018 · 0 comments

Comments

@AgustinCB
Copy link

Hi!

I have a project using ears. I'm trying to compile it to ARMv6, but I'm getting the following error:

$ xargo build --target=arm-unknown-linux-gnueabihf --release
   Compiling ears v0.5.1
   Compiling wayland-client v0.12.5
   Compiling jpeg-decoder v0.1.15
   Compiling pistoncore-event_loop v0.37.0
   Compiling piston v0.37.0
error: linking with `arm-linux-gnueabihf-gcc` failed: exit code: 1
  |
  = note: "arm-linux-gnueabihf-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/home/agustin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears0-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears1-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears10-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears11-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears12-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears13-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears14-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears15-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears2-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears3-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears4-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears5-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears6-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears7-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears8-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.ears9-6b2dd9bcd030ef70c97df7db65d010ca.rs.rcgu.o" "-o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/libears-e272dc79f79667e4.so" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.crate.metadata.rcgu.o" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps/ears-e272dc79f79667e4.crate.allocator.rcgu.o" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/agustin/projects/emulators/target/arm-unknown-linux-gnueabihf/release/deps" "-L" "/home/agustin/projects/emulators/target/release/deps" "-L" "/usr/local/opt/openal-soft/lib" "-L" "/usr/local/lib" "-L" "/home/agustin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-l" "openal" "-l" "sndfile" "-Wl,-Bstatic" "-Wl,--whole-archive" "/tmp/rustc.Ed5wsrhR7jAU/liblazy_static-f4ce19faecf5cd71.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.Ed5wsrhR7jAU/liblibc-11194f979f69d9b5.rlib" "-Wl,--no-whole-archive" "-Wl,--start-group" "-L" "/home/agustin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-Wl,-Bdynamic" "-l" "std-9a440ef90899818f" "-Wl,--end-group" "-Wl,-Bstatic" "/tmp/rustc.Ed5wsrhR7jAU/libcompiler_builtins-874d313336916306.rlib" "-Wl,-Bdynamic" "-l" "util" "-l" "util" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util" "-l" "util" "-shared"
  = note: /usr/local/lib/libopenal.so: file not recognized: File format not recognized
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: Could not compile `ears`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Some information:

$ rustup show
Default host: x86_64-unknown-linux-gnu

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu
1.23.0-x86_64-unknown-linux-gnu

installed targets for active toolchain
--------------------------------------

arm-unknown-linux-gnueabihf
x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.28.0 (9634041f0 2018-07-30)
$ arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (GCC) 8.1.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ file /usr/local/lib/libopenal.so
/usr/local/lib/libopenal.so: symbolic link to /usr/lib/libopenal.so
$ file /usr/lib/libopenal.so
/usr/lib/libopenal.so: symbolic link to libopenal.so.1
$ file /usr/lib/libopenal.so.1
/usr/lib/libopenal.so.1: symbolic link to libopenal.so.1.18.2
$ file /usr/lib/libopenal.so.1.18.2
/usr/lib/libopenal.so.1.18.2: ELF 64-bit LSB pie executable x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=b64a34de15967f08feb2e4ea4e2a1bb9258b2500, stripped

Any idea what am I doing wrong? Thanks!

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

No branches or pull requests

1 participant