On Sunday 09 May 2010 13:30:58 Khem Raj wrote:
> 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-h
> > >ost- 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
It built with CPUS=1, but when I took that out and it autodetected an SMP
build (it does real CPUs *1.5, thus make -j 3 in this case), the build died
with:
CC libpthread/nptl/sysdeps/unix/sysv/linux/gen_lowlevelbarrier.s
In file included from ./include/sys/syscall.h:24,
from ./libc/sysdeps/linux/common/sysdep.h:20,
from ./libc/sysdeps/linux/powerpc/sysdep.h:19,
from libpthread/nptl/sysdeps/powerpc/tcb-offsets.c:1:
./include/features.h:187:33: error: bits/uClibc_config.h: No such file or
directory
In file included from ./include/sched.h:23,
from
libpthread/nptl/sysdeps/unix/sysv/linux/gen_lowlevelbarrier.c:2:
./include/features.h:187:33: error: bits/uClibc_config.h: No such file or
directory
make: *** [libpthread/nptl/sysdeps/unix/sysv/linux/gen_lowlevelbarrier.s]
Error 1
make: *** Waiting for unfinished jobs....
In file included from ./libpthread/nptl/sysdeps/pthread/pthread.h:34,
from
./libpthread/nptl/sysdeps/powerpc/../../../nptl_db/thread_db.h:26,
from ./libpthread/nptl/sysdeps/powerpc/../../descr.h:32,
from ./libpthread/nptl/sysdeps/powerpc/tls.h:71,
from ./include/tls.h:6,
from libpthread/nptl/sysdeps/powerpc/tcb-offsets.c:2:
./libc/sysdeps/linux/common/bits/uClibc_pthread.h:36: error: expected
identifier or '(' before 'void'
./libc/sysdeps/linux/common/bits/uClibc_pthread.h:36: error: expected ')'
before numeric constant
./libc/sysdeps/linux/common/bits/uClibc_pthread.h:39: error: expected
identifier or '(' before 'void'
./libc/sysdeps/linux/common/bits/uClibc_pthread.h:39: error: expected ')'
before numeric constant
./libc/sysdeps/linux/common/bits/uClibc_pthread.h:40: error: expected
identifier or '(' before 'void'
./libc/sysdeps/linux/common/bits/uClibc_pthread.h:40: error: expected ')'
before numeric constant
./libc/sysdeps/linux/common/bits/uClibc_pthread.h:41: error: expected
identifier or '(' before 'void'
./libc/sysdeps/linux/common/bits/uClibc_pthread.h:41: error: expected ')'
before numeric constant
In file included from ./libpthread/nptl/sysdeps/pthread/pthread.h:34,
from
./libpthread/nptl/sysdeps/powerpc/../../../nptl_db/thread_db.h:26,
from ./libpthread/nptl/sysdeps/powerpc/../../descr.h:32,
from ./libpthread/nptl/sysdeps/powerpc/tls.h:71,
from ./include/tls.h:6,
from libpthread/nptl/sysdeps/powerpc/tcb-offsets.c:2:
./libc/sysdeps/linux/common/bits/uClibc_pthread.h:44:42: error: macro
"_pthread_cleanup_push_defer" passed 3 arguments, but takes just 1
./libc/sysdeps/linux/common/bits/uClibc_pthread.h:47:16: error: macro
"_pthread_cleanup_pop_restore" passed 2 arguments, but takes just 1
In file included from ./libpthread/nptl/sysdeps/powerpc/tls.h:71,
from ./include/tls.h:6,
from libpthread/nptl/sysdeps/powerpc/tcb-offsets.c:2:
./libpthread/nptl/sysdeps/powerpc/../../descr.h:293: error: 'PTHREAD_KEYS_MAX'
undeclared here (not in a function)
make: *** [libpthread/nptl/sysdeps/powerpc/tcb-offsets.s] Error 1
Rob
--
Latency is more important than throughput. It's that simple. - Linus Torvalds
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc