Bug 187274 - math/fftw: 11.0-CURRENT r262690 ia64: ports tree at r347001: /usr/local/lib/gcc46/libgcc_s.so: could not read symbols: File in wrong format
Summary: math/fftw: 11.0-CURRENT r262690 ia64: ports tree at r347001: /usr/local/lib/g...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-05 09:20 UTC by Anton Shterenlikht
Modified: 2014-03-07 13:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Shterenlikht 2014-03-05 09:20:00 UTC
building in this poudriere jail:

# poudriere jails -l
JAILNAME             VERSION              ARCH    METHOD  PATH
ia64-11              11.0-CURRENT r262690 ia64    svn+https /pdr/jails/ia64-11

With the poudriere ports tree at r347001.

Error:

/bin/sh /usr/local/bin/libtool  --tag=CC   --mode=link cc  -O2 -pipe -fno-strict-aliasing -version-info 2:7:0 -Wl,-rpath=/usr/local/lib/gcc46  -L/usr/local/lib/gcc46 -B/usr/local/bin -o libfftw.la -rpath /usr/local/lib fn_1.lo fn_2.lo fn_3.lo fn_4.lo fn_5.lo fn_6.lo fn_7.lo fn_8.lo fn_9.lo fn_10.lo fn_11.lo fn_12.lo fn_13.lo fn_14.lo fn_15.lo fn_16.lo fn_32.lo fn_64.lo ftw_2.lo ftw_3.lo ftw_4.lo ftw_5.lo ftw_6.lo ftw_7.lo ftw_8.lo ftw_9.lo ftw_10.lo ftw_16.lo ftw_32.lo ftw_64.lo fni_1.lo fni_2.lo fni_3.lo fni_4.lo fni_5.lo fni_6.lo fni_7.lo fni_8.lo fni_9.lo fni_10.lo fni_11.lo fni_12.lo fni_13.lo fni_14.lo fni_15.lo fni_16.lo fni_32.lo fni_64.lo ftwi_2.lo ftwi_3.lo ftwi_4.lo ftwi_5.lo ftwi_6.lo ftwi_7.lo ftwi_8.lo ftwi_9.lo ftwi_10.lo ftwi_16.lo ftwi_32.lo ftwi_64.lo timer.lo config.lo planner.lo twiddle.lo executor.lo generic.lo fftwnd.lo malloc.lo wisdom.lo wisdomio.lo putils.lo rader.lo fftwf77.lo  -lm 
libtool: link: cc -shared  -fPIC -DPIC  .libs/fn_1.o .libs/fn_2.o .libs/fn_3.o .libs/fn_4.o .libs/fn_5.o .libs/fn_6.o .libs/fn_7.o .libs/fn_8.o .libs/fn_9.o .libs/fn_10.o .libs/fn_11.o .libs/fn_12.o .libs/fn_13.o .libs/fn_14.o .libs/fn_15.o .libs/fn_16.o .libs/fn_32.o .libs/fn_64.o .libs/ftw_2.o .libs/ftw_3.o .libs/ftw_4.o .libs/ftw_5.o .libs/ftw_6.o .libs/ftw_7.o .libs/ftw_8.o .libs/ftw_9.o .libs/ftw_10.o .libs/ftw_16.o .libs/ftw_32.o .libs/ftw_64.o .libs/fni_1.o .libs/fni_2.o .libs/fni_3.o .libs/fni_4.o .libs/fni_5.o .libs/fni_6.o .libs/fni_7.o .libs/fni_8.o .libs/fni_9.o .libs/fni_10.o .libs/fni_11.o .libs/fni_12.o .libs/fni_13.o .libs/fni_14.o .libs/fni_15.o .libs/fni_16.o .libs/fni_32.o .libs/fni_64.o .libs/ftwi_2.o .libs/ftwi_3.o .libs/ftwi_4.o .libs/ftwi_5.o .libs/ftwi_6.o .libs/ftwi_7.o .libs/ftwi_8.o .libs/ftwi_9.o .libs/ftwi_10.o .libs/ftwi_16.o .libs/ftwi_32.o .libs/ftwi_64.o .libs/timer.o .libs/config.o .libs/planner.o .libs/twiddle.o .libs/executor.o .libs/generic.o .lib
 s/fftwnd.o .libs/malloc.o .libs/wisdom.o .libs/wisdomio.o .libs/putils.o .libs/rader.o .libs/fftwf77.o   -L/usr/local/lib/gcc46 -lm  -O2 -Wl,-rpath=/usr/local/lib/gcc46   -Wl,-soname -Wl,libfftw.so.2 -o .libs/libfftw.so.2
