hppa2.0w-hp-hpux11.00: bootstrap dependencies / misconfiguration ugly errors

Markus Werle markus@lufmech.rwth-aachen.de
Tue Jul 24 06:20:00 GMT 2001


Hi folks,

bootstrapping on hpux becomes a real adventure, because
there seem to be everyday changes to the software required
or deprecated.

What I tried in the past is to have as many gnu components
in my path as possible. This includes flex, binutils (w/o ld) etc.
In the past it was fine to have a gcc as a starting point
(hen and egg problem some days ago)

Today with gcc-20010716 I found out that the only way to get it
bootstrapped is using no gnu stuff except gmake
(well, binutils compiled first and installed under same prefix
but I am not sure whether they are used during bootstrap)

Using hp's ld, ranlib and other bullshit leads to a semi-functional
(see below) compiler, but starting with gcc leads to the problem I
described some days ago with the missing symbol table.

This problem occurs with binutils AND with gcc so
scratch Your head and think again.

IMHO this is due to misconfiguration or due to problems not
catched by configure. Maybe the creation process of libtool
has to be revised before gcc-3.1 can be released.

Any idea how I can trace where the error occurs?


Problems with the compiler using hp stuff:

../gcc-20010716/configure --prefix=/opt/FREE-SOFTWARE/gcc-20010716
--enable-languages=c,c++,f77 --enable-version-specific-runtime-libs
--disable-maintainer-mode --with-gnu-as && gmake -j4 bootstrap

gmake all && gmake install

yields a compiler which does not know about its own headers:
> which g++
/opt/FREE-SOFTWARE/gcc-20010716/bin/g++

> g++ ../experimental/HelloWorld.C
../experimental/HelloWorld.C:1:19: iostream: No such file or directory
../experimental/HelloWorld.C: In function `int main()':
../experimental/HelloWorld.C:4: `cout' undeclared in namespace `std'
../experimental/HelloWorld.C:4: `endl' undeclared in namespace `std'

> find /opt/FREE-SOFTWARE/gcc-20010716/ -name iostream
/opt/FREE-SOFTWARE/gcc-20010716/lib/gcc-lib/hppa2.0w-hp-hpux11.00/include/g++/iostream

> g++
-I/opt/FREE-SOFTWARE/gcc-20010716/lib/gcc-lib/hppa2.0w-hp-hpux11.00/include/g++
-I/opt/FREE-SOFTWARE/gcc-20010716/lib/gcc-lib/hppa2.0w-hp-hpux11.00/include/g++/hppa2.0w-hp-hpux11.00
../experimental/HelloWorld.C
-L/opt/FREE-SOFTWARE/gcc-20010716/lib/gcc-lib/hppa2.0w-hp-hpux11.00/
2>&1 | tee garbage

> a.out
Why does hp not support g++?

so it works only after a little too much help, right?

With the big project the linker error remains, any idea how I can cheat
the linker
in some way
[...]
ucomp :
   Error : report error (0-309-332-1) to your nearest HP service
representative (8901)
collect2: ld returned 254 exit status
gmake: *** [../obj/hpux11.00/test.exe] Error 1

regards,


Markus



More information about the Gcc-bugs mailing list