Hi

On 02/15/07 12:10, Thomas De Schampheleire wrote:
Hi,
I am trying to compile on-src, currently as a regular user.
When doing
$ dmake setup
after a while I get the following error:
cc1: error: invalid option `no-integer-ldd-std'

See usr/src/tools/cw/cw.c for where that options is passed to gcc.

See http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02014.html for
some info on the option itself.

So my guess would be that you're picking up the incorrect or and old
gcc installation.  The makefiles run cw -_gcc which will be
influenced by things such as GNU_ROOT in your environment (with
MAKEFLAGS including -e, falls back to /usr/sfw otherwise).
See the cw manpage usr/src/tools/cw/cw.1:

     CW_GCC_DIR, CW_GPLUSPLUS_DIR, GNU_ROOT
         These variables alter the search path for GNU  compilers
         in  a manner similar to those described above.  Specifi-
         cally:  If CW_GCC_DIR is set,  the  GNU  C  compiler  in
         $CW_GCC_DIR will be used.  Likewise, if CW_GPLUSPLUS_DIR
         is set, the GNU C++ compiler in  $CW_GPLUSPLUS_DIR  will
         be  used.   Otherwise, if GNU_ROOT is set, the GNU C and
         C++ compilers in $GNU_ROOT/bin will be used.  Otherwise,
         the  GNU compilers in a predefined default location will
         be used.

So check your environment for any mention of those or similar
variables.  If it is finding /usr/sfw/bin/gcc then my only
guess is that you are running a rather old distribution.

Gavin
_______________________________________________
tools-discuss mailing list
[email protected]

Reply via email to