From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32631 invoked by alias); 18 Apr 2012 12:45:03 -0000 Received: (qmail 32458 invoked by uid 22791); 18 Apr 2012 12:45:00 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_BJ X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Apr 2012 12:44:07 +0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/47762] FAIL: ext/mt_allocator/deallocate_global_thread-1.cc execution test Date: Wed, 18 Apr 2012 12:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg01498.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47762 --- Comment #15 from Iain Sandoe 2012-04-18 12:31:06 UTC --- (In reply to comment #14) > But anyway -static-libstdc++ works on Linux too to avoid the link-time problem. > Still (on x86_64-linux) the testcase runs Ok for me. OK. Just for the record - in case anyone is trying permutations; libc, libm, libpthread etc. are combined into libSystem.dylib on Darwin - which is always required to be a dynamic link for User space code. The compiler target libraries (less the NeXT objc one) can be linked statically - including libgomp (since pthreads are always available via libSystem), so static-lib{stdcc++, fortran, gcc} will work (barring other errors). Note, however, that using -static-libgcc will *only* work so long as you don't want to use any library [other than libSystem] or framework from /usr/lib or /System or /Library that uses the unwinder. Also, there is another (so far unhandled) bug with unwind generated by gcc > 4.5 - if you want to test code 'by hand' you should do DYLD_LIBRARY_PATH=/path/to/gcc/build/dir executable. Sorry, it's on my TODO - but only applies to Darwin 9 (Darwin >= 10 is OK, so far).