[LLVMbugs] [Bug 3743] New: -mmacosx-version-min inappropriate for Mac OS X 10.4.11

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Mar 6 15:25:48 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=3743

           Summary: -mmacosx-version-min inappropriate for Mac OS X 10.4.11
           Product: Build scripts
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: scooter.phd at gmail.com
                CC: llvmbugs at cs.uiuc.edu


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
<built-in>: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


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list