Skip to contentSkip to conversation

gcc-3.3.2 - 64bit failled to build?

parisc-linux Joel Soete 3 participants 6 messages Nov 26, 2003 – Nov 27, 2003

lore
Share & tools
lore

Joel Soete

author
#0 lore raw

Hi all,

I am trying to rebuild gcc-3.3.2 64bits following Carlos build xc howto.

I am using gcc-3.3.2-4 debian pkg src; after the extraction of src with 'dpkg-source -x gcc-3.3_3.3.2ds5-4.dsc', then in src tree apply debian patches (and get the actual src by the way).

The build of the tool chain 32bit works fine as well as binutils 64bits but the build of the patial gcc 64bit (let say kgcc) with following configure options (the same as 32bit but the target 64bits):
../src/configure --target=hppa64-linux --host=hppa-linux --prefix=/opt/parisc --disable-shared --disable-nls --without-libc --enable-langages=c

failled with messages:

/Develop/parisc-linux/build/gcc/gcc/xgcc -B/Develop/parisc-linux/build/gcc/gcc/ -B/opt/palinux/hppa64-linux/bin/ -B/opt/palinux/hppa64-linux/lib/ -isystem
/opt/palinux/hppa64-linux/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include
-fPIC -Dpa64=1 -DELF=1 -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I. -I/Develop/parisc-linux/sources/gcc/gcc -I/Develop/parisc-linux/sources/gcc/gcc/. -I/Develop/parisc-linux/sources/gcc/gcc/config -I/Develop/parisc-linux/sources/gcc/gcc/../include -fexceptions -c /Develop/parisc-linux/sources/gcc/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o In file included from /Develop/parisc-linux/sources/gcc/gcc/unwind-dw2.c:26:
/Develop/parisc-linux/sources/gcc/gcc/unwind-pe.h: In function `size_of_encoded_value':
/Develop/parisc-linux/sources/gcc/gcc/unwind-pe.h:76: warning: implicit declaration
of function `abort'
In file included from gthr-default.h:1,
from /Develop/parisc-linux/sources/gcc/gcc/gthr.h:98,
from /Develop/parisc-linux/sources/gcc/gcc/unwind-dw2.c:28:
/Develop/parisc-linux/sources/gcc/gcc/gthr-posix.h:37:21: pthread.h: No such
file or directory
/Develop/parisc-linux/sources/gcc/gcc/gthr-posix.h:38:20: unistd.h: No such
file or directory
In file included from gthr-default.h:1,
from /Develop/parisc-linux/sources/gcc/gcc/gthr.h:98,
from /Develop/parisc-linux/sources/gcc/gcc/unwind-dw2.c:28:
[blabla]

even thought i use --without-libc it seems to look for glibc header: pthread.h & unistd.h?

Any idea?

Thanks,
Joel

PS: still interesting to fix it in 3.3.2 or better use 3.4?

-------------------------------------------------------------------------
Tiscali ADSL: 12 mois à 29,50 €/mois! L'Internet rapide, c'est pour tout le monde.
http://reg.tiscali.be/default.asp?lg=fr

#1 lore raw
Quoted 2 lines

../src/configure --target=hppa64-linux --host=hppa-linux --prefix=/opt/parisc --disable-shared --disable-nls --without-libc --enable-langages=c

try this:
../gcc-3.3/configure --host=hppa-linux --build=hppa-linux --target=hppa64-linux --disable-shared --disable-nls --enable-languages=c --prefix=/opt/palinux --enable-sjlj-exceptions --disable-threads

randolph

Signature · 3 lines
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
author
#2 lore raw
Quoted 6 lines

try this:
../gcc-3.3/configure --host=hppa-linux --build=hppa-linux --target=hppa64-linux

--disable-shared --disable-nls --enable-languages=c --prefix=/opt/palinux

--enable-sjlj-exceptions --disable-threads

Well I test it first and as mentionned to Carlos it allow me to obtain a kernel 2.4.23-rc5-pa17 64 bits (not yet test your last patch sorry) which boot fine on my b2k :))

Many thanks,
Joel

PS: Next step, see i can boot 2.6.0-test10-pa1 64bit on the N4K (b2k still have a pb iirc)

-------------------------------------------------------------------------
Tiscali ADSL: 12 mois à 29,50 €/mois! L'Internet rapide, c'est pour tout le monde.
http://reg.tiscali.be/default.asp?lg=fr

#3 lore raw
In reply to Joel Soete
Quoted 40 lines · Joel Soete

Hi all,

I am trying to rebuild gcc-3.3.2 64bits following Carlos build xc howto.

