public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: __gnu_cxx error in OpenSolaris
@ 2011-05-18 21:22 Dennis Clarke
  2011-05-19  8:43 ` Dr. David Kirkby
  0 siblings, 1 reply; 36+ messages in thread
From: Dennis Clarke @ 2011-05-18 21:22 UTC (permalink / raw)
  To: asyropoulos; +Cc: gcc-help


>
>>I have had good results for both Sparc and i386/AMD64 with or without
> gas
>>( GNU as ) however you must always use Sun provided LD=/usr/ccs/bin/ld
> if
>>you want things to work.
>
> Yes but I have forgot to say that I have tried with the Solaris ld and
> the result
> was in essence the same. Also,
>
> $ elfdump -s /usr/lib/libstdc++.so.6.0.14|grep gnu_cxx
>
> shows that the sumbols are included in the library!
>
> BTW, have you compiled the latest Qt with gcc? You know solaris
> studio is not an option as most useful programs do not compile
> with it.

Yeah I have hit that issue myself over and over to a point where I gave up
on Sun Studio. Such is life.

As for QT , well I have not tried in a while.

Stick with GCC and you will be happy.

-- 
Dennis Clarke
dclarke@opensolaris.ca  <- Email related to the open source Solaris
dclarke@blastwave.org   <- Email related to open source for Solaris


^ permalink raw reply	[flat|nested] 36+ messages in thread
* Re: __gnu_cxx error in OpenSolaris
@ 2011-05-19 17:09 Dennis Clarke
  2011-05-19 19:03 ` asyropoulos
  0 siblings, 1 reply; 36+ messages in thread
From: Dennis Clarke @ 2011-05-19 17:09 UTC (permalink / raw)
  To: asyropoulos; +Cc: gcc-help


>>See the docs for --enable-symvers at
>>http://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html
>>
>>If that isn't given explicitly then it will be guessed by configure.
>>The guess will depend on whether the linker supports symvers or not so
>>depends on what linker gcc is configured to use. Also support for
>>--enable-symvers=sun was added in gcc 4.6, so maybe that is being used
>>by your 4.6 build.
>
>
> Thank you for the info. I have tried to compiled Qt with gcc
>
> $  gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/opt/gnu/gcc-4.6.0/libexec/gcc/i386-pc-solaris2.11/4.
> 6.0/lto-wrapper
> Target: i386-pc-solaris2.11
> Configured with: ../gcc-4.6.0/configure --prefix=/opt/gnu/gcc-4.6.0
> --enable-shared --disable-libtool-lock
> --target= --enable-objc-gc --disable-libada --enable-libssp
> --enable-languages=c,c++
> --enable-threads=posix --enable-tls=yes --with-system-zlib
> --with-gnu-ld --with-ld=/usr/gnu/bin/ld
> --with-gnu-as --with-as=/usr/sfw/bin/gas --with-gmp-lib=/usr/lib
> --with-mpfr-lib=/usr/lib
> --enable-c99 --enable-nls --enable-wchar_t
> --enable-libstdcxx-allocator=mt --with-pic --enable-multilib
> Thread model: posix
> gcc version 4.6.0 (GCC)
>
>
> and this time compilation completed with no problems. So it seems that
> GNU ld does something
> magical...

Doe that not frighten you a bit ? I would think that one should never
astonish the user with such things.

Dennis


