[Clfs-dev] PPC64 with 32 bit user space build comments

William Harrington wwh04660 at ucmo.edu
Sun Nov 16 10:26:04 PST 2008


Hello everybody,


     There was discussion one midnight in #CLFS-Support about 32 bit  
user space for sparc64, ppc64, and mips I think.  Can't remember it  
all at the moment, but here is what I have done with the latest SVN  
Powerpc build.

I did not run tests this round, just wanted to see what I'd run into.  
I'm still building Xorg on it and will report later.

These changes were made in packages:

binutils to 2.19
ncurses to 5.7
e2fsprogs to 1.41.3

cross-tools went as expected

temp-system had these issues:

ncurses-5.7 I had to set the path for the install of the terminal  
information with tic to use the tic just installed and not the tic on  
the host (the install will use the tic on the host if cross compiling  
is detected).
     PATH=/tools/bin:$PATH make install.data in misc fixed that. Any  
ideas on this one? Didn't happen with 5.6.

final-system build:

I loaded the kernel module for ppc then continued on
I had to build zlib for binutils-2.19 then binutils-2.19 went. I  
configured binutils-2.19 with --enable-64-bit-bfd. This will allow to  
build a 64 bit compiler at the end to build the kernel

gcc-4.2.3 there is a relocation problem that has existed for some time  
now.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37739
http://gcc.gnu.org/bugzilla/attachment.cgi?id=16463&action=view

I went into gcc/config/rs6000/x-rs6000 and added this to the top of  
the config:

cc1 : override LDFLAGS += -Wl,--relax
It'll bootstrap then.
Now after that, I completed the whole build and at the end when it was  
time to build the kernel I did this for gcc:
configured without multilib, languages c, disable shared, and prefix  
to /opt/gcc64.
Then I did make all-gcc then make install-gcc and then that compiler  
built my 64 bit compiler.

So with the Dual G5 system, I have 32 bit userspace and a compiler to  
build a 64 bit kernel. No need to build
binutils twice as 64 bit bfd was enabled in binutils in the final  
system.

Comments needed.

-William



More information about the Clfs-dev mailing list