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

build fails when compiling for armv7-unknown-linux-gnueabihf #309

Closed
tshepang opened this Issue Jan 27, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@tshepang

tshepang commented Jan 27, 2018

$ cross build --release --target armv7-unknown-linux-gnueabihf --verbose
[snip]
   Compiling pnet v0.20.0
     Running `/target/release/build/pnet-deda5f3471ca1c75/build-script-build`
error: failed to run custom build command for `pnet v0.20.0`
process didn't exit successfully: `/target/release/build/pnet-deda5f3471ca1c75/build-script-build` (exit code: 1)
--- stderr
/target/release/build/pnet-deda5f3471ca1c75/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.18' not found (required by /target/release/build/pnet-deda5f3471ca1c75/build-script-build)

warning: build failed, waiting for other jobs to finish...
error: build failed

@tshepang tshepang changed the title from build fails when compiling for armv7-unknown-linux-musleabihf to build fails when compiling for armv7-unknown-linux-gnueabihf Jan 27, 2018

@mrmonday

This comment has been minimized.

Contributor

mrmonday commented Jan 27, 2018

Hi - which host OS/glibc are you using? This works for me:

$ uname -a
Linux moya 4.14.15-1-ARCH #1 SMP PREEMPT Tue Jan 23 21:49:25 UTC 2018 x86_64 GNU/Linux
$ pacman -Qi glibc
Name            : glibc
Version         : 2.26-11
. . .
$ rustc -V
rustc 1.25.0-nightly (b5392f545 2018-01-08) 
$ cargo -V
cargo 0.25.0-nightly (a88fbace4 2017-12-29)
$ cargo build --release --target armv7-unknown-linux-gnueabihf --verbose
       Fresh pnet_base v0.20.0 (file:///home/robert/projects/libpnet/pnet_base)
       Fresh lazy_static v1.0.0
       Fresh utf8-ranges v1.0.0
       Fresh glob v0.2.11
       Fresh cfg-if v0.1.2
       Fresh term v0.4.6
       Fresh rustc-serialize v0.3.24
       Fresh libc v0.2.36
       Fresh regex-syntax v0.4.2
       Fresh unicode-xid v0.0.3
       Fresh bitflags v0.5.0
       Fresh void v1.0.2
       Fresh ipnetwork v0.12.7
       Fresh pnet_macros_support v0.20.0 (file:///home/robert/projects/libpnet/pnet_macros_support)
       Fresh memchr v2.0.1
       Fresh log v0.4.1
       Fresh syntex_pos v0.42.0
       Fresh pnet_sys v0.20.1 (file:///home/robert/projects/libpnet/pnet_sys)
       Fresh unreachable v1.0.0
       Fresh aho-corasick v0.6.4
       Fresh log v0.3.9
       Fresh pnet_datalink v0.20.0 (file:///home/robert/projects/libpnet/pnet_datalink)
       Fresh thread_local v0.3.5
       Fresh syntex_errors v0.42.0
       Fresh regex v0.2.5
       Fresh syntex_syntax v0.42.0
       Fresh syntex v0.42.2
       Fresh pnet_macros v0.20.0 (file:///home/robert/projects/libpnet/pnet_macros)
       Fresh pnet_packet v0.20.0 (file:///home/robert/projects/libpnet/pnet_packet)
       Fresh pnet_transport v0.20.0 (file:///home/robert/projects/libpnet/pnet_transport)
       Fresh pnet v0.20.0 (file:///home/robert/projects/libpnet)
    Finished release [optimized] target(s) in 0.0 secs

It looks like the build is looking for glibc 2.18 or later - do you have that installed? Are you able to build a hello-world for armv7-unknown-linux-gnueabihf, or does this only happen for libpnet?

@mrmonday mrmonday added the support label Jan 27, 2018

@tshepang

This comment has been minimized.

tshepang commented Jan 27, 2018

Was actually using cross, instead of cargo, and it must this issue, since the problem disappeared after I did a cargo clean.

@tshepang tshepang closed this Jan 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment