Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cross-building a chroot : hot to fix failing builds?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8719
Location: ~Brussels - Belgique

PostPosted: Wed Sep 21, 2016 10:42 am    Post subject: cross-building a chroot : hot to fix failing builds? Reply with quote

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
View user's profile Send private message
heiwa
n00b
n00b


Joined: 24 Oct 2012
Posts: 70

PostPosted: Wed Sep 21, 2016 12:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8719
Location: ~Brussels - Belgique

PostPosted: Wed Sep 21, 2016 12:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum