powerpc NPTL port

Khem Raj raj.khem at gmail.com
Sun May 9 18:30:58 UTC 2010


On (09/05/10 11:45), Rob Landley wrote:
> On Saturday 08 May 2010 20:20:27 Khem Raj wrote:
> > > > > And this time it died with:
> > > > >
> > > > >   HOSTCC utils/getconf.host
> > > > > ../utils/getconf.c:1025: error: '_SC_V7_ILP32_OFF32' undeclared here
> > > > > (not in a function)
> > > > > ../utils/getconf.c:1026: error: '_SC_V7_ILP32_OFFBIG' undeclared here
> > > > > (not in a function)
> > > > > ../utils/getconf.c:1027: error: '_SC_V7_LP64_OFF64' undeclared here
> > > > > (not in a function)
> > > > > ../utils/getconf.c:1028: error: '_SC_V7_LPBIG_OFFBIG' undeclared here
> > > > > (not in a function)
> >
> > I dont get the above errors.
> >
> > > > > ../utils/getconf.c: In function 'main':
> > > > > ../utils/getconf.c:1130: error: 'GETCONF_DIR' undeclared (first use
> > > > > in this function)
> >
> > This one I do get and I fixed it you can try the patch here
> > http://uclibc.org/~kraj/0001-utils-Makefile.in-Define-GETCONF_DIR-for-host-
> >builds.patch
> 
> I switched the utils build off for the moment.  I can try that again later.


ok

> 
> Sanity test: building Hello World.
> /home/landley/firmware/temp/aboriginal/build/simple-cross-compiler-
> powerpc/lib/../powerpc-unknown-linux/bin/ld: cannot find /lib//libc.so.0
> collect2: ld returned 1 exit status
> 
> Your .config has HARDWIRED_ABSPATH switched on, meaning its linker scripts 
> assume the libraries have already been installed into a specific location on 
> the host at build time, which isn't something I want to do when cross 
> compiling...  So, switching that off in the .config and rebuilding...
> 
> powerpc-cc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 --static -o 
> size size.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a 
> ../libiberty/libiberty.a -lm
> bucomm.o: In function `make_tempname':
> bucomm.c:(.text+0x200): undefined reference to `mktemp'
> bucomm.c:(.text+0x24c): undefined reference to `mktemp'
> collect2: ld returned 1 exit status
> 
> That's where it died next.

you probably have to enable UCLIBC_SUSV3_LEGACY
> 
> Rob
> -- 
> Latency is more important than throughput. It's that simple. - Linus Torvalds


More information about the uClibc mailing list