> cc: Warning: illegal option -m64
> cc: -xmodel should be used with -xarch={amd64|generic64}
> genoffsets: /opt/onbld/bin/i386/cw failed with status 1
> *** Error code 1
...

> I am using Sun Studio 11, and the stock gcc (gcc
> version 3.4.3 (csl-sol210-3_4-20050802))from
> /usr/sfw/bin.  My quandry is that CC seems to be
> expecting to build the kernel portion, whereas gcc
> should be favoured, no?  I only mention this, as the
> -m64 is a gcc flag.  
> 
> I did a hg pull/update this morning

Hah!  Apparently since yesterday, you now have to use the
Studio 12 compiler...

Did you read this:
http://www.opensolaris.org/os/community/on/flag-days/pages/2008092401/

    ================================

Date: Thu, 25 Sep 2008 01:48:52 +0100
From: Nick Todd <nick.t...@sun dot com>
To: on-all at sun dot com, onnv-gate at onnv dot eng dot sun dot com, s11-cbe 
at sun dot com
Subject: Flag day: compiler switch to Sun Studio 12

With the push of:

6659940 ON makefiles use wrong options for Sun Studio 12 compiler and lint.
6751897 usr/src/tools/cw.c needs to be updated for Sun Studio 12 switchover.

the compilers used to build ON have changed to Sun Studio 12 (Mars).

The compilers are available from /ws/onnv-tools/SUNWspro/SS12.

If you are a build machine maintainer you will need to update any local copies 
of the compiler, and the build tools (SUNWonbld) will need to be updated in 
order to pick up the new compiler wrapper (cw).

The best way to do this is:

# pkgrm SUNWonbld
# pkgadd -d /net/onnv.sfbay/export/gate/public/packages/`uname -p` SUNWonbld


If you have any problems or questions please contact me and cc gk at onnv dot 
eng dot sun dot com.

    ================================



>, so quite a bit
> of difference to the stock snv_95 (of which built
> fine yesterday).
--
This message posted from opensolaris.org

Reply via email to