lang/gcc not build

Alexander Panyushkin vsityz at gmail.com
Wed Nov 27 15:11:57 UTC 2013


Thanks.

It works

> .if ${.CURDIR:N*/ports/lang/gcc*} == ""
> CFLAGS= -O2 -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe -Wformat
> CPPFLAGS+= -D_FORTIFY_SOURCE=2
> CC=gcc46
> CXX=g++46
> CPP=cpp46
> .endif



On 26.11.2013 23:56, Dimitry Andric wrote:
> On 26 Nov 2013, at 22:43, Alexander Panyushkin <vsityz at gmail.com> wrote:
> ...
>> configure:4209: checking for C compiler default output file name
>> configure:4231: gcc46 -Oz -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe -Qunused-arguments -Qunused-parameter -Wformat -Wformat-security -O2 -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe -Wformat -I/usr/local/include -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -Wl,-rpath=/usr/local/lib/gcc46 conftest.c  >&5
>> gcc46: error: unrecognized option '-Qunused-arguments'
>> gcc46: error: unrecognized option '-Qunused-parameter'
>> configure:4235: $? = 1
> Apparently the COMPILER_TYPE logic in bsd.compiler.mk does not detect
> you are using gcc, most likely because you are using USE_GCC= in
> make.conf.  (This setting should normally be used in port Makefiles, not
> in make.conf, AFAIK.)
>
> Try one of the following:
> * Add COMPILER_TYPE=gcc in make.conf (in the part where you put USE_GCC)
> * Alternatively, remove USE_GCC and just set CC=gcc46, CXX=g++46 and
>    CPP=cpp46.
>
> -Dimitry
>


-- 
Alexander



More information about the freebsd-ports mailing list