From owner-freebsd-current@FreeBSD.ORG Wed Dec 7 08:32:25 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC02A1065672; Wed, 7 Dec 2011 08:32:25 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9A7F18FC12; Wed, 7 Dec 2011 08:32:25 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:8945:f03a:980c:c72] (unknown [IPv6:2001:7b8:3a7:0:8945:f03a:980c:c72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B1CBA5C37; Wed, 7 Dec 2011 09:32:24 +0100 (CET) Message-ID: <4EDF249B.8030104@FreeBSD.org> Date: Wed, 07 Dec 2011 09:32:27 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111130 Thunderbird/9.0 MIME-Version: 1.0 To: "O. Hartmann" References: <4EDEF1FF.5020307@zedat.fu-berlin.de> In-Reply-To: <4EDEF1FF.5020307@zedat.fu-berlin.de> Content-Type: multipart/mixed; boundary="------------020204010301000803080705" Cc: Current FreeBSD , freebsd-questions@freebsd.org Subject: Re: FreeBSD 10.0-CURRENT/AMD64 (CLANG): lang/gcc46 fails to build X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2011 08:32:25 -0000 This is a multi-part message in MIME format. --------------020204010301000803080705 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit On 2011-12-07 05:56, O. Hartmann wrote: > On FreeBSD 10.0-CURRENT/amd64 I run into the error shown below when > updating the installation of the gcc46 compiler suite. If you report port compilation errors, always use DISABLE_MAKE_JOBS, otherwise the actual error message will drown in multithreaded spam. :) (And even if you would save and post the full build log, it is sometimes still impossible to see which exact command failed and why.) That said, you are most likely running into an issue with the fix for FreeBSD 10-CURRENT in bsd.port.mk, causing the lto-plugin stage configure script to fail. This is because the gcc ports unpack their source code into ${WRKDIR}/gcc-${VERSIONSTRING}, and then override WRKSRC to ${WRKDIR}/build. Since bsd.port.mk only applies the run-autotools-fixup to ${WRKSRC}, the gcc source itself is not properly fixed up. You can try the attached patch, which fixes this (and fixes it for all other ports that override WKRSRC). --------------020204010301000803080705 Content-Type: text/x-diff; name="ports-fbsd10-wrkdir-1.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ports-fbsd10-wrkdir-1.diff" Index: Mk/bsd.port.mk =================================================================== RCS file: /home/mirror/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.699 diff -u -r1.699 bsd.port.mk --- Mk/bsd.port.mk 9 Nov 2011 08:53:12 -0000 1.699 +++ Mk/bsd.port.mk 7 Dec 2011 08:16:56 -0000 @@ -3663,7 +3663,7 @@ run-autotools-fixup: # Work around an issue where FreeBSD 10.0 is detected as FreeBSD 1.x. .if ${OSVERSION} >= 1000000 && !defined(WITHOUT_FBSD10_FIX) - -@for f in `${FIND} ${WRKSRC} -type f \( -name config.libpath -o \ + -@for f in `${FIND} ${WRKDIR} -type f \( -name config.libpath -o \ -name config.rpath -o -name configure -o -name libtool.m4 -o \ -name ltconfig -o -name libtool -o -name aclocal.m4 -o \ -name acinclude.m4 \)` ; do \ --------------020204010301000803080705--