This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/42566] New: Bootstrap fails in stage3 building the libstdc++ PCH


The bootstrap fails building the libstdc++ PCH file.
The system compiler is used to attempt the build and fails because it doesn't
undetstand -std=gnu++0x because it's an old compiler.

----------------
MacOSX:~/obj ed$ gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1671)
----------------

I think the stage3 g++ should be used.  I think this is a build system mistake.
I tried to hand edit the makefile with a stage3 compiler (I think) and add -B
but I couldn't get g++ to find cc1plus.

I think you'd want the stage3 compiler even if the system compiler understood
C++0X for consistency.  Also, you can't bootstrap with any g++-3* or even
g++-4.0.*.  At least not with extra flags maybe.

I was able to bootstrap on this platform as late as October 15, 2009.

My configure is
../gcc/configure --prefix=/Users/ed/bin --with-gmp=/usr/local
--with-mpfr=/usr/local --with-mpc=/usr/local --enable-decimal-float
--enable-languages=c,c++,fortran,objc,obj-c++

Thank you,

Ed

Here is the end of the build output.  I don't know if the ignored fails are
probative or not.

----------------------------------------------------------------------------
MacOSX:~/obj ed$ cat err.txt                  
make[4]: Entering directory
`/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include'
 cd .. && /bin/sh ./config.status include/Makefile 
config.status: creating include/Makefile
Adding multilib support to include/Makefile in ../../../gcc/libstdc++-v3
multidirs=
with_multisubdir=
make[4]: Leaving directory
`/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include'
make[4]: Entering directory
`/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include'
make[4]: [stamp-std] Error 1 (ignored)
make[4]: [stamp-bits] Error 1 (ignored)
make[4]: [stamp-c_compatibility] Error 1 (ignored)
make[4]: [stamp-ext] Error 1 (ignored)
make[4]: [stamp-debug] Error 1 (ignored)
make[4]: [stamp-profile] Error 1 (ignored)
echo timestamp > stamp-host
mkdir -p ./powerpc-apple-darwin7.9.0/bits/stdc++.h.gch
g++ -x c++-header -g -O2
-I/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include/powerpc-apple-darwin7.9.0
-I/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include
-I/Users/ed/gcc/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x
/Users/ed/gcc/libstdc++-v3/include/precompiled/stdc++.h \
        -o powerpc-apple-darwin7.9.0/bits/stdc++.h.gch/O2ggnu++0x.gch
cc1plus: error: unrecognized option `-std=gnu++0x'
make[4]: *** [powerpc-apple-darwin7.9.0/bits/stdc++.h.gch/O2ggnu++0x.gch] Error
1
make[4]: Leaving directory
`/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/Users/ed/obj'
make: *** [all] Error 2
MacOSX:~/obj ed$ cat stage_current 
stage3
MacOSX:~/obj ed$ 
----------------------------------------------------------------------------


-- 
           Summary: Bootstrap fails in stage3 building the libstdc++ PCH
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: 3dw4rd at verizon dot net
 GCC build triplet: powerpc-apple-darwin7.9.0
  GCC host triplet: powerpc-apple-darwin7.9.0
GCC target triplet: powerpc-apple-darwin7.9.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42566


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]