Gentoo Archives: gentoo-embedded

From: Daniel Glaser <daniel.glaser@××××××××××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crosscompile bash
Date: Sat, 18 Nov 2006 15:31:06
Message-Id: 455F270B.5050008@chaintronics.com
In Reply to: Re: [gentoo-embedded] crosscompile bash by Corey
1 Hi
2 > Well, I tried cross-emerging bash-3.2_p5, and for whatever reason, did not suffer
3 > the "cannot run test program while cross compiling" error that bash-3.1_p17 was
4 > giving me; however now thing break later on with:
5 >
6 > /usr/libexec/gcc/i686-pc-linux-uclibc/ld: cannot find -lcurses
7 > collect2: ld returned 1 exit status
8 > make: *** [bash] Error 1
9 >
10 > ...however ncurses has been installed, both in the host target and the build host...
11 >
12
13 You have to merge every library to your cross-compile-root, means in
14 your case to merge ncurses first to /usr/cross-... And then to your
15 other root without the X-Toolchain.
16 This is, because the X-Compiler searches there for libraries and not in
17 another $ROOT. So, the steps to go are:
18
19 ROOT="/usr/cross-SOMEXTOOLCHAIN" [
20 PORTAGE_CONFIGROOT="SOMEOTHERROOTWITHCONF"] emerge LIBPACKAGE
21 ROOT="YOUROTHERROOT" emerge PACKAGES
22
23 I always emerge everything first to the X-Toolchain root with making
24 packages and then I emerge the packages without recompiling them to my
25 development root.
26
27 -daniel
28 --
29 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] crosscompile bash Corey <corey@×××××××××.net>