public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/42566]  New: Bootstrap fails in stage3 building the libstdc++ PCH
@ 2009-12-31 15:35 3dw4rd at verizon dot net
  2010-01-01 10:27 ` [Bug bootstrap/42566] " fxcoudert at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: 3dw4rd at verizon dot net @ 2009-12-31 15:35 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-03-03 21:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-42566-4@http.gcc.gnu.org/bugzilla/>
2011-01-15  9:55 ` [Bug bootstrap/42566] Bootstrap fails in stage3 building the libstdc++ PCH rwild at gcc dot gnu.org
2011-03-14  2:18 ` 3dw4rd at verizon dot net
2011-03-14  9:18 ` fxcoudert at gcc dot gnu.org
2023-02-06  6:34 ` vital.had at gmail dot com
2023-03-03 21:59 ` egallager at gcc dot gnu.org
2009-12-31 15:35 [Bug bootstrap/42566] New: " 3dw4rd at verizon dot net
2010-01-01 10:27 ` [Bug bootstrap/42566] " fxcoudert at gcc dot gnu dot org
2010-01-01 15:15 ` 3dw4rd at verizon dot net
2010-01-02 20:03 ` fxcoudert at gcc dot gnu dot org
2010-01-02 20:32 ` 3dw4rd at verizon dot net
2010-01-02 20:34 ` 3dw4rd at verizon dot net
2010-01-02 20:37 ` 3dw4rd at verizon dot net
2010-01-02 20:38 ` 3dw4rd at verizon dot net
2010-01-02 20:48 ` fxcoudert at gcc dot gnu dot org
2010-01-02 21:10 ` 3dw4rd at verizon dot net
2010-01-04 13:18 ` rwild at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).