^ permalink raw reply	[flat|nested] 36+ messages in thread
* Re: __gnu_cxx error in OpenSolaris
@ 2011-05-18 20:32 Dennis Clarke
  2011-05-18 21:20 ` asyropoulos
  0 siblings, 1 reply; 36+ messages in thread
From: Dennis Clarke @ 2011-05-18 20:32 UTC (permalink / raw)
  To: asyropoulos; +Cc: gcc-help


>
> Hello,
>
> I am trying to build the latest Qt (v. 4.7.3) with gcc but it fails and
> stops with the following error message:
>
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to `__gnu_cxx::__pool<true>::_M_initialize()'
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to `std::_List_node_base::_M_unhook()'
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to `__gnu_cxx::__pool<true>::_M_get_thread_id()'
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to
> `__gnu_cxx::__pool<true>::_M_reclaim_block(char*, unsigned int)'
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to
> `__gnu_cxx::__pool<true>::_M_reserve_block(unsigned int, unsigned int)'
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to
> `std::_List_node_base::_M_hook(std::_List_node_base*)'
> collect2: ld returned 1 exit status
> make: *** [../../../../bin/assistant] Error 1
>
> I am using OpenSolaris and both gcc 4.5.4 and 4.6.0 stop with the same
> error.  In the "Platform and Compiler Notes"
>
> http://doc.qt.nokia.com/4.7-snapshot/platform-notes-x11.html
>
> it is advised that on Solaris one should use GNU ld/as and not the
> Solaris ld/as.  Now, gcc has been configured
> as follows:
>
> $ /opt/gcc-4.6.0/bin/gcc -v
> Using built-in specs.
> COLLECT_GCC=/opt/gcc-4.6.0/bin/gcc
> COLLECT_LTO_WRAPPER=/opt/gcc-4.6.0/libexec/gcc/i386-pc-solaris2.11/4.6.0/
> lto-wrapper
> Target: i386-pc-solaris2.11
> Configured with: ../gcc-4.6.0/configure --prefix=/opt/gcc-4.6.0
> --enable-shared --enable-static
> --disable-libtool-lock --target= --enable-objc-gc --disable-libada
> --enable-libssp
> --enable-languages=c,c++,fortran,go,objc,obj-c++ --enable-threads=posix
> --enable-tls=yes --with-system-zlib --without-gnu-ld
> --with-ld=/usr/ccs/bin/ld
> --with-gnu-as --with-as=/usr/sfw/bin/gas --with-gmp-lib=/usr/lib
> --with-mpfr-lib=/usr/lib
> --enable-c99 --enable-nls --enable-wchar_t
> --enable-libstdcxx-allocator=mt --with-pic --enable-multilib
> Thread model: posix
> gcc version 4.6.0 (GCC)
>
>
> and
> $ ls -l /usr/ccs/bin/ld
> lrwxrwxrwx 1 root root 12 2010-10-02 15:41 /usr/ccs/bin/ld ->
> ../../bin/ld
> $ /usr/bin/ld --version
> GNU ld (GNU Binutils) 2.19
> Copyright 2007 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms
> of
> the GNU General Public License version 3 or (at your option) a later
> version.
> This program has absolutely no warranty.
>
> So I am using gld when compiling. I would appreciate and
> comment/suggestion/idea
> that would help me.
>
> Regards,
>
> Apostolos


see http://gcc.gnu.org/gcc-4.6/buildstat.html

for i386-pc-solaris2.8
http://gcc.gnu.org/ml/gcc-testresults/2011-04/msg00175.html

and for sparc-sun-solaris2.8
http://gcc.gnu.org/ml/gcc-testresults/2011-03/msg02959.html

I have had good results for both Sparc and i386/AMD64 with or without gas
( GNU as ) however you must always use Sun provided LD=/usr/ccs/bin/ld if
you want things to work.


-- 
Dennis Clarke
dclarke@opensolaris.ca  <- Email related to the open source Solaris
dclarke@blastwave.org   <- Email related to open source for Solaris


^ permalink raw reply	[flat|nested] 36+ messages in thread
* __gnu_cxx error in OpenSolaris
@ 2011-05-18 19:58 asyropoulos
  2011-05-18 20:48 ` Jonathan Wakely
  2011-05-19  0:12 ` Marc Glisse
  0 siblings, 2 replies; 36+ messages in thread
From: asyropoulos @ 2011-05-18 19:58 UTC (permalink / raw)
  To: gcc-help


Hello,

I am trying to build the latest Qt (v. 4.7.3) with gcc but it fails and 
stops with the following error message:

/extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
4: undefined reference to `__gnu_cxx::__pool<true>::_M_initialize()'
/extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
4: undefined reference to `std::_List_node_base::_M_unhook()'
/extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
4: undefined reference to `__gnu_cxx::__pool<true>::_M_get_thread_id()'
/extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
4: undefined reference to 
`__gnu_cxx::__pool<true>::_M_reclaim_block(char*, unsigned int)'
/extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
4: undefined reference to 
`__gnu_cxx::__pool<true>::_M_reserve_block(unsigned int, unsigned int)'
/extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
4: undefined reference to 
`std::_List_node_base::_M_hook(std::_List_node_base*)'
collect2: ld returned 1 exit status
make: *** [../../../../bin/assistant] Error 1

I am using OpenSolaris and both gcc 4.5.4 and 4.6.0 stop with the same 
error.  In the "Platform and Compiler Notes"

http://doc.qt.nokia.com/4.7-snapshot/platform-notes-x11.html

it is advised that on Solaris one should use GNU ld/as and not the 
Solaris ld/as.  Now, gcc has been configured
as follows:

$ /opt/gcc-4.6.0/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/opt/gcc-4.6.0/bin/gcc
COLLECT_LTO_WRAPPER=/opt/gcc-4.6.0/libexec/gcc/i386-pc-solaris2.11/4.6.0/
lto-wrapper
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.6.0/configure --prefix=/opt/gcc-4.6.0 
--enable-shared --enable-static
--disable-libtool-lock --target= --enable-objc-gc --disable-libada 
--enable-libssp
--enable-languages=c,c++,fortran,go,objc,obj-c++ --enable-threads=posix
--enable-tls=yes --with-system-zlib --without-gnu-ld 
--with-ld=/usr/ccs/bin/ld
--with-gnu-as --with-as=/usr/sfw/bin/gas --with-gmp-lib=/usr/lib 
--with-mpfr-lib=/usr/lib
--enable-c99 --enable-nls --enable-wchar_t 
--enable-libstdcxx-allocator=mt --with-pic --enable-multilib
Thread model: posix
gcc version 4.6.0 (GCC)


and
$ ls -l /usr/ccs/bin/ld
lrwxrwxrwx 1 root root 12 2010-10-02 15:41 /usr/ccs/bin/ld -> 
../../bin/ld
$ /usr/bin/ld --version
GNU ld (GNU Binutils) 2.19
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms 
of
the GNU General Public License version 3 or (at your option) a later 
version.
This program has absolutely no warranty.

So I am using gld when compiling. I would appreciate and 
comment/suggestion/idea
that would help me.

Regards,

Apostolos

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

end of thread, other threads:[~2011-05-25 19:30 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-18 21:22 __gnu_cxx error in OpenSolaris Dennis Clarke
2011-05-19  8:43 ` Dr. David Kirkby
2011-05-19 13:43   ` Jonathan Wakely
     [not found]     ` <8CDE428B4BB3E2C-1354-53EC9@webmail-m062.sysops.aol.com>
     [not found]       ` <BANLkTikMNaDXY51WiHujQ0jxw3eE64fcFg@mail.gmail.com>
2011-05-19 14:51         ` asyropoulos
2011-05-19 14:54           ` Jonathan Wakely
2011-05-19 16:34             ` Jonathan Wakely
2011-05-19 17:00               ` asyropoulos
2011-05-19 20:09     ` David Kirkby
2011-05-20  1:57       ` Jonathan Wakely
2011-05-20  4:37         ` Ian Lance Taylor
2011-05-20  6:50         ` Dr. David Kirkby
2011-05-20  6:54           ` Jonathan Wakely
2011-05-20 14:29             ` Miles Bader
2011-05-20  6:20   ` Miles Bader
2011-05-20  7:00     ` Dr. David Kirkby
2011-05-20 12:17       ` Jonathan Wakely
2011-05-25 13:22         ` asyropoulos
2011-05-25 13:28           ` Jonathan Wakely
2011-05-25 14:55             ` asyropoulos
2011-05-25 16:20               ` Jonathan Wakely
2011-05-25 17:00               ` Ian Lance Taylor
2011-05-25 17:51                 ` asyropoulos
2011-05-25 18:12                   ` Jonathan Wakely
2011-05-25 18:46                     ` asyropoulos
2011-05-26 11:23                       ` Paul Smith
2011-05-25 18:40                   ` Ian Lance Taylor
  -- strict thread matches above, loose matches on Subject: below --
2011-05-19 17:09 Dennis Clarke
2011-05-19 19:03 ` asyropoulos
2011-05-18 20:32 Dennis Clarke
2011-05-18 21:20 ` asyropoulos
2011-05-18 21:24   ` Jonathan Wakely
2011-05-18 19:58 asyropoulos
2011-05-18 20:48 ` Jonathan Wakely
2011-05-18 20:59   ` asyropoulos
2011-05-19  0:12 ` Marc Glisse
2011-05-19 14:04   ` asyropoulos

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).