/usr/local/lib/gcc46/libgcc_s.so: could not read symbols: File in wrong format
gmake[3]: *** [libfftw.la] Error 1
gmake[3]: Leaving directory `/wrkdirs/usr/ports/math/fftw/work/fftw-2.1.5/fftw'

Full build log:

http://eis.bris.ac.uk/~mexas/logs/fftw-2.1.5_7.log

Note: this report supersedes:
http://www.freebsd.org/cgi/query-pr.cgi?pr=184992,
which can be now closed.
Comment 1 dfilter service freebsd_committer freebsd_triage 2014-03-05 17:27:35 UTC
Author: tijl
Date: Wed Mar  5 17:27:27 2014
New Revision: 347124
URL: http://svnweb.freebsd.org/changeset/ports/347124
QAT: https://qat.redports.org/buildarchive/r347124/

Log:
  - Add USES=libtool to fix linker problem on FreeBSD/i386 8.x and
    FreeBSD/ia64.
  - Remove patch-configure.in (not needed) and remove USE_AUTOTOOLS.
  - Add OPTIONS_EXCLUDE=DOCS to math/fftw-float slave port.
  - Simplify Makefile a little.
  
  PR:		ports/187274

Deleted:
  head/math/fftw/files/patch-configure.in
Modified:
  head/math/fftw-float/Makefile
  head/math/fftw/Makefile
  head/math/fftw/pkg-plist

Modified: head/math/fftw-float/Makefile
==============================================================================
--- head/math/fftw-float/Makefile	Wed Mar  5 17:16:06 2014	(r347123)
+++ head/math/fftw-float/Makefile	Wed Mar  5 17:27:27 2014	(r347124)
@@ -1,11 +1,10 @@
 # Created by: Michael Johnson <ahze@ahze.net>
 # $FreeBSD$
 
-PORTREVISION=	3
-
 COMMENT=	Fast C routines (Single Percision)
 
 FFTW_FLAVOR=	float
 MASTERDIR=	${.CURDIR}/../../math/fftw
+OPTIONS_EXCLUDE=DOCS
 
 .include "${MASTERDIR}/Makefile"

Modified: head/math/fftw/Makefile
==============================================================================
--- head/math/fftw/Makefile	Wed Mar  5 17:16:06 2014	(r347123)
+++ head/math/fftw/Makefile	Wed Mar  5 17:27:27 2014	(r347124)
@@ -3,13 +3,12 @@
 
 PORTNAME=	fftw
 PORTVERSION=	2.1.5
-PORTREVISION?=	7
+PORTREVISION?=	8
 CATEGORIES=	math
 MASTER_SITES=	ftp://ftp.fftw.org/pub/fftw/ 		\
 		ftp://ftp.fftw.org/pub/fftw/old/ 	\
 		ftp://theory.lcs.mit.edu/pub/fftw/	\
 		ftp://pm.cse.rmit.edu.au/pub/dsp/fftw/
-PKGNAMESUFFIX=	${FFTW_PKGNAMESUFFIX}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT?=	Fast C routines to compute the Discrete Fourier Transform
@@ -20,16 +19,14 @@ OPTIONS_DEFINE=	DOCS
 
 # current flavors: default, float
 FFTW_FLAVOR?=	default
-FFTW_SUFIX=
 
-USES=		fortran gmake
-USE_AUTOTOOLS=	aclocal automake autoconf libtool
-ACLOCAL_ARGS=	-I ${LOCALBASE}/share/aclocal
-AUTOMAKE_ARGS=	--add-missing
-CONFIGURE_ENV=	MAKEINFO="makeinfo --no-split"
+GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-shared
+USES=		fortran gmake libtool
 USE_LDCONFIG=	yes
 
+BROKEN_sparc64=	does not build
+
 PLIST_SUB=	FFTW_SUFX="${FFTW_SUFX}"
 
 PORTSCOUT=	limit:^2\.
@@ -37,11 +34,10 @@ PORTSCOUT=	limit:^2\.
 .if ${FFTW_FLAVOR}=="float"
 CONFIGURE_ARGS+=	--enable-float --enable-type-prefix
 FFTW_SUFX=		s
-FFTW_PKGNAMESUFFIX=	-float
-PLIST_SUB+=	DEF="@comment "
+PKGNAMESUFFIX=		-float
 .else
+FFTW_SUFIX=
 INFO=			fftw
-PLIST_SUB+=	DEF=""
 .endif
 
 .include <bsd.port.options.mk>
@@ -50,12 +46,8 @@ PLIST_SUB+=	DEF=""
 CONFIGURE_ARGS+=	--enable-i386-hacks
 .endif
 
-.if ${ARCH} == "sparc64"
-BROKEN=		does not build
-.endif
-
 post-patch:
-	@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc | |' ${WRKSRC}/Makefile.am
+	@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc | |' ${WRKSRC}/Makefile.in
 
 post-build:
 .if ${FFTW_FLAVOR}=="default"

Modified: head/math/fftw/pkg-plist
==============================================================================
--- head/math/fftw/pkg-plist	Wed Mar  5 17:16:06 2014	(r347123)
+++ head/math/fftw/pkg-plist	Wed Mar  5 17:27:27 2014	(r347124)
@@ -4,9 +4,11 @@ lib/lib%%FFTW_SUFX%%fftw.a
 lib/lib%%FFTW_SUFX%%fftw.la
 lib/lib%%FFTW_SUFX%%fftw.so
 lib/lib%%FFTW_SUFX%%fftw.so.2
+lib/lib%%FFTW_SUFX%%fftw.so.2.0.7
 lib/lib%%FFTW_SUFX%%rfftw.a
 lib/lib%%FFTW_SUFX%%rfftw.la
 lib/lib%%FFTW_SUFX%%rfftw.so
 lib/lib%%FFTW_SUFX%%rfftw.so.2
-%%DEF%%%%PORTDOCS%%%%DOCSDIR%%/fftw.ps
-%%DEF%%%%PORTDOCS%%@dirrm %%DOCSDIR%%
+lib/lib%%FFTW_SUFX%%rfftw.so.2.0.7
+%%PORTDOCS%%%%DOCSDIR%%/fftw.ps
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
_______________________________________________
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"
Comment 2 Tijl Coosemans freebsd_committer freebsd_triage 2014-03-05 17:27:54 UTC
State Changed
From-To: open->closed

It should work now in r347124. 


Comment 3 Tijl Coosemans freebsd_committer freebsd_triage 2014-03-05 17:27:54 UTC
Responsible Changed
From-To: freebsd-ports-bugs->tijl

It should work now in r347124.
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-03-07 13:41:02 UTC
Author: tijl
Date: Fri Mar  7 13:40:55 2014
New Revision: 347381
URL: http://svnweb.freebsd.org/changeset/ports/347381
QAT: https://qat.redports.org/buildarchive/r347381/

Log:
  Patch makefiles so libtool passes -B${LOCALBASE}/bin to the compiler in
  link mode.  Normally USES=libtool deals with this, but the libtool script
  in this port is too old to patch easily.
  
  PR:		ports/187274

Modified:
  head/math/fftw/Makefile

Modified: head/math/fftw/Makefile
==============================================================================
--- head/math/fftw/Makefile	Fri Mar  7 12:53:40 2014	(r347380)
+++ head/math/fftw/Makefile	Fri Mar  7 13:40:55 2014	(r347381)
@@ -48,6 +48,9 @@ CONFIGURE_ARGS+=	--enable-i386-hacks
 
 post-patch:
 	@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc | |' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e '/^LINK/s|$$(CCLD)|& -Wc,-B${LOCALBASE}/bin|' \
+		${WRKSRC}/fftw/Makefile.in ${WRKSRC}/mpi/Makefile.in \
+		${WRKSRC}/rfftw/Makefile.in ${WRKSRC}/threads/Makefile.in
 
 post-build:
 .if ${FFTW_FLAVOR}=="default"
_______________________________________________
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"