From: wispym.gcc@mailnull.com
To: gcc-patches@gcc.gnu.org
Subject: OS X build fix
Date: Sun, 02 Aug 2015 01:35:00 -0000 [thread overview]
Message-ID: <20150802013550.4C181511D5D@outside.256.com> (raw)
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/
reply other threads:[~2015-08-02 1:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150802013550.4C181511D5D@outside.256.com \
--to=wispym.gcc@mailnull.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).