From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11654 invoked by alias); 13 Nov 2012 14:30:14 -0000 Received: (qmail 11392 invoked by uid 48); 13 Nov 2012 14:29:58 -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: Tue, 13 Nov 2012 14:30: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/msg01156.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55289 --- Comment #7 from Jack Howarth 2012-11-13 14:29:57 UTC --- (In reply to comment #6) > > what you need is to have "-framework CoreFoundation" on the link line - and I > > guess the configury &c. needs to arrange this. > > When compiled with -faddress-sanitizer -framework CoreFoundation -lasan, the > executable fails to run with > > dyld: lazy symbol binding failed: Symbol not found: > ___asan_mach_override_ptr_custom > Referenced from: /opt/gcc/gcc4.8w/lib/libasan.0.dylib > Expected in: flat namespace > > dyld: Symbol not found: ___asan_mach_override_ptr_custom > Referenced from: /opt/gcc/gcc4.8w/lib/libasan.0.dylib > Expected in: flat namespace > > Trace/BPT trap This symbol is contained in mach_override.c which we currently don't build in the Makefiles. Note that llvm's cmake files show mach_override.c is compiled with -std=c99. # Custom flags: projects/compiler-rt/lib/interception/CMakeFiles/RTInterception.osx.dir/mach_override/mach_override.c.o_FLAGS = -std=c99 The interception/mach_override/mach_override.c.o object file will need to be linked into both libasan.dylib and libasan.a.