From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4273 invoked by alias); 2 Aug 2015 01:35:54 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 4255 invoked by uid 89); 2 Aug 2015 01:35:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: outside.256.com Received: from burger.256.com (HELO outside.256.com) (72.93.100.122) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Sun, 02 Aug 2015 01:35:52 +0000 Received: by outside.256.com (Postfix, from userid 33) id 4C181511D5D; Sat, 1 Aug 2015 21:35:50 -0400 (EDT) To: gcc-patches@gcc.gnu.org From: wispym.gcc@mailnull.com Subject: OS X build fix Message-Id: <20150802013550.4C181511D5D@outside.256.com> Date: Sun, 02 Aug 2015 01:35:00 -0000 X-SW-Source: 2015-08/txt/msg00013.txt.bz2 System ------ MacBook Pro OS X Yosemite Version 10.10.4 XCode Version 6.4 (6E35b) $ clang --version Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple-darwin14.4.0 Thread model: posix Building gcc-5.2.0 Problems -------- There were two build problems to overcome: 1) missing /usr/include directory 2) ../../../../gcc-5.2.0/libsanitizer/asan/asan_malloc_mac.cc:17:35: fatal error: CoreFoundation/CFBase.h: No such file or directory How I fixed my build -------------------- 1) ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include /usr/ 2) changed asan_malloc_mac.cc to include "CFAvailability.h" instead of CFBase.h and copied CFAvailability.h from Xcode directly into asan directory [ref: https://developer.apple.com/library/mac/releasenotes/General/APIDiffsMacOSX10_9/CoreFoundation.html] Extra information, for completeness ----------------------------------- gmp ./configure --prefix=/usr/local/gcc mpfr ./configure --{prefix,with-gmp}=/usr/local/gcc mpc ./configure --{prefix,with-gmp,with-mpfr}=/usr/local/gcc gcc ../gcc-5.2.0/configure --{prefix,with-{gmp,mpfr,mpc}}=/usr/local/gcc --enable-languages=c,c++ ---------- This message was sent from a MailNull anti-spam account. You can get your free account and take control over your email by visiting the following URL. http://mailnull.com/