This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
successful (?) build on hp-ux
- To: gcc at gcc dot gnu dot org
- Subject: successful (?) build on hp-ux
- From: George Trojan <trojan at thunder dot nws dot noaa dot gov>
- Date: Tue, 03 Aug 1999 12:16:44 +0000
Hi,
After a third try, I managed to build egcs-2.95 on hp-ux
(hppa1.1-hp-hpux10.20).
I had to specify full path to gnu as:
#!/bin/sh
# configure.gt
../gcc-2.95/configure --prefix=/opt3/egcs --enable-shared \
--with-as=/usr/local/egcs/bin/as
I had PATH with /usr/local/egcs/bin at the front and tried
configure --with-gnu-as
This did not work.
It appears there is a bug (egcs or STL). I cannot compile the following
snippet:
// sin.c
#include <vector>
class S {
public:
typedef int (S::*pf)();
int foo();
int bar();
vector<pf> d_pf;
};
int main()
{
S s;
return 0;
}
g++ -v sin.c
Reading specs from
/opt3/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95/specs
gcc version 2.95 19990728 (release)
/opt3/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95/cpp -lang-c++ -v
-D__GNUC__=2
-D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dhppa -Dhp9000s800
-D__hp9000s80
0 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__ -D__hp9000s800__ -D__hp9000s800
-D__hp9
k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8
-D__PWB -
D__hpux -D__unix -Asystem(unix) -Asystem(hpux) -Acpu(hppa)
-Amachine(hppa) -D__E
XCEPTIONS -D__hp9000s700 -D_PA_RISC1_1 -D_HPUX_SOURCE -D_HIUX_SOURCE
sin.c /var/
tmp/ccVNw8Zt.ii
GNU CPP version 2.95 19990728 (release) (hppa)
#include "..." search starts here:
#include <...> search starts here:
/opt3/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95/../../../../include/g++-3
/opt3/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95/../../../../hppa1.1-hp-hpux10.
20/include
/opt3/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95/include
/usr/include
End of search list.
The following default directories have been omitted from the search
path:
/usr/local/include
End of omitted list.
/opt3/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95/cc1plus
/var/tmp/ccVNw8Zt.ii -
quiet -dumpbase sin.cc -version -o /var/tmp/ccalQeEm.s
GNU C++ version 2.95 19990728 (release) (hppa1.1-hp-hpux10.20) compiled
by GNU C
version 2.95 19990728 (release).
/opt3/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95/../../../../include/g++-3/stl_a
lloc.h: In instantiation of `allocator<int (S::*)()>':
sin.c:15: instantiated from here
/opt3/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95/../../../../include/g++-3/stl_a
lloc.h:750: `allocator<int (S::*)()>::address(int (S::* &)()) const' has
already
been declared in `allocator<int (S::*)()>'
I did submit a bug report. For the time being I have to revert back to
egcs-2.91 : (.
I don't want to redesign my code.
George Trojan