Package: libtool
Version: 2.4.6-2
Severity: normal
Dear Maintainer,
After upgrading to stretch from jessie I see new warnings when
building Subversion from source. These take the form
ar: `u' modifier ignored since `D' is the default (see `U')
when linking static libraries.
A reduced test case:
$ cat foo.c
int f(void) { return 1; }
$ libtool --mode=compile --silent gcc -c -static foo.c
$ libtool --mode=link --silent gcc -o libfoo.la foo.lo -static
ar: `u' modifier ignored since `D' is the default (see `U')
The underlying cause is that Debian now configures binutils with
--enable-deterministic-archives as part of the reproducible builds
project:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774429
and that changes the default behaviour of the 'ar' binary to be
incompatible with the default behaviour of libtool. It is possible
to get rid of the warnings from the Subversion build by explicitly
specifying the 'ar' flags when configuring the Subversion build:
AR_FLAGS="cr" ./configure ...
as this causes the generated libtool file to contain:
AR_FLAGS="cr"
instead of:
AR_FLAGS="cru"
but this should not be necessary; by default Debian's libtool should
be compatible with the Debian's binutils.
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64
(x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libtool depends on:
ii autotools-dev 20161112.1
ii clang-3.8 [c-compiler] 1:3.8.1-23
ii cpp 4:6.3.0-4
ii file 1:5.30-1
ii gcc [c-compiler] 4:6.3.0-4
ii gcc-6 [c-compiler] 6.3.0-18
ii libc6-dev [libc-dev] 2.24-10
Versions of packages libtool recommends:
ii libltdl-dev 2.4.6-2
Versions of packages libtool suggests:
ii autoconf 2.69-10
ii automake [automaken] 1:1.15-6
pn gcj-jdk <none>
pn gfortran | fortran95-compiler <none>
pn libtool-doc <none>
-- no debconf information