incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-417) [gcc 3.3.3/x86] warning: type and size of dynamic symbol `__rw_atomic_add32' are not defined
Date Wed, 16 May 2007 00:59:16 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496170
] 

Martin Sebor commented on STDCXX-417:
-------------------------------------

The same programs that link with the warning fail with SIGSEGV at runtime. For instance, the
example bitset fails like this:

$ gdb ./bitset 
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r
Starting program: /build/sebor/stdcxx-gcc-3.3.3_43.31-12d/examples/bitset 
[Thread debugging using libthread_db enabled]
[New Thread 1076074752 (LWP 22514)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076074752 (LWP 22514)]
0x0804e5b1 in std::cout ()
(gdb) where
#0  0x0804e5b1 in std::cout ()
#1  0x0804ca70 in __libc_csu_fini () at elf-init.c:99
#2  0x08049070 in global constructors keyed to main ()
#3  0x0804cae9 in __do_global_ctors_aux ()
#4  0x08048e0d in _init ()
#5  0x0804ca91 in __libc_csu_init () at elf-init.c:77
#6  0x401331be in __libc_start_main () from /lib/tls/libc.so.6
#7  0x08048fc1 in _start () at start.S:119


> [gcc 3.3.3/x86] warning: type and size of dynamic symbol `__rw_atomic_add32' are not
defined
> --------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-417
>                 URL: https://issues.apache.org/jira/browse/STDCXX-417
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 4.2
>         Environment: gcc 3.3.3, Linux/x86
>            Reporter: Martin Sebor
>         Assigned To: Martin Sebor
>
> Many of our programs are linking with the ominous looking warning below. This only happens
on trunk, not with stdcxx-4.1.3.
> gcc alg1.o -o alg1 -pthread -L$(BUILDDIR)/lib  -Wl,-R$(BUILDDIR)/lib -lstd -lsupc++ -lm

> /package/1/utils/binutils/binutils-2.15.90.0.1.1-32.10/bin/ld: warning: type and size
of dynamic symbol `__rw_atomic_add32' are not defined
> gcc -c -I$(TOPDIR)/include/ansi   -pthread -I$(TOPDIR)/include -I$(BUILDDIR)/include
-I$(TOPDIR)/examples/include  -pedantic -nostdinc++ -O2  -W -Wall -Wcast-qual -Winline -Wshadow
-Wwrite-strings -Wno-long-long -Wcast-align   $(TOPDIR)/examples/tutorial/alg2.cpp
> gcc alg2.o -o alg2 -pthread -L$(BUILDDIR)/lib  -Wl,-R$(BUILDDIR)/lib -lstd -lsupc++ -lm


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message