| View previous topic :: View next topic |
| Author |
Message |
xming Guru


Joined: 02 Jul 2002 Posts: 409
|
Posted: Thu Jan 09, 2003 5:16 pm Post subject: sparc64 + gcc64 |
|
|
ok I have finally got some time to try this,
Here is what I am going to do
| Code: |
# unpack all src in /usr/local/src
# for binutils: ./configure --target=sparc64-gentoo-linux-gnu --prefix=/opt/sparc64 ; make ; make install
# GCC
CFLAGS="-O2 -Dinhibit_libc" ./configure --target=sparc64-gentoo-linux-gnu --prefix=/opt/sparc64 --enable-languages=c --disable-shared --disable-multilib --enable-threads=single
export PATH=/opt/sparc64/bin:$PATH
make ; make install
# Kernel headears
cd /opt/sparc64/sparc64-gentoo-linux-gnu
mkdir include
ln -s include sys-include
ln -s ../../../usr/src/linux/include/linux linux
ln -s ../../../usr/src/linux/include/asm-sparc64 asm
# untar also the glibc-linuxthread. In the glibc build directory you now make a file called configparms with this content:
BUILD_CC=gcc
CC=sparc64-gentoo-linux-gnu-gcc
CC=/opt/sparc64/bin/sparc64-gentoo-linux-gnu-gcc ./configure --disable-profile --prefix=/opt/sparc64/sparc64-gentoo-linux-gnu --without-cvs --enable-add-ons sparc64-gentoo-linux-gnu ; make ; make install
# GCC again
./configure --target=sparc64-gentoo-linux-gnu --prefix=/opt/sparc64 --enable-languages=c,c++ --enable-threads=posix --disable-multilib ; make ; make install
|
Well I will let you guys updated, it is compiling gcc the first time ... Any comments or sugestions are welcome
xming
/edit binutils, gcc are compiled, install sym links for the kernel header and now compiling glibc
/edit libc compiled fine ) compiling the gcc for 2nd time |
|
| Back to top |
|
 |
xming Guru


Joined: 02 Jul 2002 Posts: 409
|
Posted: Fri Jan 10, 2003 11:02 am Post subject: |
|
|
| Quote: |
/edit libc compiled fine ) compiling the gcc for 2nd time
|
I have problems to get gcc compiled neither as n ative nor as cross-compiler, I am looking further  |
|
| Back to top |
|
 |
xming Guru


Joined: 02 Jul 2002 Posts: 409
|
Posted: Fri Jan 10, 2003 11:44 am Post subject: gcc64 |
|
|
I have found the problem, gcc64 generates dyn linked exec, but it is not properly linked to the 64 bit glibc, I am looking for a solution
xming |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|