NetBSD Problem Report #28661
From kristerw@netbsd.org Tue Dec 14 23:12:46 2004
Return-Path: <kristerw@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 1139)
id BD1F8251EBE; Tue, 14 Dec 2004 23:12:46 +0000 (UTC)
Message-Id: <20041214231246.BD1F8251EBE@narn.netbsd.org>
Date: Tue, 14 Dec 2004 23:12:46 +0000 (UTC)
From: kristerw@netbsd.org
Reply-To: kristerw@netbsd.org
To: gnats-bugs@netbsd.org
Subject: libtool problem with fortran
X-Send-Pr-Version: 3.95
>Number: 28661
>Category: pkg
>Synopsis: libtool problem with fortran
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: jlam
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 14 23:13:00 +0000 2004
>Closed-Date: Sat Dec 18 21:16:18 +0000 2004
>Last-Modified: Sat Dec 18 21:16:18 +0000 2004
>Originator: Krister Walfridsson
>Release: NetBSD 1.6.2, pkgsrc as of 2004-12-15
>Organization:
>Environment:
System: NetBSD pc2 1.6.2 NetBSD 1.6.2 (GENERIC) #0: Tue Feb 10 21:53:10 UTC 2004
Architecture: i386
Machine: i386
>Description:
parallel/pvm3 fails during installation with the error:
ls: /usr/pkg/pvm3/bin/NETBSDI386/fgexample: No such file or directory
ls: /usr/pkg/pvm3/bin/NETBSDI386/fmaster1: No such file or directory
ls: /usr/pkg/pvm3/bin/NETBSDI386/frsg: No such file or directory
ls: /usr/pkg/pvm3/bin/NETBSDI386/fslave1: No such file or directory
ls: /usr/pkg/pvm3/bin/NETBSDI386/fspmd: No such file or directory
ls: /usr/pkg/pvm3/bin/NETBSDI386/gs: No such file or directory
ls: /usr/pkg/pvm3/bin/NETBSDI386/hitc: No such file or directory
ls: /usr/pkg/pvm3/bin/NETBSDI386/hitc_slave: No such file or directory
which in turn is due to the libtool being unable to infer tagged
configuration:
libtool --mode=link g77 -Wl,-R/usr/pkg/pvm3/lib/NETBSDI386 -O -o fgexample ../../examples/gexample.f -L../../lib/NETBSDI386 -lfpvm3 -lgpvm3 -lpvm3
*** [buildlink3] Warning: libtool replaced -lfpvm3 with /usr/local/tmp/f/pkgsrc/parallel/pvm3/work/pvm3/libfpvm/NETBSDI386/libfpvm3.la
*** [buildlink3] Warning: libtool replaced -lgpvm3 with /usr/local/tmp/f/pkgsrc/parallel/pvm3/work/pvm3/pvmgs/NETBSDI386/libgpvm3.la
*** [buildlink3] Warning: libtool replaced -lpvm3 with /usr/local/tmp/f/pkgsrc/parallel/pvm3/work/pvm3/src/NETBSDI386/libpvm3.la
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
*** Error code 1
This used to work, and I believe that the error was introduced by
a change to pkgsrc/mk. The reason for this belief is the following:
1. Nuke all packages by e.g. rm -rf /usr/pkg /var/db/pkg
2. Check out pkgsrc from 2004-11-20 and build parallel/pvm3.
Note that this works.
3. Update pkgsrc/mk to today's source, and build parallel/pvm3 again.
Note that this does work too.
4. pkg_delete libtool-base and build parallel/pvm3 again. This will
rebuild libtool-base too, but now with newer pkgsrc/mk.
Note that parallel/pvm3 fails.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->tv
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Tue, 14 Dec 2004 23:20:26 +0000
Responsible-Changed-Why:
Assigned to maintainer, tv.
Responsible-Changed-From-To: tv->garbled
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Tue, 14 Dec 2004 23:22:36 +0000
Responsible-Changed-Why:
Assigned to maintainer of parallel/pvm3, Tim Rightnour.
Responsible-Changed-From-To: garbled->jlam
Responsible-Changed-By: jlam@netbsd.org
Responsible-Changed-When: Fri, 17 Dec 2004 04:40:41 +0000
Responsible-Changed-Why:
I'll handle the hot potato.
From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28661 CVS commit: pkgsrc
Date: Fri, 17 Dec 2004 16:24:23 +0000 (UTC)
Module Name: pkgsrc
Committed By: jlam
Date: Fri Dec 17 16:24:23 UTC 2004
Modified Files:
pkgsrc/devel/libtool: distinfo
pkgsrc/devel/libtool-base: Makefile
pkgsrc/devel/libtool/patches: patch-ac
pkgsrc/mk: bsd.pkg.mk
Log Message:
Rewrite func_infer_tag in the libtool script so that it's easier to
specify (hardcoded) compilers from which we can infer the correct tag
(CC, CXX, F77). Use the following patterns to match compilers to
tags:
CC: *cc *xlc
CXX: *++ *CC
F77: *77 *fort
Bump the PKGREVISION to 1.5.10nb7 since we now infer the F77 tag from
likely Fortran compilers. Also require at least this version of
libtool when building packages that set USE_FORTRAN. This should fix
PR pkg/28661.
To generate a diff of this commit:
cvs rdiff -r1.51 -r1.52 pkgsrc/devel/libtool/distinfo
cvs rdiff -r1.47 -r1.48 pkgsrc/devel/libtool-base/Makefile
cvs rdiff -r1.13 -r1.14 pkgsrc/devel/libtool/patches/patch-ac
cvs rdiff -r1.1546 -r1.1547 pkgsrc/mk/bsd.pkg.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: jlam@netbsd.org
State-Changed-When: Fri, 17 Dec 2004 16:37:10 +0000
State-Changed-Why:
Please update your pkgsrc/mk and devel/libtool and let me know if it
fixes the problem that you're seeing with not correctly inferring the
fortran tag. Thanks!
State-Changed-From-To: feedback->closed
State-Changed-By: kristerw@netbsd.org
State-Changed-When: Sat, 18 Dec 2004 21:16:18 +0000
State-Changed-Why:
It works now. Thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.