For PowerPC 32-bit (yes, I'm building on 64-bit, but in a 32-bit jail), the base ld segfaults when linking www/qt4-webkit. This can be fixed by using ld from devel/binutils. Fix: Add devel/binutils as build dependency. How-To-Repeat: Build www/qt4-webkit on ppc32 or 32-bit jail on ppc64.
Responsible Changed From-To: freebsd-ports-bugs->kde Over to maintainer (via the GNATS Auto Assign Tool)
State Changed From-To: open->closed Committed. Thanks!
Author: avilla Date: Wed Jan 9 14:07:28 2013 New Revision: 310146 URL: http://svnweb.freebsd.org/changeset/ports/310146 Log: - Add dependency on devel/binutils' ld(1) to fix build on PowerPC. PR: 173042 Submitted by: Justin Hibbits <jrh29@po.cwru.edu> Modified: head/www/qt4-webkit/Makefile (contents, props changed) Modified: head/www/qt4-webkit/Makefile ============================================================================== --- head/www/qt4-webkit/Makefile Wed Jan 9 13:53:56 2013 (r310145) +++ head/www/qt4-webkit/Makefile Wed Jan 9 14:07:28 2013 (r310146) @@ -1,9 +1,5 @@ -# New ports collection makefile for: qt4-webkit -# Date created: Mon May 12 17:18:19 CEST 2008 -# Whom: danny@ricin.com -# +# Created by: danny@ricin.com # $FreeBSD$ -# PORTNAME= webkit DISTVERSION= ${QT4_VERSION} @@ -48,6 +44,14 @@ CONFIGURE_ARGS+= -I../../../../include/Q EXTRA_PATCHES= ${.CURDIR}/../../devel/qt4/files/patch-configure +.include <bsd.port.pre.mk> + +# Base ld(1) segfaults on PowerPC: +# http://bugs.freebsd.org/173042 +.if ${ARCH} == "powerpc" +BUILD_DEPENDS+= ${LOCALBASE}/bin/ld:${PORTSDIR}/devel/binutils +.endif + pre-configure: ${MKDIR} ${WRKSRC}/mkspecs ${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/bin/qmake @@ -77,4 +81,4 @@ post-configure: ${WRKSRC}/lib/pkgconfig/QtWebKit.pc \ ${WRKSRC}/lib/libQtWebKit.la -.include <bsd.port.mk> +.include <bsd.port.post.mk> _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
This still fails, because the linker is run through g++, not ld directly. Can gcc be told to use a specific linker for this, or is it better to simply make it USE_GCC=4.6+? I don't know if this affects any other platform but powerpc and powerpc64. - Justin