From owner-freebsd-ports@FreeBSD.ORG Wed Nov 27 15:11:57 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB0FFFB9; Wed, 27 Nov 2013 15:11:57 +0000 (UTC) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0A51525E4; Wed, 27 Nov 2013 15:11:56 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id w7so5381018lbi.22 for ; Wed, 27 Nov 2013 07:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=L6NN1QbRCsRj7cGC2lCVhXNFRd/Z3HZjoDI2XwwMoHE=; b=HQab4IBAwiZBrzGWWYMS7l9ipKS0sfbEf0vMvhIGv0YCe96fzHDBBuot756RMeIxLM KrZY20q0+b4vkFCaAxymiekjbr+/LxprnQ0FIUtoIxWRXyQOGyU7DF2326lKMfvYv5vY 8LdI8yhtdxVZsouLmbuk+5ZnG4bLCtFEnLCIJqAF3+t2fKbdTaJZ1VVK1u6OYi3To2Bi Zsr7lt22aLW3Q+2W52wpwXhAJ06W4MRJIE7uWctE8BD8TWRs6d20OWCREaFpYboF+g7u V1rak/YxczFiZlYJ2gyTXJaHdJcUExMn9Y+leYHyBhdLBfCOFrFQvvHF8JtsUZizn/Xn cVzg== X-Received: by 10.152.45.8 with SMTP id i8mr30525102lam.12.1385565115013; Wed, 27 Nov 2013 07:11:55 -0800 (PST) Received: from scorpion.kiev.ua ([78.111.187.11]) by mx.google.com with ESMTPSA id qj3sm46000107lbb.1.2013.11.27.07.11.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Nov 2013 07:11:53 -0800 (PST) Message-ID: <52960BB6.3050706@gmail.com> Date: Wed, 27 Nov 2013 17:11:50 +0200 From: Alexander Panyushkin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Dimitry Andric Subject: Re: lang/gcc not build References: <5294DEAA.5070308@gmail.com> <529503ED.5060604@gmail.com> <0D50880A-4C36-4E73-B06B-0AB6F45DAD85@FreeBSD.org> <529515FD.5000406@gmail.com> <3EFE15B9-F281-4941-A831-85B5A1B66F07@FreeBSD.org> In-Reply-To: <3EFE15B9-F281-4941-A831-85B5A1B66F07@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Brooks Davis , Ports FreeBSD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2013 15:11:57 -0000 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 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