[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24871: incorrect "cannot install XXX to a directory not ending in YY
From: |
Luke Shumaker |
Subject: |
bug#24871: incorrect "cannot install XXX to a directory not ending in YYY" |
Date: |
Thu, 03 Nov 2016 20:47:25 -0400 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
I believe I've found a bug in libtool:
$ libtool --tag=CC --mode=install install -D libfail.la
/tmp/lib/libfail.la
libtool: error: error: cannot install 'libfail.la' to a directory not
ending in /tmp/lib/
When the install directory clearly does end in the required string.
I belive that this is a duplicate of a previous message that was never resolved:
http://lists.gnu.org/archive/html/bug-libtool/2009-12/msg00001.html
But, unlike the previous message, I have a minimal test case!
# build the first library
echo > pass.c
libtool --tag=CC --mode=compile cc -c -o pass.lo pass.c
libtool --tag=CC --mode=link cc -o libpass.la -rpath /tmp/lib/
pass.lo
# build a second library (that will fail to install)
echo > fail.c
libtool --tag=CC --mode=compile cc -c -o fail.lo fail.c
libtool --tag=CC --mode=link cc -o libfail.la -rpath /tmp/lib/
fail.lo libpass.la
# try to install them
libtool --tag=CC --mode=install install -D libpass.la
/tmp/lib/libpass.la
libtool --tag=CC --mode=install install -D libfail.la
/tmp/lib/libfail.la
libpass will install fine, but libfail will fail to install, with the
error message I posted at the top.
I am using libtool 2.4.5 on an x86_64 GNU/Linux box (Parabola
GNU/Linux-libre; similar to Arch Linux):
$ pacman -Q libtool
libtool 2.4.6-6
$ libtool --version
libtool (GNU libtool) 2.4.6
Written by Gordon Matzigkeit, 1996
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
The error occurs both with the system `libtool`, and
`./configure`-generated libtool.
I have not tried using libtool build from git.
--
Happy hacking,
~ Luke Shumaker
- bug#24871: incorrect "cannot install XXX to a directory not ending in YYY",
Luke Shumaker <=