Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] yet another g++ problem

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Arwed von Merkatz <v.merkatz AT gmx.net>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] yet another g++ problem
  • Date: Sat, 4 Jun 2005 12:43:10 +0200

On Sat, Jun 04, 2005 at 12:34:40PM +0200, Mathieu L. wrote:
> Hi all,
>
> I'm having some trouble with g++ but as usual with these problem I don't
> know where it could come from; could be gcc or glibc as well.
> I used to update quite often libtorrent spell on both my comps and it's
> always gone well for my athlon but it now fails for my p200.
>
> First the compile for libtorrent failed (I attached the log)
> so I figured it was because of libsigc++3 but when I tried to update
> this one it failed with the same error. Then I updated g++ and now I'm
> stuck because every cast which needs g++ hangs at configure at:
>
> checking for g++... g++
> checking whether we are using the GNU C++ compiler...
>
> Here are the versions on this box:
>
> Grimoire Section Spell Grimoire Version Installed Version
> -------- ------- ----- ---------------- -----------------
> stable gnu gcc 3.4.3 3.3.3
> stable gnu g++ 3.4.3 3.4.3
> stable libs glibc 2.3.4 2.3.2
>
> I don't want to mess it up more that it is already so I didn't try
> updating gcc or glibc yet, should I do so? If yes, in which order?
> If no, any clue on what I should do?

Update gcc, you might need to cast g++ again afterwards. The split
spells only work if all versions are the same.

> And by the way this is my mailserver so I'd like to avoid any reboot if
> possible.
>
> Thanks,
>
> Mathieu.
>
> --
> We are Microsoft. Linux is irrelevant.
> Openness is futile. Prepare to be assimilated.
> --

> Compile log for libtorrent 0.6.2 Built on Wed May 11 18:51:57 UTC 2005
> Using gcc version: 3.3.3
> Using gcc version: 3.3.3
> Installing in dir: /usr/src/libtorrent-0.6.2
> libtorrent 0.6.2
> checking for a BSD-compatible install... /bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking build system type... i586-pc-linux-gnu
> checking host system type... i586-pc-linux-gnu
> checking for style of include used by make... GNU
> checking for gcc... gcc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking dependency style of gcc... gcc3
> checking for ld used by GCC... /usr/i386-pc-linux-gnu/bin/ld
> checking if the linker (/usr/i386-pc-linux-gnu/bin/ld) is GNU ld... yes
> checking for /usr/i386-pc-linux-gnu/bin/ld option to reload object files...
> -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking for a sed that does not truncate output... /bin/sed
> checking whether ln -s works... yes
> checking how to recognise dependent libraries... pass_all
> checking command to parse /usr/bin/nm -B output... ok
> checking how to run the C preprocessor... gcc -E
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking for ranlib... ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc static flag -static works... yes
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.lo... yes
> checking if gcc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (/usr/i386-pc-linux-gnu/bin/ld) supports shared
> libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
> checking whether -lc should be explicitly linked in... no
> creating libtool
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking dependency style of g++... gcc3
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... 64
> checking for _LARGE_FILES value needed for large files... no
> checking whether byte ordering is bigendian... no
> checking for pkg-config... /usr/bin/pkg-config
> checking for sigc++-2.0... yes
> checking STUFF_CFLAGS... -I/usr/include/sigc++-2.0
> -I/usr/lib/sigc++-2.0/include
> checking STUFF_LIBS... -lsigc-2.0
> checking signedness of mincore parameter... unsigned
> checking for proper overloaded template function disambiguation... yes
> configure: creating ./config.status
> config.status: creating libtorrent.pc
> config.status: creating Makefile
> config.status: creating src/Makefile
> config.status: creating src/torrent/Makefile
> config.status: creating src/content/Makefile
> config.status: creating src/data/Makefile
> config.status: creating src/download/Makefile
> config.status: creating src/net/Makefile
> config.status: creating src/parse/Makefile
> config.status: creating src/peer/Makefile
> config.status: creating src/tracker/Makefile
> config.status: creating src/utils/Makefile
> config.status: creating config.h
> config.status: executing depfiles commands
> make[1]: Entering directory `/usr/src/libtorrent-0.6.2'
> /usr/bin/make all-recursive
> make[2]: Entering directory `/usr/src/libtorrent-0.6.2'
> Making all in src
> make[3]: Entering directory `/usr/src/libtorrent-0.6.2/src'
> Making all in torrent
> make[4]: Entering directory `/usr/src/libtorrent-0.6.2/src/torrent'
> source='bencode.cc' object='bencode.lo' libtool=yes \
> depfile='.deps/bencode.Plo' tmpdepfile='.deps/bencode.TPlo' \
> depmode=gcc3 /bin/sh ../../depcomp \
> /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../..
> -I. -I./.. -I../.. -O -march=pentium-mmx -mmmx -pipe -O2 -Os -O3 -Wall
> -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -c -o
> bencode.lo `test -f 'bencode.cc' || echo './'`bencode.cc
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../.. -O
> -march=pentium-mmx -mmmx -pipe -O2 -Os -O3 -Wall -g -DDEBUG
> -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -c bencode.cc -MT
> bencode.lo -MD -MP -MF .deps/bencode.TPlo -fPIC -DPIC -o bencode.lo
> In file included from /usr/include/c++/3.3.3/bits/basic_ios.h:44,
> from /usr/include/c++/3.3.3/ios:51,
> from /usr/include/c++/3.3.3/ostream:45,
> from /usr/include/c++/3.3.3/iostream:45,
> from bencode.cc:27:
> /usr/include/c++/3.3.3/bits/locale_facets.h: In constructor
> `std::numpunct_byname<_CharT>::numpunct_byname(const char*, size_t)':
> /usr/include/c++/3.3.3/bits/locale_facets.h:696: error: there are no
> arguments to `_S_create_c_locale' that depend on a template parameter, so a
> declaration of `_S_create_c_locale' must be available
> /usr/include/c++/3.3.3/bits/locale_facets.h:696: error: (if you use
> `-fpermissive', G++ will accept your code, but allowing the use of an
> undeclared name is deprecated)
> /usr/include/c++/3.3.3/bits/locale_facets.h:697: error: there are no
> arguments to `_M_initialize_numpunct' that depend on a template parameter,
> so a declaration of `_M_initialize_numpunct' must be available
> /usr/include/c++/3.3.3/bits/locale_facets.h: In destructor `virtual
> std::numpunct_byname<_CharT>::~numpunct_byname()':
> /usr/include/c++/3.3.3/bits/locale_facets.h:703: error: there are no
> arguments to `_S_destroy_c_locale' that depend on a template parameter, so
> a declaration of `_S_destroy_c_locale' must be available
> /usr/include/c++/3.3.3/bits/locale_facets.h: In constructor
> `std::collate_byname<_CharT>::collate_byname(const char*, size_t)':
> /usr/include/c++/3.3.3/bits/locale_facets.h:1077: error:
> `_M_c_locale_collate' undeclared (first use this function)
> /usr/include/c++/3.3.3/bits/locale_facets.h:1077: error: (Each undeclared
> identifier is reported only once for each function it appears in.)
> /usr/include/c++/3.3.3/bits/locale_facets.h:1077: error: there are no
> arguments to `_S_destroy_c_locale' that depend on a template parameter, so
> a declaration of `_S_destroy_c_locale' must be available
> /usr/include/c++/3.3.3/bits/locale_facets.h:1078: error: there are no
> arguments to `_S_create_c_locale' that depend on a template parameter, so a
> declaration of `_S_create_c_locale' must be available
> In file included from /usr/include/c++/3.3.3/bits/basic_ios.h:44,
> from /usr/include/c++/3.3.3/ios:51,
> from /usr/include/c++/3.3.3/ostream:45,
> from /usr/include/c++/3.3.3/iostream:45,
> from bencode.cc:27:
> /usr/include/c++/3.3.3/bits/locale_facets.h: In constructor
> `std::moneypunct_byname<_CharT, _Intl>::moneypunct_byname(const char*,
> size_t)':
> /usr/include/c++/3.3.3/bits/locale_facets.h:1660: error: there are no
> arguments to `_S_create_c_locale' that depend on a template parameter, so a
> declaration of `_S_create_c_locale' must be available
> /usr/include/c++/3.3.3/bits/locale_facets.h:1661: error: there are no
> arguments to `_M_initialize_moneypunct' that depend on a template
> parameter, so a declaration of `_M_initialize_moneypunct' must be available
> /usr/include/c++/3.3.3/bits/locale_facets.h: In destructor `virtual
> std::moneypunct_byname<_CharT, _Intl>::~moneypunct_byname()':
> /usr/include/c++/3.3.3/bits/locale_facets.h:1667: error: there are no
> arguments to `_S_destroy_c_locale' that depend on a template parameter, so
> a declaration of `_S_destroy_c_locale' must be available
> In file included from /usr/include/c++/3.3.3/bits/locale_facets.h:1891,
> from /usr/include/c++/3.3.3/bits/basic_ios.h:44,
> from /usr/include/c++/3.3.3/ios:51,
> from /usr/include/c++/3.3.3/ostream:45,
> from /usr/include/c++/3.3.3/iostream:45,
> from bencode.cc:27:
> /usr/include/c++/3.3.3/i386-pc-linux-gnu/bits/messages_members.h: In
> constructor `std::messages_byname<_CharT>::messages_byname(const char*,
> size_t)':
> /usr/include/c++/3.3.3/i386-pc-linux-gnu/bits/messages_members.h:106:
> error: `_M_c_locale_messages' undeclared (first use this function)
> /usr/include/c++/3.3.3/i386-pc-linux-gnu/bits/messages_members.h:106:
> error: there are no arguments to `_S_destroy_c_locale' that depend on a
> template parameter, so a declaration of `_S_destroy_c_locale' must be
> available
> /usr/include/c++/3.3.3/i386-pc-linux-gnu/bits/messages_members.h:107:
> error: there are no arguments to `_S_create_c_locale' that depend on a
> template parameter, so a declaration of `_S_create_c_locale' must be
> available
> In file included from /usr/include/c++/3.3.3/bits/locale_facets.tcc:43,
> from /usr/include/c++/3.3.3/locale:47,
> from /usr/include/c++/3.3.3/bits/ostream.tcc:37,
> from /usr/include/c++/3.3.3/ostream:535,
> from /usr/include/c++/3.3.3/iostream:45,
> from bencode.cc:27:
> /usr/include/c++/3.3.3/limits: At global scope:
> /usr/include/c++/3.3.3/limits:897: error: `float __builtin_huge_valf()'
> cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:897: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:897: error: `float __builtin_huge_valf()'
> cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:897: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:899: error: `float __builtin_nanf(const
> char*)' cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:899: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:899: error: `float __builtin_nanf(const
> char*)' cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:899: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:900: error: field initializer is not constant
> /usr/include/c++/3.3.3/limits:915: error: field initializer is not constant
> /usr/include/c++/3.3.3/limits:955: error: `double __builtin_huge_val()'
> cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:955: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:955: error: `double __builtin_huge_val()'
> cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:955: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:957: error: `double __builtin_nan(const
> char*)' cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:957: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:957: error: `double __builtin_nan(const
> char*)' cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:957: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:958: error: field initializer is not constant
> /usr/include/c++/3.3.3/limits:973: error: field initializer is not constant
> /usr/include/c++/3.3.3/limits:1013: error: `long double
> __builtin_huge_vall()' cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:1013: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:1013: error: `long double
> __builtin_huge_vall()' cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:1013: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:1015: error: `long double
> __builtin_nanl(const char*)' cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:1015: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:1015: error: `long double
> __builtin_nanl(const char*)' cannot appear in a constant-expression
> /usr/include/c++/3.3.3/limits:1015: error: a function call cannot appear in
> a constant-expression
> /usr/include/c++/3.3.3/limits:1016: error: field initializer is not constant
> /usr/include/c++/3.3.3/limits:1032: error: field initializer is not constant
> In file included from /usr/include/c++/3.3.3/map:66,
> from bencode.h:28,
> from bencode.cc:29:
> /usr/include/c++/3.3.3/bits/stl_tree.h: In constructor
> `std::_Rb_tree_base<_Tp, _Alloc>::_Rb_tree_base(const typename
> std::_Rb_tree_alloc_base<_Tp, _Alloc,
> std::_Alloc_traits<_Tp,_Allocator>::_S_instanceless>::allocator_type&)':
> /usr/include/c++/3.3.3/bits/stl_tree.h:579: error: `_M_header' undeclared
> (first use this function)
> /usr/include/c++/3.3.3/bits/stl_tree.h:579: error: there are no arguments
> to `_M_get_node' that depend on a template parameter, so a declaration of
> `_M_get_node' must be available
> /usr/include/c++/3.3.3/bits/stl_tree.h: In destructor
> `std::_Rb_tree_base<_Tp, _Alloc>::~_Rb_tree_base()':
> /usr/include/c++/3.3.3/bits/stl_tree.h:580: error: `_M_header' undeclared
> (first use this function)
> /usr/include/c++/3.3.3/bits/stl_tree.h:580: error: there are no arguments
> to `_M_put_node' that depend on a template parameter, so a declaration of
> `_M_put_node' must be available
> In file included from /usr/include/c++/3.3.3/list:71,
> from bencode.h:29,
> from bencode.cc:29:
> /usr/include/c++/3.3.3/bits/stl_list.h: In constructor
> `std::_List_base<_Tp, _Alloc>::_List_base(const typename
> std::_List_alloc_base<_Tp, _Alloc,
> std::_Alloc_traits<_Tp,_Allocator>::_S_instanceless>::allocator_type&)':
> /usr/include/c++/3.3.3/bits/stl_list.h:304: error: `_M_node' undeclared
> (first use this function)
> /usr/include/c++/3.3.3/bits/stl_list.h:304: error: there are no arguments
> to `_M_get_node' that depend on a template parameter, so a declaration of
> `_M_get_node' must be available
> /usr/include/c++/3.3.3/bits/stl_list.h: In destructor `std::_List_base<_Tp,
> _Alloc>::~_List_base()':
> /usr/include/c++/3.3.3/bits/stl_list.h:313: error: `_M_node' undeclared
> (first use this function)
> /usr/include/c++/3.3.3/bits/stl_list.h:313: error: there are no arguments
> to `_M_put_node' that depend on a template parameter, so a declaration of
> `_M_put_node' must be available
> In file included from /usr/include/c++/3.3.3/list:74,
> from bencode.h:29,
> from bencode.cc:29:
> /usr/include/c++/3.3.3/bits/list.tcc: In member function `void
> std::_List_base<_Tp, _Alloc>::__clear()':
> /usr/include/c++/3.3.3/bits/list.tcc:72: error: `_M_node' undeclared (first
> use this function)
> make[4]: *** [bencode.lo] Error 1
> make[4]: Leaving directory `/usr/src/libtorrent-0.6.2/src/torrent'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/usr/src/libtorrent-0.6.2/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/src/libtorrent-0.6.2'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/src/libtorrent-0.6.2'
>  ! Problem Detected ! 

> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss


--
Arwed v. Merkatz Source Mage GNU/Linux developer
http://www.sourcemage.org




Archive powered by MHonArc 2.6.24.

Top of Page