This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Fail during bootstrap on the --g -O2 pch
- From: Ed Smith-Rowland <3dw4rd at verizon dot net>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 23 Nov 2006 11:51:27 -0500
- Subject: Fail during bootstrap on the --g -O2 pch
All,
I'm trying to bootstrap my tr1 special functions patch in shape for
people to look at it.
The compile bombs out when building the pre-compiled headers.
It seems to get the O0g.gch but compile fails on O2g.gch.
Is std::tr1::copysign not available at -O2 -g but is OK at -O0 -g?
Here is the end:
==============================================================================
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc"
"CC_FOR_TARGET=/Users/ed/obj/./gcc/xgcc -B/Users/ed/obj/./gcc/
-B/Users/ed/bin-4.3/powerpc-apple-darwin7.9.0/bin/
-B/Users/ed/bin-4.3/powerpc-apple-darwin7.9.0/lib/ -isystem
/Users/ed/bin-4.3/powerpc-apple-darwin7.9.0/include -isystem
/Users/ed/bin-4.3/powerpc-apple-darwin7.9.0/sys-include" "CFLAGS=-O2 -g
-O2 " "CXXFLAGS=-g -O2 " "CFLAGS_FOR_BUILD=-g -O2"
"CFLAGS_FOR_TARGET=-O2 -g -O2 " "INSTALL=/usr/bin/install -c"
"INSTALL_DATA=/usr/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install
-c" "LDFLAGS=" "LIBCFLAGS=-O2 -g -O2 " "LIBCFLAGS_FOR_TARGET=-O2 -g -O2
" "MAKE=make" "MAKEINFO=/Users/ed/gcc/missing makeinfo
--split-size=5000000 --split-size=5000000 " "PICFLAG="
"PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS="
"exec_prefix=/Users/ed/bin-4.3" "infodir=/Users/ed/bin-4.3/info"
"libdir=/Users/ed/bin-4.3/lib" "includedir=/Users/ed/bin-4.3/include"
"prefix=/Users/ed/bin-4.3"
"tooldir=/Users/ed/bin-4.3/powerpc-apple-darwin7.9.0"
"gxx_include_dir=/Users/ed/bin-4.3/include/c++/4.3.0" "AR=ar"
"AS=/Users/ed/obj/./gcc/as" "LD=/Users/ed/obj/./gcc/collect-ld"
"RANLIB=ranlib -c" "NM=/Users/ed/obj/./gcc/nm" "NM_FOR_BUILD="
"NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" all-recursive
Making all in include
if [ ! -d "./powerpc-apple-darwin7.9.0/bits/stdtr1c++.h.gch" ]; then \
mkdir -p ./powerpc-apple-darwin7.9.0/bits/stdtr1c++.h.gch; \
fi; \
/Users/ed/obj/./gcc/xgcc -shared-libgcc -B/Users/ed/obj/./gcc
-nostdinc++ -L/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/src
-L/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/src/.libs
-B/Users/ed/bin-4.3/powerpc-apple-darwin7.9.0/bin/
-B/Users/ed/bin-4.3/powerpc-apple-darwin7.9.0/lib/ -isystem
/Users/ed/bin-4.3/powerpc-apple-darwin7.9.0/include -isystem
/Users/ed/bin-4.3/powerpc-apple-darwin7.9.0/sys-include -Winvalid-pch
-Wno-deprecated -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
/Users/ed/gcc/libstdc++-v3/include/precompiled/stdtr1c++.h -o
powerpc-apple-darwin7.9.0/bits/stdtr1c++.h.gch/O2g.gch
/Users/ed/gcc/libstdc++-v3/include/precompiled/stdtr1c++.h:30:25:
warning:
/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include/powerpc-apple-darwin7.9.0/bits/stdc++.h.gch/O0g.gch:
not used because `__NO_INLINE__' not defined
In file included from
/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include/tr1/special_function.h:46,
from
/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include/tr1/cmath:41,
from
/Users/ed/gcc/libstdc++-v3/include/precompiled/stdtr1c++.h:38:
/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include/tr1/bessel_function.tcc:
In function 'void std::tr1::_Private::__cyl_bessel_jy(_Tp, _Tp, _Tp&,
_Tp&, _Tp&, _Tp&)':
/Users/ed/obj/powerpc-apple-darwin7.9.0/libstdc++-v3/include/tr1/bessel_function.tcc:225:
error: 'copysign' is not a member of 'std::tr1'
make[4]: *** [powerpc-apple-darwin7.9.0/bits/stdtr1c++.h.gch/O2g.gch]
Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-target-libstdc++-v3] Error 2
make: *** [all] Error 2
==============================================================================
I'm going to try to reproduce this on a gcc-4.1.1 with a smaller test case.
Meanwhile, I got bessel_function.tcc to work with ::copysign instead of
std::tr1::copysign.
It failed with both std::tr1::copysign and std::copysign.
I will send out a tarball patch next after the bootstrap finishes.
BTW, this is MacOSX 10.3.9.
Ed