Cross compiled toolchain problem

Swapneel Shah swapneel.shah at silicus.com
Fri Jun 16 11:45:08 UTC 2006


Hi

I could resolve the error, but found that XFree86 code does not build
executables those are needed to be executed on the host platform using host
compiler.  i.e in this case mkg3states executable will be built using cross
compiler and hence when the build tries to use it, gives Segmentation fault.

I went ahead with creating a root file system and started compiling XFree86
in that environment.  In that environment, encountered following error

undefined reference to ecvt
undefined reference to fcvt

I have found couple of posts on the net where it says, this problem has been
fixed in the latest snapshot of uClibc.  I am using the latest snapshot but
still I am getting the problem.  Does anyone know how to resolve this
problem?

Regards
Swapneel Shah

> -----Original Message-----
> From: Peter S. Mazinger [mailto:ps.m at gmx.net]
> Sent: Friday, June 16, 2006 3:10 AM
> To: Swapneel Shah
> Cc: uclibc at uclibc.org
> Subject: Re: Cross compiled toolchain problem
> 
> 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