public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug debug/19212] New: /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' @ 2004-12-31 2:46 danglin at gcc dot gnu dot org 2004-12-31 5:52 ` [Bug debug/19212] " danglin at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: danglin at gcc dot gnu dot org @ 2004-12-31 2:46 UTC (permalink / raw) To: gcc-bugs /home/dave/gnu/gcc-3.3/objdir/gcc/xgcc -shared-libgcc -B/home/dave/gnu/gcc-3.3/o bjdir/gcc/ -nostdinc++ -L/home/dave/gnu/gcc-3.3/objdir/vax-ultrix/libstdc++-v3/s rc -L/home/dave/gnu/gcc-3.3/objdir/vax-ultrix/libstdc++-v3/src/.libs -B/home/dav e/opt/gnu/vax-ultrix/bin/ -B/home/dave/opt/gnu/vax-ultrix/lib/ -isystem /home/da ve/opt/gnu/vax-ultrix/include -nostdinc++ -I/home/dave/gnu/gcc-3.3/objdir/vax-ul trix/libstdc++-v3/include/vax-ultrix -I/home/dave/gnu/gcc-3.3/objdir/vax-ultrix/ libstdc++-v3/include -I../../../../gcc/libstdc++-v3/libsupc++ -I../../../../gcc/ libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite -strings -fdiagnostics-show-location=once -c ../../../../gcc/libstdc++-v3/src/lo cale.cc -o locale.o /tmp/ccbY7YyA.s: Assembler messages: /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151 ' This reference comes from the following line in the assembler output: .stabs "__s:V151",38,0,468,__ZNSt6locale13_S_categoriesE There is no other reference to `__s:V151' in the file. I have seen this in the past on this target. I also see unresolved symbols in the .stabs output on hppa*-*-hpux* but there the assembler ignores them. -- Summary: /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' Product: gcc Version: 3.3.6 Status: UNCONFIRMED Severity: normal Priority: P2 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: danglin at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: vax-ultrix http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19212 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/19212] /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' 2004-12-31 2:46 [Bug debug/19212] New: /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' danglin at gcc dot gnu dot org @ 2004-12-31 5:52 ` danglin at gcc dot gnu dot org 2005-01-02 19:53 ` danglin at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: danglin at gcc dot gnu dot org @ 2004-12-31 5:52 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From danglin at gcc dot gnu dot org 2004-12-31 05:52 ------- It seems that the assembler message is somewhat misleading. The problem would seem to be due to the fact that the symbol "_ZNSt6locale13_S_categoriesE" is not output in the .s but the 'V' apparently indicates static storage and local scope. This problem doesn't occur at -O0. (gdb) p debug_tree (decl) <var_decl 0x412085b0 __s type <pointer_type 0x4014aee0 type <integer_type 0x4014ae70 char readonly type_6 QI size <integer_cst 0x4001a400 constant 8> unit size <integer_cst 0x4001a420 constant 1> align 8 symtab 152 alias set -1 precision 8 min <integer_cst 0x4001a4c0 -128> max <integer_cst 0x4001a4e0 127> pointer_to_this <pointer_type 0x4014aee0> reference_to_this < reference_type 0x401fe690>> unsigned SI size <integer_cst 0x4001aba0 constant 32> unit size <integer_cst 0x4001abe0 constant 4> align 32 symtab 151 alias set -1 pointer_to_this <pointer_type 0x407e90e0> reference_to_this < reference_type 0x40998310>> unsigned used SI file /home/dave/gnu/gcc-3.3/objdir/vax-ultrix/libstdc++-v3/ include/bits/basic_string.h line 468 size <integer_cst 0x4001aba0 32> unit size < integer_cst 0x4001abe0 4> align 32 context <function_decl 0x407e6d90 name> abstract_origin <parm_decl 0x40e8c540 __s> initial <array_ref 0x411ed960> (mem/s:SI (symbol_ref:SI ("_ZNSt6locale13_S_categoriesE")) [19 _S_categories+ 0 S4 A32])> (gdb) p debug_rtx (home) (mem/s:SI (symbol_ref:SI ("_ZNSt6locale13_S_categoriesE")) [19 _S_categories+0 S4 A32]) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19212 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/19212] /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' 2004-12-31 2:46 [Bug debug/19212] New: /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' danglin at gcc dot gnu dot org 2004-12-31 5:52 ` [Bug debug/19212] " danglin at gcc dot gnu dot org @ 2005-01-02 19:53 ` danglin at gcc dot gnu dot org 2005-01-03 3:36 ` danglin at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: danglin at gcc dot gnu dot org @ 2005-01-02 19:53 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From danglin at gcc dot gnu dot org 2005-01-02 19:53 ------- Adding a bit of assembler code to the .s file to define _ZNSt6locale13_S_categoriesE eliminates the error: ... .globl __ZNSt6locale18_S_categories_sizeE .text .align 2 __ZNSt6locale18_S_categories_sizeE: .long 6 ;;; start added code .global __ZNSt6locale13_S_categoriesE .text .align 2 __ZNSt6locale13_S_categoriesE: .long 6 ;;; end added code .globl __ZNSt6locale24_S_extra_categories_sizeE .align 2 __ZNSt6locale24_S_extra_categories_sizeE: .long 0 .globl __ZNSt6locale2id12_S_highwaterE ... Thus, we need to determine why _ZNSt6locale13_S_categoriesE wasn't emitted. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19212 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/19212] /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' 2004-12-31 2:46 [Bug debug/19212] New: /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' danglin at gcc dot gnu dot org 2004-12-31 5:52 ` [Bug debug/19212] " danglin at gcc dot gnu dot org 2005-01-02 19:53 ` danglin at gcc dot gnu dot org @ 2005-01-03 3:36 ` danglin at gcc dot gnu dot org 2005-01-03 15:26 ` pinskia at gcc dot gnu dot org 2005-01-15 17:27 ` danglin at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: danglin at gcc dot gnu dot org @ 2005-01-03 3:36 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From danglin at gcc dot gnu dot org 2005-01-03 03:35 ------- Created an attachment (id=7862) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7862&action=view) Patch to add missing static member to instantiation -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19212 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/19212] /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' 2004-12-31 2:46 [Bug debug/19212] New: /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' danglin at gcc dot gnu dot org ` (2 preceding siblings ...) 2005-01-03 3:36 ` danglin at gcc dot gnu dot org @ 2005-01-03 15:26 ` pinskia at gcc dot gnu dot org 2005-01-15 17:27 ` danglin at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-01-03 15:26 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-01-03 15:26:55 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19212 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/19212] /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' 2004-12-31 2:46 [Bug debug/19212] New: /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' danglin at gcc dot gnu dot org ` (3 preceding siblings ...) 2005-01-03 15:26 ` pinskia at gcc dot gnu dot org @ 2005-01-15 17:27 ` danglin at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: danglin at gcc dot gnu dot org @ 2005-01-15 17:27 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From danglin at gcc dot gnu dot org 2005-01-15 17:27 ------- The patch causes problems: spawn /xxx/gnu/gcc-3.4/objdir/gcc/g++ -shared-libgcc -B/xxx/gnu/gcc-3.4/objdir/g cc/ -nostdinc++ -L/xxx/gnu/gcc-3.4/objdir/vax-dec-ultrix4.3/libstdc++-v3/src -L/ xxx/gnu/gcc-3.4/objdir/vax-dec-ultrix4.3/libstdc++-v3/src/.libs -B/usr/local/vax -dec-ultrix4.3/bin/ -B/usr/local/vax-dec-ultrix4.3/lib/ -isystem /usr/local/vax- dec-ultrix4.3/include -g -fmessage-length=0 -DDEBUG_ASSERT -DLOCALEDIR="/xxx/gnu /gcc-3.4/objdir/vax-dec-ultrix4.3/libstdc++-v3/po/share/locale" -nostdinc++ -I/x xx/gnu/gcc-3.4/objdir/vax-dec-ultrix4.3/libstdc++-v3/include/vax-dec-ultrix4.3 - I/xxx/gnu/gcc-3.4/objdir/vax-dec-ultrix4.3/libstdc++-v3/include -I/xxx/gnu/gcc-3 .4/gcc/libstdc++-v3/libsupc++ -I/xxx/gnu/gcc-3.4/gcc/libstdc++-v3/libio -I/xxx/g nu/gcc-3.4/gcc/libstdc++-v3/include/backward -I/xxx/gnu/gcc-3.4/gcc/libstdc++-v3 /testsuite /xxx/gnu/gcc-3.4/gcc/libstdc++-v3/testsuite/17_intro/header_iostream. cc -g -O2 -DDEBUG_ASSERT -lv3test -L/xxx/gnu/gcc-3.4/objdir/vax-dec-ultrix4.3//l ibstdc++-v3/testsuite -lm -o ./header_iostream.exe /xxx/gnu/gcc-3.4/objdir/vax-dec-ultrix4.3/libstdc++-v3/src/.libs/libstdc++.a(c++ locale.o)(.data+0x0):/xxx/gnu/gcc-3.4/objdir/vax-dec-ultrix4.3/libstdc++-v3/src/ c++locale.cc: multiple definition of `std::locale::_S_categories' /xxx/gnu/gcc-3.4/objdir/vax-dec-ultrix4.3/libstdc++-v3/src/.libs/libstdc++.a(loc ale.o)(.data+0x8):/xxx/gnu/gcc-3.4/objdir/vax-dec-ultrix4.3/libstdc++-v3/src/../ ../../../gcc/libstdc++-v3/src/locale.cc: first defined here collect2: ld returned 1 exit status compiler exited with status 1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19212 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-01-15 17:27 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-12-31 2:46 [Bug debug/19212] New: /tmp/ccbY7YyA.s:6435: Error: attempt to get value of unresolved symbol `__s:V151' danglin at gcc dot gnu dot org 2004-12-31 5:52 ` [Bug debug/19212] " danglin at gcc dot gnu dot org 2005-01-02 19:53 ` danglin at gcc dot gnu dot org 2005-01-03 3:36 ` danglin at gcc dot gnu dot org 2005-01-03 15:26 ` pinskia at gcc dot gnu dot org 2005-01-15 17:27 ` danglin 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).