I stumbled over an interesting problem where the emscripten-fastcomp build
process thinks it is running on OSX10.1, but this is OSX10.10:
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
The entire command line is below (note the -mmacosx-version-min=10.1). The
problem seems to be in the Options.inc file, but I haven't dug yet into
clangs build files enough.
tools/clang/include/clang/Driver/Options.inc:OPTION(prefix_1,
"mmacosx-version-min=", mmacosx_version_min_EQ, Joined, m_Group, INVALID,
0, 0, 0, 0)
Anybody had the same problem and found a fix?
Here's the linker command line that fails:
# c.f. llvm/tools/gold/Makefile
clang++
-I/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/build/include
-I/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/build/lib/Transforms/Hello
-I/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/include
-I/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/lib/Transforms/Hello
-DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -O3 -fvisibility-inlines-hidden -fno-exceptions
-fno-rtti -fno-common -Woverloaded-virtual -Wcast-qual -O3 -Wl,-rpath
-Wl,@executable_path/../lib
-L/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/build/Release/lib
-L/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/build/Release/lib
-m64 -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter
-Wwrite-strings -Wcovered-switch-default -Wno-uninitialized
-Wno-missing-field-initializers -Wl,-flat_namespace
-Wl,-undefined,suppress -dynamiclib -mmacosx-version-min=10.1 -o
/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/build/Release/lib/LLVMHello.dylib
/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/build/lib/Transforms/Hello/Release/Hello.o
\
-Wl,-exported_symbols_list,/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/build/lib/Transforms/Hello/Release/Hello.exports.sed
-lz -lpthread -lm
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.