From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22346 invoked by alias); 15 Nov 2012 17:54:04 -0000 Received: (qmail 22282 invoked by uid 48); 15 Nov 2012 17:53:41 -0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/55289] darwin bootstrap fails due to missing libsanitizer/interception/mach_override directory and files Date: Thu, 15 Nov 2012 17:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: howarth at nitro dot med.uc.edu 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-11/txt/msg01435.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55289 --- Comment #44 from Jack Howarth 2012-11-15 17:53:40 UTC --- Posted the final revision of the patch that now properly handles static linkage options with -faddress-sanitizer... http://gcc.gnu.org/ml/gcc-patches/2012-11/msg01285.html For example... % gcc-fsf-4.8 -faddress-sanitizer -O1 -fno-omit-frame-pointer -g -static-libstdc++ -o use-after-free use-after-free.c % otool -L ./use-after-free ./use-after-free: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.12.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) /sw/lib/gcc4.8/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) links in libstdc++.a while... % gcc-fsf-4.8 -faddress-sanitizer -O1 -fno-omit-frame-pointer -g -static-libgcc -o use-after-free use-after-free.c % otool -L ./use-after-free ./use-after-free: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.12.0) /sw/lib/gcc4.8/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.17.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) links libstdc++.dylib. The standard linkage with... % gcc-fsf-4.8 -faddress-sanitizer -O1 -fno-omit-frame-pointer -g -o use-after-free use-after-free.c % otool -L ./use-after-free ./use-after-free: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.12.0) /sw/lib/gcc4.8/lib/libasan.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) /sw/lib/gcc4.8/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) doesn't need to be directly linked against libstdc++ because libasan.0.dylib already is... % otool -L /sw/lib/gcc4.8/lib/libasan.0.dylib /sw/lib/gcc4.8/lib/libasan.0.dylib: /sw/lib/gcc4.8/lib/libasan.0.dylib (compatibility version 1.0.0, current version 1.0.0) /sw/lib/gcc4.8/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.17.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) /sw/lib/gcc4.8/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)