From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Ramakrishnan Muthukrishnan Date: Mon, 21 Jul 2014 12:22:29 +0530 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] Compiler Message Topicbox-Message-UUID: 08019f7a-ead9-11e9-9d60-3106f5b1d025 On Mon, Jul 21, 2014 at 8:25 AM, Shane Morris 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: 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