Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Dec 2011 09:32:27 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        Current FreeBSD <freebsd-current@freebsd.org>, freebsd-questions@freebsd.org
Subject:   Re: FreeBSD 10.0-CURRENT/AMD64 (CLANG): lang/gcc46 fails to build
Message-ID:  <4EDF249B.8030104@FreeBSD.org>
In-Reply-To: <4EDEF1FF.5020307@zedat.fu-berlin.de>
References:  <4EDEF1FF.5020307@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EDF249B.8030104>