powerpc NPTL port

Rob Landley rob at landley.net
Sun May 9 00:40:14 UTC 2010


On Saturday 08 May 2010 19:30:30 Khem Raj wrote:
> On (08/05/10 19:13), Rob Landley wrote:
> > On Saturday 08 May 2010 18:15:42 Khem Raj wrote:
> > > On (08/05/10 17:36), Rob Landley wrote:
> > > > # Plug in your .config
> > > >
> > > > wget http://uclibc.org/~kraj/config.nptl.ppc \
> > > >   -O sources/targets/powerpc/miniconfig-alt-uClibc
> > > >
> > > > And it went:
> > > >
> > > > --2010-05-08 17:32:07--  http://uclibc.org/~kraj/config.nptl.ppc
> > > > Resolving uclibc.org... 140.211.167.224
> > > > Connecting to uclibc.org|140.211.167.224|:80... connected.
> > > > HTTP request sent, awaiting response... 403 Forbidden
> > > > 2010-05-08 17:32:07 ERROR 403: Forbidden.
> > > >
> > > > Wanna fix that?
> > >
> > > hmmm permission problem. Fixed now. Retry please.
> >
> > Yup.
> >
> > > > In theory the next steps would be:
> > > >
> > > > USE_UNSTABLE=uClibc ./build.sh powerpc
> > > > cd build/system-image-powerpc
> > > > ./run-emulator.sh
> > > >
> > > > And that should boot up a virtual powerpc system under QEMU using the
> > > > snapshot of the current -git version, with your patches.  And there
> > > > would be a native development toolchain in there that builds stuff
> > > > against current -git, too.
> > >
> > > cool stuff. Let me know how it goes.
> >
> >   CC libpthread/nptl/sysdeps/powerpc/tcb-offsets.s
> > cc1: error: unrecognized command line option "-Wold-style-declaration"
> > make: *** [libpthread/nptl/sysdeps/powerpc/tcb-offsets.s] Error 1
> >
> > Doesn't like gcc 4.2.1 looks like.  (The last GPLv2 release, I haven't
> > moved to an alternative yet.)
> >
> > Commenting out that line...
> >
> > 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)
> > ../utils/getconf.c: In function 'main':
> > ../utils/getconf.c:1130: error: 'GETCONF_DIR' undeclared (first use in
> > this function)
> > ../utils/getconf.c:1130: error: (Each undeclared identifier is reported
> > only once
> > ../utils/getconf.c:1130: error: for each function it appears in.)
> > ../utils/getconf.c:1130: warning: pointer type mismatch in conditional
> > expression
> > ../utils/getconf.c:1157: warning: implicit declaration of function
> > 'mempcpy' ../utils/getconf.c:1157: warning: incompatible implicit
> > declaration of built- in function 'mempcpy'
> > ../utils/getconf.c:1220: warning: incompatible implicit declaration of
> > built- in function 'mempcpy'
> > make[1]: *** [../utils/getconf.host] Error 1
> > make: *** [hostutils] Error 2
> >
> > Any ideas?
>
> you need to have libc6-dev installed on your build box.

It is:

aptilandley at driftwood:~/firmware/firmware$ aptitude show libc6-dev
Package: libc6-dev
State: installed
Automatically installed: no
Version: 2.9-4ubuntu6.1
Priority: optional
Section: libdevel
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss at lists.ubuntu.com>
Uncompressed Size: 11.7M
Depends: libc6 (= 2.9-4ubuntu6.1), linux-libc-dev
Recommends: gcc | c-compiler
Suggests: glibc-doc, manpages-dev
Conflicts: libstdc++2.10-dev (< 1:2.95.2-15), gcc-2.95 (< 1:2.95.3-8), binutils
           (< 2.17cvs20070426-1), libc-dev
Replaces: man-db (<= 2.3.10-41), gettext (<= 0.10.26-1), ppp (<= 2.2.0f-24),
          libgdbmg1-dev (<= 1.7.3-24)
Provides: libc-dev
Description: GNU C Library: Development Libraries and Header Files
 Contains the symlinks, headers, and object files needed to compile and link
 programs which use the standard C library.

Rob
-- 
Latency is more important than throughput. It's that simple. - Linus Torvalds


More information about the uClibc mailing list