NetBSD Problem Report #51826
From www@NetBSD.org Wed Jan 11 09:20:27 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id DFD947A28D
for <gnats-bugs@gnats.NetBSD.org>; Wed, 11 Jan 2017 09:20:27 +0000 (UTC)
Message-Id: <20170111092026.393547A2AF@mollari.NetBSD.org>
Date: Wed, 11 Jan 2017 09:20:26 +0000 (UTC)
From: dhgutteridge@sympatico.ca
Reply-To: dhgutteridge@sympatico.ca
To: gnats-bugs@NetBSD.org
Subject: graphics/ImageMagick make install phase fails on NetBSD/amd64
X-Send-Pr-Version: www-1.0
>Number: 51826
>Category: pkg
>Synopsis: graphics/ImageMagick make install phase fails on NetBSD/amd64
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 11 09:25:01 +0000 2017
>Closed-Date: Tue Jan 17 22:58:21 +0000 2017
>Last-Modified: Wed Jan 18 00:45:01 +0000 2017
>Originator: David H. Gutteridge
>Release: pkgsrc HEAD as of a few hours ago
>Organization:
>Environment:
NetBSD arcus-v3.nonus-porta.net 7.99.40 NetBSD 7.99.40 (GENERIC.201610250000Z) amd64
>Description:
graphics/ImageMagick succeeds during the build phase, but during the
install phase, it fails with the following details:
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Checking for vulnerabilities in ImageMagick-7.0.4.1
===> Installing for ImageMagick-7.0.4.1
=> Unwrapping tools path in delegate paths.
/usr/pkg/bin/gmake install-am
gmake[1]: Entering directory '/home/disciple/pkgsrc/graphics/ImageMagick/work/ImageMagick-7.0.4-1'
gmake[2]: Entering directory '/home/disciple/pkgsrc/graphics/ImageMagick/work/ImageMagick-7.0.4-1'
config/install-sh -c -d '/home/disciple/pkgsrc/graphics/ImageMagick/work/.destdir/usr/pkg/lib'
/bin/sh ./libtool --mode=install /usr/bin/install -c -o disciple -g users MagickCore/libMagickCore-7.Q16HDRI.la MagickWand/libMagickWand-7.Q16HDRI.la Magick++/lib/libMagick++-7.Q16HDRI.la '/home/disciple/pkgsrc/graphics/ImageMagick/work/.destdir/usr/pkg/lib'
libtool: install: /usr/bin/install -c -o disciple -g users MagickCore/.libs/libMagickCore-7.Q16HDRI.so.1.0.0 /home/disciple/pkgsrc/graphics/ImageMagick/work/.destdir/usr/pkg/lib/libMagickCore-7.Q16HDRI.so.1.0.0
libtool: install: (cd /home/disciple/pkgsrc/graphics/ImageMagick/work/.destdir/usr/pkg/lib && { ln -s -f libMagickCore-7.Q16HDRI.so.1.0.0 libMagickCore-7.Q16HDRI.so.1 || { rm -f libMagickCore-7.Q16HDRI.so.1 && ln -s libMagickCore-7.Q16HDRI.so.1.0.0 libMagickCore-7.Q16HDRI.so.1; }; })
libtool: install: (cd /home/disciple/pkgsrc/graphics/ImageMagick/work/.destdir/usr/pkg/lib && { ln -s -f libMagickCore-7.Q16HDRI.so.1.0.0 libMagickCore-7.Q16HDRI.so || { rm -f libMagickCore-7.Q16HDRI.so && ln -s libMagickCore-7.Q16HDRI.so.1.0.0 libMagickCore-7.Q16HDRI.so; }; })
libtool: install: /usr/bin/install -c -o disciple -g users MagickCore/.libs/libMagickCore-7.Q16HDRI.lai /home/disciple/pkgsrc/graphics/ImageMagick/work/.destdir/usr/pkg/lib/libMagickCore-7.Q16HDRI.la
libtool: install: warning: relinking `MagickWand/libMagickWand-7.Q16HDRI.la'
libtool: install: (cd /home/disciple/pkgsrc/graphics/ImageMagick/work/ImageMagick-7.0.4-1; /home/disciple/pkgsrc/graphics/ImageMagick/work/.cwrapper/bin/libtool --silent --tag CC --mode=relink gcc -O2 -Wall -mtune=ivybridge -fexceptions -pthread -no-undefined -Wl,--version-script=./MagickWand/libMagickWand.map 1:0:0 -L/home/disciple/pkgsrc/graphics/ImageMagick/work/.buildlink/lib -L/home/disciple/pkgsrc/graphics/ImageMagick/work/.x11-buildlink/lib -Wl,-rpath,/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/X11R7/lib -o MagickWand/libMagickWand-7.Q16HDRI.la -rpath /usr/pkg/lib MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-animate.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-compare.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-composite.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-conjure.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-convert.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-deprecate.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI
_la-display.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-drawing-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-identify.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-import.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-cli.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-image.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-property.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-mogrify.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-montage.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-operation.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-pixel-iterator.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-pixel-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-script-token.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-stream.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDR
I_la-wandcli.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-wand-view.lo -LMagickCore/.libs MagickCore/libMagickCore-7.Q16HDRI.la -lSM -lICE -lX11 -lm -inst-prefix-dir /home/disciple/pkgsrc/graphics/ImageMagick/work/.destdir)
gcc: error: /usr/pkg/lib/libMagickCore-7.Q16HDRI.so: No such file or directory
libtool: install: error: relink `MagickWand/libMagickWand-7.Q16HDRI.la' with the above command before installing it
Makefile:5343: recipe for target 'install-libLTLIBRARIES' failed
gmake[2]: *** [install-libLTLIBRARIES] Error 1
gmake[2]: Leaving directory '/home/disciple/pkgsrc/graphics/ImageMagick/work/ImageMagick-7.0.4-1'
Makefile:11296: recipe for target 'install-am' failed
gmake[1]: *** [install-am] Error 2
gmake[1]: Leaving directory '/home/disciple/pkgsrc/graphics/ImageMagick/work/ImageMagick-7.0.4-1'
Makefile:11290: recipe for target 'install' failed
gmake: *** [install] Error 2
*** Error code 2
>How-To-Repeat:
Try building the package (in my environment, anyway -- I see it hasn't
failed recently in bulk builds).
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/51826: graphics/ImageMagick make install phase fails on
NetBSD/amd64
Date: Wed, 11 Jan 2017 15:18:46 -0500
I've found that disabling cwrappers is a simple workaround for this
issue. The package then installs successfully.
Dave
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/51826: graphics/ImageMagick make install phase fails on
NetBSD/amd64
Date: Fri, 13 Jan 2017 18:32:52 +0000
On Wed, Jan 11, 2017 at 08:20:01PM +0000, David H. Gutteridge wrote:
> I've found that disabling cwrappers is a simple workaround for this
> issue. The package then installs successfully.
I built ImageMagick successfully a few days ago, but I guess that was
an earlier version. Stupid churn :-/
Can you examine .work.log with and without cwrappers?
Also, the error fragment posted suggests that that the build actually
broke earlier on and then the package's makefiles carried on without
stopping, so it might be helpful to examine earlier in the log.
--
David A. Holland
dholland@netbsd.org
From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/51826: graphics/ImageMagick make install phase fails on
NetBSD/amd64
Date: Sun, 15 Jan 2017 02:38:19 -0500
On Fri, 2017-01-13 at 18:35 +0000, David Holland wrote:
> The following reply was made to PR pkg/51826; it has been noted by
> GNATS.
>
> From: David Holland <dholland-pbugs@netbsd.org>
> To: gnats-bugs@NetBSD.org
> Cc:
> Subject: Re: pkg/51826: graphics/ImageMagick make install phase fails
> on
> NetBSD/amd64
> Date: Fri, 13 Jan 2017 18:32:52 +0000
>
> On Wed, Jan 11, 2017 at 08:20:01PM +0000, David H. Gutteridge wrote:
> > I've found that disabling cwrappers is a simple workaround for
> this
> > issue. The package then installs successfully.
>
> I built ImageMagick successfully a few days ago, but I guess that
> was
> an earlier version. Stupid churn :-/
>
> Can you examine .work.log with and without cwrappers?
>
> Also, the error fragment posted suggests that that the build
> actually
> broke earlier on and then the package's makefiles carried on without
> stopping, so it might be helpful to examine earlier in the log.
When comparing a cwrappers build's .work.log with a non-cwrappers
build's log, I'm not sure exactly what I should be looking for? (I've
generated a diff of these, but it's rather lengthy. I can supply the
files if they're of use, of course.)
What I did notice is that with cwrappers, the install phase tries to
relink using the path /usr/pkg/lib/libMagickCore-7.Q16HDRI.so, rather
than the correct path /home/disciple/pkgsrc/graphics/ImageMagick/work/
.destdir/usr/pkg/lib/libMagickCore-7.Q16HDRI.so. (At the point of
failure, that library does indeed exist in the latter location.)
Dave
From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/51826: graphics/ImageMagick make install phase fails on
NetBSD/amd64
Date: Tue, 17 Jan 2017 15:59:30 -0500
It turns out the cause of this was that my installed version of
libtool-base was too old. I had libtool-base-2.4.2nb6, but to build
this package with cwrappers enabled, a newer version is required,
presumably >= libtool-base-2.4.2nb9, when revision 1.112 "When
relinking with DESTDIR, also look into DESTDIR for the desired object"
was made. With libtool-base-2.4.2nb13 installed, the problem is gone.
The build says "Tool dependency libtool-base>=2.2.6bnb3". This version
requirement needs to be bumped, it seems.
Dave
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 17 Jan 2017 22:58:21 +0000
State-Changed-Why:
Thanks for the analysis. I've bumped the minimum libtool version to 2.4.2nb9 as you mentioned.
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51826 CVS commit: pkgsrc/mk
Date: Tue, 17 Jan 2017 22:57:40 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Tue Jan 17 22:57:40 UTC 2017
Modified Files:
pkgsrc/mk: bsd.pkg.use.mk
pkgsrc/mk/platform: MirBSD.mk
Log Message:
Bump LIBTOOL_REQD, newer version needed for cwrappers.
PR 51826.
To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 pkgsrc/mk/bsd.pkg.use.mk
cvs rdiff -u -r1.12 -r1.13 pkgsrc/mk/platform/MirBSD.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Cc:
Subject: devel/libltdl pkg/51826 fix but perhaps 9 > 13
Date: Wed, 18 Jan 2017 00:42:37 +0000 (UTC)
>Submitter-Id: net
>Originator: David Shao
>Organization:
>Confidential: no
>Synopsis: devel/libltdl pkg/51826 fix but perhaps 9 > 13
>Severity: non-critical
>Priority: low
>Category: pkg
>Class: sw-bug
>Release: current pkgsrc
>Environment: FreeBSD xxxxxx.xxx 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
I have my doubts that in all cases 9 <= 13.
bmake for devel/libltdl now gives:
test -z "" || libltdl/config/install-sh -c -d "/usr/pkgsrc/devel/libtool-base/work/.destdir"
true --help-option=--help-all libtool
test -z "/usr/pkg/man/man1" || libltdl/config/install-sh -c -d "/usr/pkgsrc/devel/libtool-base/work/.destdir/usr/pkg/man/man1"
/usr/bin/install -c -o root -g wheel -m 644 ./doc/libtool.1 ./doc/libtoolize.1 '/usr/pkgsrc/devel/libtool-base/work/.destdir/usr/pkg/man/man1'
/usr/bin/install -c -o root -g wheel -m 755 /usr/pkgsrc/devel/libtool-base/work/libtool-2.4.2/shlibtool /usr/pkgsrc/devel/libtool-base/work/.destdir/usr/pkg/bin/shlibtool
=> Automatic manual page handling
=> Creating binary package /usr/pkgsrc/devel/libtool-base/work/.packages/libtool-base-2.4.2nb13.tgz
===> Building binary package for libtool-base-2.4.2nb13
=> Creating binary package /usr/pkgsrc/packages/All/libtool-base-2.4.2nb13.tgz
===> Installing binary package of libtool-base-2.4.2nb13
pkg_add: package `libtool-base-2.4.2nb13' already recorded as installed
ERROR: [depends.mk] A package matching ``libtool-base>=2.4.2bnb9'' should
ERROR: be installed, but one cannot be found. Perhaps there is a
ERROR: stale work directory for ../../devel/libtool-base?
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/libltdl
>How-To-Repeat:
>Fix:
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.