On Mon, Jul 21, 2014 at 8:25 AM, Shane Morris <[email protected]> wrote: > Hello again 9fans, > > I'm also trying to compile hosted Inferno for OS X 10.9, all seems to go > well until the "mk install" giving this error message: > > shanes-air-2:inferno-os boris$ PATH=`pwd`/MacOSX/386/bin:$PATH mk install > (cd lib9; mk install) > cc -c -arch i386 -mmacosx-version-min=10.4 -Wno-deprecated-declarations > -Wuninitialized -Wunused -Wreturn-type -Wimplicit -Wno-four-char-constants > -Wno-unknown-pragmas -pipe -fno-strict-aliasing -no-cpp-precomp > -mno-fused-madd -I/Users/boris/Documents/inferno-os/MacOSX/386/include > -I/Users/boris/Documents/inferno-os/include -Os convD2M.c > clang: error: unknown argument: '-mno-fused-madd' > [-Wunused-command-line-argument-hard-error-in-future] > clang: note: this will be a hard error (cannot be downgraded to a warning) > in the future > mk: cc -c -arch ... : exit status=exit(1) > mk: for j in ... : exit status=exit(1) > shanes-air-2:inferno-os boris$ > > Does anyone have any insight?
Hi, On OS X 10.9.x, gcc points to clang. I installed gcc-4.9.0 from source (follow instructions on this page, for example: <http://solarianprogrammer.com/2013/06/11/compiling-gcc-mac-os-x/> to get a working gcc. I don't use a package manager on OSX these days, I compile/install what I need, from source.) I then edited mkfiles/mkfile-MacOSX-386 to point to the newly built gcc (I called the gcc binary gcc-4.9.0). Here is the complete file. TARGMODEL= Posix TARGSHTYPE= sh CPUS= 386 O= o OS= o AR= ar ARFLAGS= ruvs A= a AS= gcc-4.9.0 -c -arch i386 -m32 ASFLAGS= ISYSROOT= -isysroot /Developer/SDKs/MacOSX10.6.sdk CC= gcc-4.9.0 -c -m32 COPTFLAGS= -Os CDEBUGFLAGS= CTHREADFLAGS= CFLAGS= -arch i386 -m32\ -mmacosx-version-min=10.6\ -Wno-deprecated-declarations -Wuninitialized -Wunused -Wreturn-type -Wimplicit -Wno-four-char-constants -Wno-unknown-pragmas\ -pipe\ -fno-strict-aliasing\ -mno-fused-madd\ -I$ROOT/MacOSX/386/include\ -I$ROOT/include\ $COPTFLAGS $CDEBUGFLAGS\ LD= gcc -arch i386 -m32 LDFLAGS=\ -mmacosx-version-min=10.4\ -multiply_defined suppress SYSLIBS= YACC= iyacc YFLAGS= -d -- Ramakrishnan
