View previous topic :: View next topic |
Author |
Message |
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8719 Location: ~Brussels - Belgique
|
Posted: Wed Sep 21, 2016 10:42 am Post subject: cross-building a chroot : hot to fix failing builds? |
|
|
Hi!
I would like to update my Raspberry Pi 1 NFS root.
I do it using Code: | ROOT=/data/raspi_root armv6j-hardfloat-linux-gnueabi-emerge -DuNav @world |
It works for a set of ebuilds, but some fail.
For example, sys-apps/file cannot find -lz.
Code: | configure:14418: checking for gzopen in -lz
configure:14443: armv6j-hardfloat-linux-gnueabi-gcc -o conftest -O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed conftest.c -lz >&5
/usr/libexec/gcc/armv6j-hardfloat-linux-gnueabi/ld: cannot find -lz
collect2: error: ld returned 1 exit status |
How can I tell cross-emerge where to find existing libs and headers?
[EDIT] => first I need to install all necessary libs in /usr/${CROSS-TARGET},
List of other failing builds
- sys-apps/ncurses[cxx] : the g++ related variable is not resolved and points to absent program call (only arguments) bug 491422
- sys-devel/gcc : same problem with empty ${CXX} expansion
_________________ Kind regards,
Xavier Miller
Last edited by xaviermiller on Wed Sep 21, 2016 2:10 pm; edited 4 times in total |
|
Back to top |
|
|
heiwa n00b
Joined: 24 Oct 2012 Posts: 70
|
Posted: Wed Sep 21, 2016 12:42 pm Post subject: |
|
|
You have installed zlib similarly to /data/raspi_root ? I don't know
how to tell that crossdev, but sys-apps/file should compile after
letting zlib install to /usr/armv6j-hardfloat-linux-gnueabi . |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8719 Location: ~Brussels - Belgique
|
Posted: Wed Sep 21, 2016 12:44 pm Post subject: |
|
|
yeah, I will try it, first installing everything in /usr/arm*
EDIT: it works! Will give the list of the other failing builds in the first post (ncurses, ...) _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
|