public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/27408] New: g++ -force_flat_namespace fails due to crt3.o multiply defined symbols @ 2006-05-03 13:49 peter at pogma dot com 2006-05-03 15:29 ` [Bug target/27408] [4.2 Regression] " pinskia at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: peter at pogma dot com @ 2006-05-03 13:49 UTC (permalink / raw) To: gcc-bugs 03-May-2006 12:37 PM Peter O'Gorman: g++ -force_flat_namespace dies with multiple definition of symbols in libSystem and crt3.o on Mac OS X 10.4. peter$ /opt/gcc_mainline/bin/g++ -force_flat_namespace -o foo foo.cpp /opt/odcctools/bin/ld: multiple definitions of symbol _atexit /opt/gcc_mainline/lib/gcc/powerpc-apple-darwin8.6.0/4.2.0/crt3.o private external definition of _atexit in section (__TEXT,__text) /usr/lib/libSystem.dylib(atexit.So) definition of _atexit /opt/odcctools/bin/ld: multiple definitions of symbol ___cxa_atexit /opt/gcc_mainline/lib/gcc/powerpc-apple-darwin8.6.0/4.2.0/crt3.o private external definition of ___cxa_atexit in section (__TEXT,__text) /usr/lib/libSystem.dylib(atexit.So) definition of ___cxa_atexit collect2: ld returned 1 exit status I expected the link to succeed. This bug is also an Apple radar - rdar://problem/4535166 Peter -- Summary: g++ -force_flat_namespace fails due to crt3.o multiply defined symbols Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: peter at pogma dot com GCC host triplet: *-*-darwin8* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27408 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/27408] [4.2 Regression] g++ -force_flat_namespace fails due to crt3.o multiply defined symbols 2006-05-03 13:49 [Bug c++/27408] New: g++ -force_flat_namespace fails due to crt3.o multiply defined symbols peter at pogma dot com @ 2006-05-03 15:29 ` pinskia at gcc dot gnu dot org 2006-05-03 17:12 ` geoffk at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-05-03 15:29 UTC (permalink / raw) To: gcc-bugs -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |geoffk at gcc dot gnu dot | |org Severity|normal |major Component|c++ |target GCC host triplet|*-*-darwin8* | GCC target triplet| |*-*-darwin8* Summary|g++ -force_flat_namespace |[4.2 Regression] g++ - |fails due to crt3.o multiply|force_flat_namespace fails |defined symbols |due to crt3.o multiply | |defined symbols Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27408 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/27408] [4.2 Regression] g++ -force_flat_namespace fails due to crt3.o multiply defined symbols 2006-05-03 13:49 [Bug c++/27408] New: g++ -force_flat_namespace fails due to crt3.o multiply defined symbols peter at pogma dot com 2006-05-03 15:29 ` [Bug target/27408] [4.2 Regression] " pinskia at gcc dot gnu dot org @ 2006-05-03 17:12 ` geoffk at gcc dot gnu dot org 2006-05-03 23:34 ` pinskia at gcc dot gnu dot org 2006-05-23 21:22 ` geoffk at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: geoffk at gcc dot gnu dot org @ 2006-05-03 17:12 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from geoffk at gcc dot gnu dot org 2006-05-03 17:12 ------- If fixed, this will be fixed in the Darwin linker. In the meantime, don't use -force_flat_namespace. In fact, it's probably better if you don't use it at all; the system libraries aren't expecting it and this is just one of many possible problems. -- geoffk at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27408 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/27408] [4.2 Regression] g++ -force_flat_namespace fails due to crt3.o multiply defined symbols 2006-05-03 13:49 [Bug c++/27408] New: g++ -force_flat_namespace fails due to crt3.o multiply defined symbols peter at pogma dot com 2006-05-03 15:29 ` [Bug target/27408] [4.2 Regression] " pinskia at gcc dot gnu dot org 2006-05-03 17:12 ` geoffk at gcc dot gnu dot org @ 2006-05-03 23:34 ` pinskia at gcc dot gnu dot org 2006-05-23 21:22 ` geoffk at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-05-03 23:34 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-03 23:34 ------- Can we then have a new cctools which includes a newer ld64 also since right now powerpc-darwin is broken on a G5 without using --disable-multilib. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27408 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/27408] [4.2 Regression] g++ -force_flat_namespace fails due to crt3.o multiply defined symbols 2006-05-03 13:49 [Bug c++/27408] New: g++ -force_flat_namespace fails due to crt3.o multiply defined symbols peter at pogma dot com ` (2 preceding siblings ...) 2006-05-03 23:34 ` pinskia at gcc dot gnu dot org @ 2006-05-23 21:22 ` geoffk at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: geoffk at gcc dot gnu dot org @ 2006-05-23 21:22 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from geoffk at gcc dot gnu dot org 2006-05-23 21:21 ------- (In reply to comment #2) > Can we then have a new cctools which includes a newer ld64 also since right now > powerpc-darwin is broken on a G5 without using --disable-multilib. This specific problem should be resolved with Xcode 2.3, just released. However -force_flat_namespace still doesn't work. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27408 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-05-23 21:22 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-05-03 13:49 [Bug c++/27408] New: g++ -force_flat_namespace fails due to crt3.o multiply defined symbols peter at pogma dot com 2006-05-03 15:29 ` [Bug target/27408] [4.2 Regression] " pinskia at gcc dot gnu dot org 2006-05-03 17:12 ` geoffk at gcc dot gnu dot org 2006-05-03 23:34 ` pinskia at gcc dot gnu dot org 2006-05-23 21:22 ` geoffk 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).