This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Help(Please): make bootstrap gcc2.95.2 on alphaev56-dec-osf4.0d
- To: gcc-help at gcc dot gnu dot org
- Subject: Help(Please): make bootstrap gcc2.95.2 on alphaev56-dec-osf4.0d
- From: "Martin MacRobert" <mmacrobert at email dot com>
- Date: Wed, 22 Aug 2001 20:37:58 +0800
Hi Gang,
I'm trying to build gcc2.95.2 on a dec alpha 4.0d. I am having some serious trouble. It completes stage 1 compiler then during the stage 2 build during building of libstdc++ it gives an error show below.
If you examine the code in math.h there is a struct exception, and in <exception> there is a class exception in the std namespace. They shouldn't collide (in theory), but in the build they do.
During the build it appears to try to run something like:
/bin/sh ./fixinc.sh `pwd`/include /usr/include
Fixing headers into /u_1/gcc-obj/gcc/include for alphaev56-dec-osf4.0d target
Finding directories and links to directories
Searching /usr/include/.
find: ././dec: No such file or directory
find: ././dli: No such file or directory....and so on for 30 or more items.
There appears to be something wrong with this apparently vital stage in the build. Perhaps this will shed some light on the situation.
I tried to build 2.95.3, and got the same error.
Any help would be greatly appreciated.
Many thanks,
Martin MacRobert
Error duing libstdc++ stage 2:
/u_1/gcc-obj/gcc/xgcc -B/u_1/gcc-obj/gcc/ -B/usr/local/alphaev56-dec-osf4.0d/bin/ -c -g -O2 -fno-implicit-templates -I/usr/users/MARTIN/downloads/gcc-2.95.2/libstdc++ -I/usr/users/MARTIN/downloads/gcc-2.95.2/libstdc++/stl -I../libio -I/usr/users/MARTIN/downloads/gcc-2.95.2/libstdc++/../libio -nostdinc++ /usr/users/MARTIN/downloads/gcc-2.95.2/libstdc++/valarray.cc
In file included from /u_1/gcc-obj/gcc/include/new:9,
from /u_1/gcc-obj/gcc/include/new.h:6,
from /usr/users/MARTIN/downloads/gcc-2.95.2/libstdc++/stl/stl_algobase.h:52,
from /usr/users/MARTIN/downloads/gcc-2.95.2/libstdc++/stl/algorithm:30,
from /usr/users/MARTIN/downloads/gcc-2.95.2/libstdc++/std/std_valarray.h:41,
from /usr/users/MARTIN/downloads/gcc-2.95.2/libstdc++/valarray.cc:1:
/u_1/gcc-obj/gcc/include/exception:13: redefinition of `struct exception'
/usr/include/math.h:643: previous definition here
make[2]: *** [valarray.o] Error 1
make[2]: Leaving directory `/u_1/gcc-obj/alphaev56-dec-osf4.0d/libstdc++'
make[1]: *** [all-target-libstdc++] Error 2
make[1]: Leaving directory `/u_1/gcc-obj'
--
_______________________________________________
Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free!
http://www.net2phone.com/cgi-bin/link.cgi?143