-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Description
Bugzilla Link | 3743 |
Resolution | FIXED |
Resolved on | Mar 10, 2009 12:16 |
Version | trunk |
OS | MacOS X |
Reporter | LLVM Bugzilla Contributor |
Extended Description
The values for "-mmacosx-version-min" need to be carefully chosen, since they vary from OSX version to version. On OSX 10.4.11, for example, "-mmacosx-version-min" can only take on the following values (quoted from the gcc man page):
-mmacosx-version-min=version
The earliest version of MacOS X that this executable will run on is
version. Typical values of version include 10.1, 10.2, and 10.3.9.
The default for this option is to make choices that seem to be most
useful.
Currently, this value for this flag is a blocker when compiling for 10.4.11 (yes, there are still a few of us out there who are mandated to use this OS version.)
Compilation output follows:
% make VERBOSE=1
for dir in lib/System lib/Support utils lib/VMCore lib tools/llvm-config tools docs; do
if [ ! -f $dir/Makefile ]; then
/Users/scottm/play/llvm/branches/llvm-spu/autoconf/mkinstalldirs $dir;
/bin/cp /Users/scottm/play/llvm/branches/llvm-spu/$dir/Makefile $dir/Makefile;
fi;
(make -C $dir all ) || exit 1;
done
llvm[1]: Compiling Alarm.cpp for Debug build
if g++ -I/Users/scottm/play/llvm/branches/llvm-spu/include -I/Users/scottm/play/llvm/branches/llvm-spu/lib/System -I/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/include -I/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fno-exceptions -fno-common -Woverloaded-virtual -mmacosx-version-min=sw_vers -productVersion
-Wall -W -Wwrite-strings -Wunused -Wno-unused-parameter -c -MMD -MP -MF "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.d.tmp" -MT "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.o" -MT "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.d" /Users/scottm/play/llvm/branches/llvm-spu/lib/System/Alarm.cpp -o /Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.o ;
then /bin/mv -f "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.d.tmp" "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.d"; else /bin/rm "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.d.tmp"; exit 1; fi
:1: error: Unknown value '10.4.11' of -mmacosx-version-min
make[1]: *** [/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.o] Error 1
make: *** [all] Error 1