lang/gcc not build

Dimitry Andric dim at FreeBSD.org
Tue Nov 26 21:57:01 UTC 2013


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20131126/5e01f82a/attachment.sig>


More information about the freebsd-ports mailing list