Date: Wed, 27 Nov 2013 17:11:50 +0200 From: Alexander Panyushkin <vsityz@gmail.com> To: Dimitry Andric <dim@FreeBSD.org> Cc: Brooks Davis <brooks@FreeBSD.org>, Ports FreeBSD <freebsd-ports@freebsd.org> Subject: Re: lang/gcc not build Message-ID: <52960BB6.3050706@gmail.com> In-Reply-To: <3EFE15B9-F281-4941-A831-85B5A1B66F07@FreeBSD.org> References: <5294DEAA.5070308@gmail.com> <B50A7135-288C-45B5-B672-C6BCC9221EFE@FreeBSD.org> <529503ED.5060604@gmail.com> <0D50880A-4C36-4E73-B06B-0AB6F45DAD85@FreeBSD.org> <529515FD.5000406@gmail.com> <3EFE15B9-F281-4941-A831-85B5A1B66F07@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52960BB6.3050706>