Cross compiled toolchain problem
Peter S. Mazinger
ps.m at gmx.net
Thu Jun 15 21:40:12 UTC 2006
On Thu, 15 Jun 2006, Swapneel Shah wrote:
> Hi
>
>
>
> I have created an cross compile toolchain using the latest version of
> buildroot.
>
> I am trying to compile XFree86 for my root file system and the build fails
> with following errors.
I would rather try to build modular-X in a cross-compiled env.
>
>
>
> cc -I../../../exports/include -o mkg3states -O2 -ansi -Wall
> -Wpointer-arith -Wundef -I../../../ex
>
> ports/include/X11 -I../../../include/extensions
> -I../../../programs/Xserver/include -I../../../inclu
>
> de/extensions -I../../.. -I../../../exports/include -Dlinux
> -D_POSIX_SOURCE -
>
> D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE -DFUNCPROTO=15 -DNARROWPROTO
> mkg3states.c -L/swapneel/bui
>
> ldroot/build_i686/staging_dir/lib
>
> /usr/bin/ld: warning: ld-uClibc.so.0, needed by
> /swapneel/buildroot/build_i686/staging_dir/lib/libc.
>
> so.0, not found (try using -rpath or -rpath-link)
>
> /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0xc): In function
> `_start':
something is wrong here, you are using crt1.o from host instead of the one
in staging_dir/usr/lib
>
> : undefined reference to `__libc_csu_fini'
>
> /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x11): In
> function `_start':
>
> : undefined reference to `__libc_csu_init'
>
> /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x1d): In
> function `_start':
>
> : undefined reference to `__libc_start_main'
this is definitely glibc's crt1.o (uClibc does not have __libc_start_main)
Peter
>
> /swapneel/buildroot/build_i686/staging_dir/lib/libc.so.0: undefined
> reference to `_dl_app_init_array
>
> '
>
> /swapneel/buildroot/build_i686/staging_dir/lib/libc.so.0: undefined
> reference to `_dl_app_fini_array
>
> '
>
> collect2: ld returned 1 exit status
>
> make[4]: [g3states.h] Error 1 (ignored)
>
> ./mkg3states > g3_states_h
>
> /bin/sh: ./mkg3states: No such file or directory
>
> make[4]: *** [g3states.h] Error 1
>
> make[4]: Leaving directory `/swapneel/xfree/xc/lib/lbxutil/image'
>
> make[3]: *** [includes] Error 2
>
> make[3]: Leaving directory `/swapneel/xfree/xc/lib/lbxutil'
>
> make[2]: *** [includes] Error 2
>
> make[2]: Leaving directory `/swapneel/xfree/xc/lib'
>
> make[1]: *** [includes] Error 2
>
> make[1]: Leaving directory `/swapneel/xfree/xc'
>
> make: *** [World] Error 2
>
>
>
> I have to get Xfree86 compiled as the tinyx shipped with buildroot doesn't
> have the required driver files. I tried looking for the solution but didn't
> find any. Please suggest how I should go about it.
>
>
>
> Regards,
>
> Swapneel Shah
>
>
>
>
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list