I am using gcc-3.3.2-4 debian pkg src; after the extraction of src with 'dpkg-source -x gcc-3.3_3.3.2ds5-4.dsc', then in src tree apply debian patches (and get the actual src by the way).

The build of the tool chain 32bit works fine as well as binutils 64bits but the build of the patial gcc 64bit (let say kgcc) with following configure options (the same as 32bit but the target 64bits):
../src/configure --target=hppa64-linux --host=hppa-linux --prefix=/opt/parisc --disable-shared --disable-nls --without-libc --enable-langages=c

failled with messages:

/Develop/parisc-linux/build/gcc/gcc/xgcc -B/Develop/parisc-linux/build/gcc/gcc/ -B/opt/palinux/hppa64-linux/bin/ -B/opt/palinux/hppa64-linux/lib/ -isystem
/opt/palinux/hppa64-linux/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall

(quoted diff) +0 -4
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include
 -fPIC -Dpa64=1 -DELF=1 -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I. -I/Develop/parisc-linux/sources/gcc/gcc -I/Develop/parisc-linux/sources/gcc/gcc/.
-I/Develop/parisc-linux/sources/gcc/gcc/config -I/Develop/parisc-linux/sources/gcc/gcc/../include
-fexceptions -c /Develop/parisc-linux/sources/gcc/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o

In file included from /Develop/parisc-linux/sources/gcc/gcc/unwind-dw2.c:26:
/Develop/parisc-linux/sources/gcc/gcc/unwind-pe.h: In function `size_of_encoded_value':
/Develop/parisc-linux/sources/gcc/gcc/unwind-pe.h:76: warning: implicit declaration of function `abort'
In file included from gthr-default.h:1,
from /Develop/parisc-linux/sources/gcc/gcc/gthr.h:98, from /Develop/parisc-linux/sources/gcc/gcc/unwind-dw2.c:28:
/Develop/parisc-linux/sources/gcc/gcc/gthr-posix.h:37:21: pthread.h: No such file or directory /Develop/parisc-linux/sources/gcc/gcc/gthr-posix.h:38:20: unistd.h: No such file or directory
In file included from gthr-default.h:1,
from /Develop/parisc-linux/sources/gcc/gcc/gthr.h:98, from /Develop/parisc-linux/sources/gcc/gcc/unwind-dw2.c:28:
[blabla]

Quoted 4 lines

even thought i use --without-libc it seems to look for glibc header: pthread.h & unistd.h?

Any idea?

You need the userspace headers for 64-bits. They don't exist, so I normally hack them into place. Please try to use Kegel's crosstools and see if you can get them building our cross-compiler? :)

If you want a quick fix, grab a current debian libc6-dev package, unpack it using -x and move the /usr/include directory to your $PREFIX/hppa64-linux directory so that the target headers are there.

c.

author
#4 lore raw

[...]

Quoted 2 lines

You need the userspace headers for 64-bits. They don't exist so I normally hack them into place. Please try to use Kegel's crosstools and

The first time I hear about do you have more ref (an url) or I will googelize it tomorrow :)

Quoted 6 lines

see if you can get them building our cross-compiler? :)

If you want a quick fix, grab a current debian libc6-dev package, unpack it using -x and move the /usr/include d
rectory to your
$PREFIX/hppa64-linux directory so that the target headers are there.

That is easiest, I will also check it.

Thanks,
Joel

PS: Randolph tips works also, I obtain a hppa64-linux-gcc (3.3.2-ds5) which allow me to obtain a kernel 2.4.23-rc5-pa17 64bit which boot fine on my b2k :)

-------------------------------------------------------------------------
Tiscali ADSL: 12 mois à 29,50 €/mois! L'Internet rapide, c'est pour tout le monde.
http://reg.tiscali.be/default.asp?lg=fr

author
#5 lore raw
In reply to Carlos O'Donell
Quoted 2 lines

You need the userspace headers for 64-bits. They don't exist so I normally hack them into place. Please try to use Kegel's crosstools

and

Quoted 1 line

see if you can get them building our cross-compiler? :)

Well I grab it from his site (http://www.kegel.com/crosstool/)

Don't have time to have more look but at first glance it didn't suport yet hppa (so I will have to see more if there are patches; may be this week-end ;) )

Quoted 3 lines

If you want a quick fix, grab a current debian libc6-dev package, unpack it using -x and move the /usr/include directory to your $PREFIX/hppa64-linux directory so that the target headers are there.

Sorry no time today but the package is already installed on the system, so I could just find supplied include files and link it into '$PREFIX/hppa64-linux'?

Thanks,
Joel

-------------------------------------------------------------------------
Tiscali ADSL: 12 mois à 29,50 €/mois! L'Internet rapide, c'est pour tout le monde.
http://reg.tiscali.be/default.asp?lg=fr