From: Ramakrishnan Muthukrishnan <vu3rdd@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Compiler Message
Date: Mon, 21 Jul 2014 12:22:29 +0530 [thread overview]
Message-ID: <CAA6Yd9X1MuJwzvEmNifjc-=Koy0mDgoduAz8MsBaMCoooyCXjQ@mail.gmail.com> (raw)
In-Reply-To: <CANZw+5cWvAdYtgkHyRWOs19FStAzna_kbttvAH6mpv4=HYxFDA@mail.gmail.com>
On Mon, Jul 21, 2014 at 8:25 AM, Shane Morris <edgecomberts@gmail.com> 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
next prev parent reply other threads:[~2014-07-21 6:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-21 2:55 Shane Morris
2014-07-21 6:36 ` tlaronde
2014-07-21 6:52 ` Ramakrishnan Muthukrishnan [this message]
2014-07-21 8:12 ` dante
2014-07-21 8:21 ` Shane Morris
2014-07-21 8:39 ` cam
2014-07-21 8:41 ` Shane Morris
2014-07-21 8:55 ` cam
2014-07-21 8:58 ` Shane Morris
2014-07-21 8:43 ` dante
2014-07-21 8:50 ` Shane Morris
2014-07-21 9:07 ` cam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAA6Yd9X1MuJwzvEmNifjc-=Koy0mDgoduAz8MsBaMCoooyCXjQ@mail.gmail.com' \
--to=vu3rdd@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).