Subject: [Boost-bugs] [Boost C++ Libraries] #7011: Toolset 'intel-darwin' fails as 'stdarg.h' can not be found
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-21 16:38:35
#7011: Toolset 'intel-darwin' fails as 'stdarg.h' can not be found
----------------------------+-----------------------------------------------
Reporter: vogel@⦠| Type: Bugs
Status: new | Milestone: To Be Determined
Component: Building Boost | Version: Boost 1.49.0
Severity: Problem | Keywords:
----------------------------+-----------------------------------------------
Building boost (1.49, and also 1.50 beta) using the 'intel-darwin' toolset
currently fails on my system, showing errors such as:
{{{
compile.c(33): catastrophic error: cannot open source file "stdarg.h"
# include <stdarg.h>
^
compilation aborted for compile.c (code 4)
}}}
I use the most recent versions of the required developer programs, ICC
12.1.4 and XCode 4.3.3. This appears to be a specific problem of Apple &
Intel in case of 'stdarg.h', and the error can be replicated by compiling
any C/C++ source file including that header. The problem is also described
in Intel's support forum (http://software.intel.com/en-
us/forums/showthread.php?t=69724).
Apparently, the problem can be fixed by adding at least one of the
following compiler flags:
{{{
-dev-usr-root=/Applications/Xcode.app/Contents/Developer/usr
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
-gcc-name=gcc-4.2 -gxx-name=g++-4.2
}}}
Potentially, a call to `xcode-select -print-path` may be necessary to
obtain the correct path. From my perspective, the first option in
combination with `xcode-select` looks to be the most robust solution.
I am, unfortunately, a novice concerning bjam, and can thus not offer a
real fix. I will be happy to help if a test run is required. Thank you for
help!
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7011> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC