FreeBSD 10.0-CURRENT/AMD64 (CLANG): lang/gcc46 fails to build

Dimitry Andric dim at FreeBSD.org
Wed Dec 7 08:32:25 UTC 2011


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).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ports-fbsd10-wrkdir-1.diff
Type: text/x-diff
Size: 764 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20111207/0e0aedeb/ports-fbsd10-wrkdir-1.bin


More information about the freebsd-questions mailing list