checking build system type... x86_64-apple-darwin17.0.0
checking host system type... x86_64-apple-darwin17.0.0
configure: -----------------------------------------------
configure: reading configure.user for your custom settings
configure: -----------------------------------------------
checking for clang... clang
checking whether the C compiler works... no
configure: error: in `/Users/user/omnetpp-5.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
This seems to be the relevant section of config.log:
configure:2345: checking for clang
configure:2361: found /usr/bin/clang
configure:2372: result: clang
configure:2403: checking for C compiler version
configure:2412: clang --version >&5
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:2423: $? = 0
configure:2412: clang -v >&5
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:2423: $? = 0
configure:2412: clang -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:2423: $? = 1
configure:2412: clang -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:2423: $? = 1
configure:2443: checking whether the C compiler works
configure:2465: clang conftest.c >&5
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/usr/lib/libSystem.tbd, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/usr/lib/libSystem.tbd (3 slices)
ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:2469: $? = 1
configure:2507: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2512: error: in `/Users/user/omnetpp-5.2':
configure:2514: error: C compiler cannot create executables
See `config.log' for more details
Running both clang and GCC manually seem to also generate the following error, which seems to be the heart of the issue:
ld: warning: URGENT: building for OSX, but linking in object file (/var/folders/zh/_w3j4fws2mb80tmb617r_ycr0000gn/T//ccfp3Evo.o) built for iOS. Note: This will be an error in the future.
If this issue is with clang, is there a way to force building to use GCC? Alternatively, any sort of insight into why clang is behaving this way would be great. I've looked online for insight into the error message clang seems to be throwing, but I haven't yet found anything definitive. Thank you for your help.