WITH_CLANG_IS_CC and unrecognized command line options

2012-05-20 Thread Bruce Cran
I've done a fresh install of FreeBSD 9.0, upgraded to 10-CURRENT and 
have just tried doing a rebuild with CLANG_IS_CC=yes in src.conf.  
However there's an error building ncurses:


cc: unrecognized option '-Qunused-arguments'
cc: unrecognized option '-Qunused-arguments'
cc1: error: unrecognized command line option -Wno-empty-body
cc1: error: unrecognized command line option -Wno-string-plus-int
cc1: error: unrecognized command line option -Wno-tautological-compare
cc1: error: unrecognized command line option -Wno-parentheses-equality
cc1: error: unrecognized command line option -Wno-empty-body
cc1: error: unrecognized command line option -Wno-string-plus-int
cc1: error: unrecognized command line option -Wno-tautological-compare
cc1: error: unrecognized command line option -Wno-parentheses-equality
*** [make_hash] Error code 1
*** [make_keys] Error code 1

Is there some configuration I've missed?

--
Bruce Cran
___
freebsd-toolchain@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to freebsd-toolchain-unsubscr...@freebsd.org


Re: WITH_CLANG_IS_CC and unrecognized command line options

2012-05-20 Thread Niclas Zeising

On 05/20/12 19:34, Bruce Cran wrote:

I've done a fresh install of FreeBSD 9.0, upgraded to 10-CURRENT and
have just tried doing a rebuild with CLANG_IS_CC=yes in src.conf.
However there's an error building ncurses:

cc: unrecognized option '-Qunused-arguments'
cc: unrecognized option '-Qunused-arguments'
cc1: error: unrecognized command line option -Wno-empty-body
cc1: error: unrecognized command line option -Wno-string-plus-int
cc1: error: unrecognized command line option -Wno-tautological-compare
cc1: error: unrecognized command line option -Wno-parentheses-equality
cc1: error: unrecognized command line option -Wno-empty-body
cc1: error: unrecognized command line option -Wno-string-plus-int
cc1: error: unrecognized command line option -Wno-tautological-compare
cc1: error: unrecognized command line option -Wno-parentheses-equality
*** [make_hash] Error code 1
*** [make_keys] Error code 1

Is there some configuration I've missed?



With the risk of stating the obvious. Are you sure cc is clang in this 
context. The line cc: unrecognized option '-Qunused-arguments' is 
quite suspicious.

Regards!
--
Niclas Zeising
___
freebsd-toolchain@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to freebsd-toolchain-unsubscr...@freebsd.org


Re: WITH_CLANG_IS_CC and unrecognized command line options

2012-05-20 Thread Dimitry Andric
On 2012-05-20 19:34, Bruce Cran wrote: I've done a fresh install of FreeBSD 
9.0, upgraded to 10-CURRENT and 
 have just tried doing a rebuild with CLANG_IS_CC=yes in src.conf.  
 However there's an error building ncurses:
 
 cc: unrecognized option '-Qunused-arguments'
 cc: unrecognized option '-Qunused-arguments'
 cc1: error: unrecognized command line option -Wno-empty-body
 cc1: error: unrecognized command line option -Wno-string-plus-int
 cc1: error: unrecognized command line option -Wno-tautological-compare
 cc1: error: unrecognized command line option -Wno-parentheses-equality
 cc1: error: unrecognized command line option -Wno-empty-body
 cc1: error: unrecognized command line option -Wno-string-plus-int
 cc1: error: unrecognized command line option -Wno-tautological-compare
 cc1: error: unrecognized command line option -Wno-parentheses-equality
 *** [make_hash] Error code 1
 *** [make_keys] Error code 1
 
 Is there some configuration I've missed?

Yeah, unfortunately, for the first buildworld to succeed you will also
need to have:

CC=clang
CXX=clang++
CPP=clang-cpp

in your src.conf.  After installing world, the new /usr/bin/cc will then
recognize the options. This is a problem that I haven't yet been able to
solve...
___
freebsd-toolchain@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to freebsd-toolchain-unsubscr...@freebsd.org