public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43426]  New: dlsym: invalid version 5 (max 0)
@ 2010-03-18 18:22 mt1 at systella dot fr
  2010-03-19 13:07 ` [Bug target/43426] " rguenth at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mt1 at systella dot fr @ 2010-03-18 18:22 UTC (permalink / raw)
  To: gcc-bugs

Hello,

I'm trying to build sqlite-3.6.22 on a sun4v server (T1 processor). I have
tried bith gcc 4.4.1 and 4.4.3 in 32 and 64 bits modes. sqlite build process
aborts with:
...
gcc -DSQLITE_THREADSAFE=0 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE
-mtune=niagara -mcpu=niagara -m64 -m64 -m64 -m64 -o .libs/sqlite3 shell.o 
-L/usr/lib/sparcv9 ./.libs/libsqlite3.so -lreadline -lcurses  -Wl,--rpath
-Wl,/usr/local/lib
/usr/shared-apps/lib/gcc/sparc-sun-solaris2.10/4.4.3/../../../../sparc-sun-solaris2.10/bin/ld:
./.libs/libsqlite3.so: dlsym: invalid version 5 (max 0)
./.libs/libsqlite3.so: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [sqlite3] Error 1

libsqlite.a is usable. I have no idea about libsqlite3.so usability. Both
compilers work fine on all others programs I have tried to build. If I replace
libsqlite3.so by libsqlite3.a, link stage can be done without error:
tchaikovski:[~/rpl/build/tools/sqlite-3.6.22] > gcc -DSQLITE_THREADSAFE=0
-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -mtune=niagara -mcpu=niagara -m64
-m64 -m64 -m64 -o .libs/sqlite3 shell.o  -L/usr/lib/sparcv9
./.libs/libsqlite3.a -lreadline -lcurses  -Wl,--rpath -Wl,/usr/local/lib
tchaikovski:[~/rpl/build/tools/sqlite-3.6.22] >

Gcc options are:
tchaikovski:[~/rpl/build/tools/sqlite-3.6.22] > gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.4.3/configure --prefix=/usr/shared-apps
--enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
--enable-nls --enable-checking=release --with-mpfr=/usr/shared-apps/
--with-gnu-ld --enable-bootstrap
Thread model: posix
gcc version 4.4.3 (GCC)

I have checked mpfr and gmp and I use binutils 2.20.1.

On another sparc server (sun4u, dual UltraSPARC-III) running debian/squeeze
with gcc-4.4 (gcc version 4.4.3 20100108), I cannot reproduce this bug.

Regards,

JKB


-- 
           Summary: dlsym: invalid version 5 (max 0)
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mt1 at systella dot fr
 GCC build triplet: sparc-sun-solaris2.10
  GCC host triplet: sparc-sun-solaris2.10
GCC target triplet: sparc-sun-solaris2.10


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43426


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

* [Bug target/43426] dlsym: invalid version 5 (max 0)
  2010-03-18 18:22 [Bug c/43426] New: dlsym: invalid version 5 (max 0) mt1 at systella dot fr
@ 2010-03-19 13:07 ` rguenth at gcc dot gnu dot org
  2010-04-28 18:19 ` ro at gcc dot gnu dot org
  2010-09-20 22:22 ` ebotcazou at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-19 13:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-03-19 13:07 -------
*** Bug 43429 has been marked as a duplicate of this bug. ***


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43426


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

* [Bug target/43426] dlsym: invalid version 5 (max 0)
  2010-03-18 18:22 [Bug c/43426] New: dlsym: invalid version 5 (max 0) mt1 at systella dot fr
  2010-03-19 13:07 ` [Bug target/43426] " rguenth at gcc dot gnu dot org
@ 2010-04-28 18:19 ` ro at gcc dot gnu dot org
  2010-09-20 22:22 ` ebotcazou at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-04-28 18:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ro at gcc dot gnu dot org  2010-04-28 18:19 -------
(In reply to comment #0)

> gcc -DSQLITE_THREADSAFE=0 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE
> -mtune=niagara -mcpu=niagara -m64 -m64 -m64 -m64 -o .libs/sqlite3 shell.o 
> -L/usr/lib/sparcv9 ./.libs/libsqlite3.so -lreadline -lcurses  -Wl,--rpath
> -Wl,/usr/local/lib
> /usr/shared-apps/lib/gcc/sparc-sun-solaris2.10/4.4.3/../../../../sparc-sun-solaris2.10/bin/ld:
> ./.libs/libsqlite3.so: dlsym: invalid version 5 (max 0)

This is a GNU ld error message.  You might want to report this to the binutils
maintainers.

> Gcc options are:
> tchaikovski:[~/rpl/build/tools/sqlite-3.6.22] > gcc -v
> Using built-in specs.
> Target: sparc-sun-solaris2.10
> Configured with: ../gcc-4.4.3/configure --prefix=/usr/shared-apps
> --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
> --enable-nls --enable-checking=release --with-mpfr=/usr/shared-apps/
> --with-gnu-ld --enable-bootstrap
> Thread model: posix
> gcc version 4.4.3 (GCC)
> 
> I have checked mpfr and gmp and I use binutils 2.20.1.

Please try this without --with-gnu-ld (and GNU ld as ld in PATH), as
recommended
in the installation instructions.

> On another sparc server (sun4u, dual UltraSPARC-III) running debian/squeeze
> with gcc-4.4 (gcc version 4.4.3 20100108), I cannot reproduce this bug.

Irrelevant since this is a completely different OS.


-- 

ro at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ro at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43426


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

* [Bug target/43426] dlsym: invalid version 5 (max 0)
  2010-03-18 18:22 [Bug c/43426] New: dlsym: invalid version 5 (max 0) mt1 at systella dot fr
  2010-03-19 13:07 ` [Bug target/43426] " rguenth at gcc dot gnu dot org
  2010-04-28 18:19 ` ro at gcc dot gnu dot org
@ 2010-09-20 22:22 ` ebotcazou at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-09-20 22:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ebotcazou at gcc dot gnu dot org  2010-09-20 22:21 -------
Not a GCC bug.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43426


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

end of thread, other threads:[~2010-09-20 22:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-18 18:22 [Bug c/43426] New: dlsym: invalid version 5 (max 0) mt1 at systella dot fr
2010-03-19 13:07 ` [Bug target/43426] " rguenth at gcc dot gnu dot org
2010-04-28 18:19 ` ro at gcc dot gnu dot org
2010-09-20 22:22 ` ebotcazou 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).