1 |
Hi all, |
2 |
|
3 |
I've created a cross compiler chain for ARM with crossdev: |
4 |
> |
5 |
> NPTL_KERNEL_VERSION="2.6.16" USE="nptl nptlonly -fortran" crossdev -s4 |
6 |
> --gcc 4.1.1 --libc 2.4-r3 --binutils 2.17 --kernel 2.6.16 --target |
7 |
> arm-gentoo_arm11-linux-gnueabi |
8 |
|
9 |
I've crossbuilt with success a lot of basic packages for my NFS root |
10 |
filesystem target (including a native compiler) |
11 |
|
12 |
Now I want to cross compile bash and I've created a wrapper script to |
13 |
put some variables |
14 |
(see in attachment). The wrapper script purpose is to allow complex |
15 |
cross build that need specific lib link. |
16 |
|
17 |
The problem is when I'm using this script, something is broken in lib |
18 |
path and the cross compiler can't find the libc... |
19 |
|
20 |
> ./crossbuild_arm11.sh bash |
21 |
output wrapper_log in attachment |
22 |
|
23 |
|
24 |
If I'm using the emerge command like this (as I've done for the other |
25 |
packages) |
26 |
|
27 |
> |
28 |
> ACCEPT_KEYWORDS="arm ~arm" ARCH="arm" ROOT="/opt/gentoo/devel_root" |
29 |
> CHOST="arm-gentoo_arm11-linux-gnueabi" CBUILD="i686-pc-linux-gnu" |
30 |
> CFLAGS="-fomit-frame-pointer -pipe -Os -mlittle-endian |
31 |
> -mtune=arm1136jf-s -march=armv6" CXXFLAGS="${CFLAGS}" emerge bash |
32 |
|
33 |
The lib path is correct and the build seems to work. |
34 |
|
35 |
output emerge_log in attachment |
36 |
|
37 |
|
38 |
Any idea why the script way can't find the libc ? |
39 |
|
40 |
|
41 |
Thank for your help. |
42 |
|
43 |
R1. |