Fri, 06 Jan 2006

Permalink 02:38:43 pm, Categories: PowerPC-port, Posted by: DNAku

I finally managed to compile glibc-2.6.3 on PowerPC with gcc-4.0.2.
First there seemed to be a problem with the kernel-headers. Because of a small glitch in the kernel-headers FrugalBuild I was using the headers for i386.

After that it was just a matter of googling for a patch to fix each compile error I ran into. Some patches weren't easy to find, but once I noticed that a one of those errors had already been fixed in the cvs, I just got a cvs snapshot and made the final patch that way. In the end I had 4 patches for ppc and it compiles perfectly now.

And because glibc compiled with gcc 4.0.2 I was able to successfully build pacman-2.9.99.7. I also managed to compile Yaboot thanks to some CLFS patch. Next on the list is powerpc-utils.

Comments:

Comment from: Daniel [Visitor]
Is it possible for you to list the bugs you ran into and how you fixed them? I am currently trying to build glibc-2.3.6 with gcc-4.0.2 for powerpc and am running into errors with sysdeps/generic/ldsodefs.h

The configure script I am using is: CC=/usr/local/crossgcc/bin/powerpc-linux-gcc AR=/usr/local/crossgcc/bin/powerpc-linux-ar RANLIB=/usr/local/crossgcc/bin/powerpc-linux-ranlib ../glibc-2.3.6/configure --host=powerpc-linux-gnu --with-headers=/usr/src/kernels/2.6.15-1.1831_FC4-smp-i686/include/ --enable-add-ons=linuxthreads --prefix=/usr/local/crossgcc --without-fp
Permalink Tue, 14 Feb 2006 @ 19:19
Comment from: DNAku [Member] · http://OpenDNAku.be
These are all the patches that I used (including one non-ppc related patch):

glibc-2.3.6-__lround-fix.patch
glibc-__bind-fix.patch
glibc-nptl-ppc.patch
glibc-2.3.5-dlopen.diff
glibc-20051107-localedef_segfault-1.patch

It was configured with:
configure --prefix=/usr --with-tls --with-__thread \
--enable-add-ons=nptl --enable-kernel=2.6.6 --enable-bind-now --without-cvs


You could also check out the FrugalBuild for further information


Permalink Tue, 14 Feb 2006 @ 19:35

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.
Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)

authimage

Developers' Blogs: DNAku

March 2010
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Search

Categories


Syndicate this blog XML

powered by
Frugalware Linux
the site is valid!
Valid XHTML 1.0!
Valid CSS!
Valid RSS!