Opened 10 years ago
Last modified 10 years ago
#7011 new Bugs
Toolset 'intel-darwin' fails as 'stdarg.h' can not be found
| Reported by: | Owned by: | Vladimir Prus | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | build |
| Version: | Boost 1.49.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
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!
Attachments (1)
Change History (4)
by , 10 years ago
| Attachment: | intel-darwin.patch added |
|---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
| Component: | Building Boost → build |
|---|---|
| Owner: | set to |

Having played around for some time, I have made some very minor (and potentially 'dirty') changes to the build system. Like that, boost can be built and installed again (using
./bootstrap.sh --with-toolset=intel-darwinand subsequent./b2 install). The patch has been created from thetrunk/of the SVN repository.