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]

Re: cvs: ctime / doubled expl. inst. of __Atomicity_lock<0>::_S_atomicity_lock;


Markus Werle wrote:

> C++ bootstrap fails with a problem in stage2 in file gcc/libstdc++-v3/src/misc-inst.cc
>
> 73 template volatile int __Atomicity_lock<0>::_S_atomicity_lock;
>
> cc1plus: conversion from UTF-8 to UCS-4BE not supported by iconv
> In file included from /work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11/bits/fpos.h:46,
>                  from /work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/char_traits.h:46,
>                  from /work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/string:47,
>                  from ../../../../gcc/libstdc++-v3/src/misc-inst.cc:35:
> /work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/ctime:75: error: `::
>    ctime' has not been declared
> ../../../../gcc/libstdc++-v3/src/misc-inst.cc:73: error: duplicate explicit
>    instantiation of `volatile int __Atomicity_lock<0>::_S_atomicity_lock'
> make[4]: *** [misc-inst.lo] Error 1
> make[4]: Leaving directory `/work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3/src'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3'
> make[2]: *** [all-recursive-am] Error 2
> make[2]: Leaving directory `/work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3'
> make[1]: *** [all-target-libstdc++-v3] Error 2
> make[1]: Leaving directory `/work/markus/GCC/build-gcc'
> make: *** [bootstrap] Error 2
>
> configuration:
> ../gcc/configure --prefix=/opt/FREE-SOFTWARE/gcc-20030710 --with-gnu-as --with-as=/opt/FREE-SOFTWARE/binutils-2.14/bin/as --with-out-gnu-ld
> --enable-languages=c,f77,c++ --enable-version-specific-runtime-libs --disable-multilib && make -j bootstrap

There might be some problem with the #defines

time.h on my system reads
#      ifndef _CTIME
#        define _CTIME
         extern char *ctime(const time_t *);
#      endif


Adding this definition
extern char *ctime(const time_t *);
to line 65 of
build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/ctime
and uncommenting the explicit inst. in misc-inst.cc:73
finally resolves _this_ problem.

Sad enough xgcc then refuses to see the std C headers:
ranlib libv3test.a
/work/markus/GCC/gcc/libstdc++-v3/scripts/create_testsuite_files \
  /work/markus/GCC/gcc/libstdc++-v3/testsuite `${PWDCMD-pwd}`
make[4]: Leaving directory `/work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3/testsuite'
make[4]: Entering directory `/work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3'
make[4]: Leaving directory `/work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3'
make[3]: Leaving directory `/work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3'
make[2]: Leaving directory `/work/markus/GCC/build-gcc/hppa2.0w-hp-hpux11.11/libstdc++-v3'
Configuring in hppa2.0w-hp-hpux11.11/libf2c
loading cache ../config.cache
checking host system type... hppa2.0w-hp-hpux11.11
checking target system type... hppa2.0w-hp-hpux11.11
checking build system type... hppa2.0w-hp-hpux11.11
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking whether ln -s works... (cached) yes
checking for gcc... (cached) /work/markus/GCC/build-gcc/gcc/xgcc -B/work/markus/GCC/build-gcc/gcc/ -B/opt/FREE-SOFTWARE/gcc-20030710/hppa2.0w-hp-hpux11.11/bin/
-B/opt/FREE-SOFTWARE/gcc-20030710/hppa2.0w-hp-hpux11.11/lib/ -isystem /opt/FREE-SOFTWARE/gcc-20030710/hppa2.0w-hp-hpux11.11/include -isystem
/opt/FREE-SOFTWARE/gcc-20030710/hppa2.0w-hp-hpux11.11/sys-include
checking whether we are using GNU C... (cached) yes
checking whether /work/markus/GCC/build-gcc/gcc/xgcc -B/work/markus/GCC/build-gcc/gcc/ -B/opt/FREE-SOFTWARE/gcc-20030710/hppa2.0w-hp-hpux11.11/bin/
-B/opt/FREE-SOFTWARE/gcc-20030710/hppa2.0w-hp-hpux11.11/lib/ -isystem /opt/FREE-SOFTWARE/gcc-20030710/hppa2.0w-hp-hpux11.11/include -isystem
/opt/FREE-SOFTWARE/gcc-20030710/hppa2.0w-hp-hpux11.11/sys-include accepts -g... (cached) no
checking for as... (cached) /opt/FREE-SOFTWARE/binutils-2.14/bin/as
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... /bin/sh /work/markus/GCC/gcc/install-sh -c
checking for interface version number...
checking for --enable-version-specific-runtime-libs... yes
grep: ${top_srcdir}/../gcc/version.c: No such file or directory
checking for ld used by GCC... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for /usr/ccs/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/ccs/bin/nm
checking how to recognise dependant libraries... (cached) file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library
checking for object suffix... (cached) o
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
loading cache ../config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) yes
checking for objdir... .libs
checking for /work/markus/GCC/build-gcc/gcc/xgcc option to produce PIC... none
checking if /work/markus/GCC/build-gcc/gcc/xgcc static flag -static works... (cached) yes
finding the maximum length of command line arguments... (cached) 393217
checking if /work/markus/GCC/build-gcc/gcc/xgcc supports -c -o file.o... (cached) no
checking if we can lock with hard links... yes
checking if /work/markus/GCC/build-gcc/gcc/xgcc supports -fno-rtti -fno-exceptions ... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... relink
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... hpux11.11 dld.sl
checking command to parse /usr/ccs/bin/nm output... failed
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
creating libtool
loading cache ../config.cache
checking for a BSD compatible install... /bin/sh /work/markus/GCC/gcc/install-sh -c
checking whether make sets ${MAKE}... (cached) yes
checking how to run the C preprocessor... (cached) /lib/cpp
checking for stdio.h... no
configure: error: Can't find stdio.h.
You must have a usable C system for the target already installed, at least
including headers and, preferably, the library, before you can configure
the G77 runtime system.  If necessary, install gcc now with `LANGUAGES=c',
then the target library, then build with `LANGUAGES=f77'.
make[1]: *** [configure-target-libf2c] Error 1
make[1]: Leaving directory `/work/markus/GCC/build-gcc'
make: *** [bootstrap] Error 2

looks like f77 configuration is broken ....




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