GNU bug report logs - #54020
support compile-specific flags

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake; Reported by: Damian Szuberski <szuberskidamian@HIDDEN>; Keywords: confirmed help; dated Wed, 16 Feb 2022 01:42:02 UTC; Maintainer for automake is bug-automake@HIDDEN.
Added tag(s) confirmed and help. Request was from Mike Frysinger <vapier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'support compile-specific flags' from 'Impossible to pass `-no-suppress` to `libtool` via automake files' Request was from Mike Frysinger <vapier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 54020 <at> debbugs.gnu.org:


Received: (at 54020) by debbugs.gnu.org; 23 Feb 2022 07:28:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 23 02:28:22 2022
Received: from localhost ([127.0.0.1]:43674 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nMm4T-00007N-Sz
	for submit <at> debbugs.gnu.org; Wed, 23 Feb 2022 02:28:22 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183]:50386
 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vapier@HIDDEN>) id 1nMm4S-00006q-LY
 for 54020 <at> debbugs.gnu.org; Wed, 23 Feb 2022 02:28:21 -0500
Received: by smtp.gentoo.org (Postfix, from userid 559)
 id EDDEC342EC1; Wed, 23 Feb 2022 07:28:13 +0000 (UTC)
Date: Wed, 23 Feb 2022 02:28:14 -0500
From: Mike Frysinger <vapier@HIDDEN>
To: Karl Berry <karl@HIDDEN>, szuberskidamian@HIDDEN,
 54020 <at> debbugs.gnu.org
Subject: Re: bug#54020: Impossible to pass `-no-suppress` to `libtool` via
 automake files
Message-ID: <YhXiDk1BnGN/G9aA@vapier>
Mail-Followup-To: Karl Berry <karl@HIDDEN>,
 szuberskidamian@HIDDEN, 54020 <at> debbugs.gnu.org
References: <CAJcaKZQ_h9QP8KBjLQkwULQg1yN03O8Xcztyzqf72wYVnGQXJg@HIDDEN>
 <202202172333.21HNX75F016010@HIDDEN>
 <YhXQWGMLASChBkOm@vapier>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="Lpy1Ldn/dBSQQyD8"
Content-Disposition: inline
In-Reply-To: <YhXQWGMLASChBkOm@vapier>
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 54020
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)


--Lpy1Ldn/dBSQQyD8
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

On 23 Feb 2022 01:12, Mike Frysinger wrote:
> my inclination is to introduce two new variables that would be used for libtool
> & non-libtool, and only when compiling.
> * xxx_COMPILE: to provide parity with existing xxx_LINK setting -- override
>   the compiler on a per-program basis
> * xxx_COMPILEFLAGS: appended only to compile calls so it can override all the
>   variables that are shared with other commands

having glanced through the implementation a bit, i don't know that i'll try
to implement this myself, at least any time soon.  this is heavily in the
perl side of things, and i'm not really versed in it.
-mike

--Lpy1Ldn/dBSQQyD8
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIV4g4ACgkQQWM7n+g3
9YFmZBAAt51JgU3S85vTJHhQ/eQrQDwKVtyHZA3b2JvWT0vRi9LvrsGIjSSSUI3G
M2wr8A+nUqTWD2nTOMjB7t0+HgvbZATkBMlYWA4NW2t8ydRDVNpvGbtnCfesjstg
mSV6ViJK28Px3XmjtrrVtfg3Hh0YKyqJdSqk6iZHyg/b/bNbeFd/QnA5vQFz0q5f
7wR/r23wmUcShOwiXIkAJ61bxZyKws74fU10IqW3rraPnbW/orVE/IP61O2U26or
Y1EprlAf86o/3e3emLwjr217vZUOUu8RrwkjjsarfoKTlR0D1Pes8DtQQg3pLN1s
fjt4LxJrYHAQdycUb2r6ByMJSHa9dlau4Q9mjyTl4LBpx2UvLLfkY8icLIw0OEiw
jC6/NPoF+ZEbAguyuKtIAVx5uulJsIO3tF2YI2XZBjPXsYZA33QpwYXCk600Gaua
wAFHHm7H25GPNS45I4SL89L8DrhUvmF56LqdP5XvRFDjOJWcIlsw52/4PYnSItuW
HeOyJwnb6/Up97CXfXCvCwxt2eI07cxZ7OAmfYkLQG4umDkKerWB0sz2onhr+fYS
OCV4CdAp3NeEnr+KR/PsQfpSiOjrfRqwLyzGfu2XqUT4BmtGwC1DvBRqbA2tvR2e
4sFEvrqGl6iEs0w/0Er2rHIGXHZfTPPpLdEKPJoY4Yh+v0GGdEM=
=qQWf
-----END PGP SIGNATURE-----

--Lpy1Ldn/dBSQQyD8--




Information forwarded to bug-automake@HIDDEN:
bug#54020; Package automake. Full text available.

Message received at 54020 <at> debbugs.gnu.org:


Received: (at 54020) by debbugs.gnu.org; 23 Feb 2022 06:12:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 23 01:12:47 2022
Received: from localhost ([127.0.0.1]:43591 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nMktL-0006ar-HK
	for submit <at> debbugs.gnu.org; Wed, 23 Feb 2022 01:12:47 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183]:34260
 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vapier@HIDDEN>) id 1nMktJ-0006ad-TJ
 for 54020 <at> debbugs.gnu.org; Wed, 23 Feb 2022 01:12:46 -0500
Received: by smtp.gentoo.org (Postfix, from userid 559)
 id C5BF3343135; Wed, 23 Feb 2022 06:12:39 +0000 (UTC)
Date: Wed, 23 Feb 2022 01:12:40 -0500
From: Mike Frysinger <vapier@HIDDEN>
To: Karl Berry <karl@HIDDEN>
Subject: Re: bug#54020: Impossible to pass `-no-suppress` to `libtool` via
 automake files
Message-ID: <YhXQWGMLASChBkOm@vapier>
Mail-Followup-To: Karl Berry <karl@HIDDEN>,
 szuberskidamian@HIDDEN, 54020 <at> debbugs.gnu.org
References: <CAJcaKZQ_h9QP8KBjLQkwULQg1yN03O8Xcztyzqf72wYVnGQXJg@HIDDEN>
 <202202172333.21HNX75F016010@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="xZdXEIYkMGTiZy5n"
Content-Disposition: inline
In-Reply-To: <202202172333.21HNX75F016010@HIDDEN>
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 54020
Cc: 54020 <at> debbugs.gnu.org, szuberskidamian@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)


--xZdXEIYkMGTiZy5n
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 17 Feb 2022 16:33, Karl Berry wrote:
> Hi Damian - thanks for the report.
>=20
>     LTCOMPILE =3D $(LIBTOOL) $(AM_V_lt) --tag=3DCC $(AM_LIBTOOLFLAGS) \
>             $(LIBTOOLFLAGS) --mode=3Dcompile $(CC) $(DEFS) \
>             $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
>             $(AM_CFLAGS) $(CFLAGS)
>     ...
>     `libtool` has a command line option, `-no-suppress` ...
>=20
> Well, the immediate answer would apparently be to add yet another
> variable after the --mode=3Dcompile, say LTMODEOPTS for the sake of
> argument (have to think about the name), so the output is
>=20
> LTCOMPILE =3D $(LIBTOOL) $(AM_V_lt) --tag=3DCC $(AM_LIBTOOLFLAGS) \
>         $(LIBTOOLFLAGS) --mode=3Dcompile $(LTMODEOPTS) $(CC) ...

to clarify, Damian isn't saying it has to be between --mode=3Dcompile & $(C=
C).
in fact, pretty sure this doesn't work as libtool expects the argv to be the
arguments right after --mode=3Dcompile.

$ libtool --tag=3DCC --mode=3Dcompile -no-suppress gcc test.c -c -o test.o
Usage: /usr/bin/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-no-suppress'

the right command line is:
$ libtool --tag=3DCC --mode=3Dcompile gcc test.c -c -o test.o -no-suppress

so i think we can reframe the request as: Automake offers no way of specify=
ing
flags that are only used at compile time.  breaking down LTCOMPILE (for C):
* $(LIBTOOL) $(AM_V_lt) --tag=3DCC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mod=
e=3Dcompile:
  doesn't help as comes before $(CC) and we need flags to be after
* $(CC): used for preprocessing & compiling, and linking, and default for
  linking via `CCLD =3D $(CC)`
* $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS): used =
for
  preprocessing (dep generation, etc...) and compiling
* $(AM_CFLAGS) $(CFLAGS): used for preprocessing, compiling, and linking

if we look at the linking phase specifically, it's possible to put libtool
flags into xxx_LDFLAGS.  this is good, and what we already document+recomme=
nd.

my inclination is to introduce two new variables that would be used for lib=
tool
& non-libtool, and only when compiling.
* xxx_COMPILE: to provide parity with existing xxx_LINK setting -- override
  the compiler on a per-program basis
* xxx_COMPILEFLAGS: appended only to compile calls so it can override all t=
he
  variables that are shared with other commands

my only gripe is the lack of parity between other stages from a naming pov,
but i think we just have to swallow this pill.  most flags are based on the
language selection rather than the phase (e.g. CFLAGS is for C language and
is used for preprocessing, compiling, and linking C code).  LDFLAGS is only
for linking -- it's language independent.  if we added xxx_LINKFLAGS, it
would serve the same exact purpose as xxx_LDFLAGS, so doesn't add a whole
lot of value.
-mike

--xZdXEIYkMGTiZy5n
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIV0FgACgkQQWM7n+g3
9YFENhAA0I0bqOchno6I2fD6YBldn5Lrs1MtYR4EZDoB6apOXZZ/2o+AwhVNcAaO
+zjtjPXbSAdxkPVIMUf45kCr0tBn5J6o14z0YR6ZwgRIKmuW299FZrLpiQjx4oc4
TRdzTEIzJOZlUNuuF2YcElTQuf+vPmCiLhLVgM0nSw/QYiOp5J9DnzHi0gTijSPs
P7NYh2amEtwOu4QJFH4PWZf2cwRzTyc5mmfEQORHicOEbSeZMp8XUYgNj1JThceE
uFL5pgD+/knm8/zPjVZ887Aiy0ZennTLm3wixGSqb2I+axoGheX7jN8/VpJbrOP5
03OoPhOtZKlQ432JYvgIixin0InKKihPNnnANRBI0geChCvGv+waXm+PEB5r8sM3
BieuzomJuc6cMeMQuMqXdu6lin1Bg/XbkKfQVc2RaOOEwsNQ2F0LbIxCMmEz7BvQ
f89+naexG1N30PcMctZatFAUh5SPRAjepFsT4N/0vh+njULvBviB7Wpwjahosz44
6pIDLPRtVlLXlY8DQa1nBn0J7iKbCIWgkyAhuESAlX1Jo6UEHmm3nLfvMb4/U02X
7VqojSLaWN3YZhnqCzRrmdtHbV+SqbJ73BA3MDGT4nLSRuCbjlj6bCCjWh4ZW12s
MmL9+R+h28X8TNGWX5x7QtdJokaD8P7HNPE6F5fYs7qNi7NoAqk=
=wzmS
-----END PGP SIGNATURE-----

--xZdXEIYkMGTiZy5n--




Information forwarded to bug-automake@HIDDEN:
bug#54020; Package automake. Full text available.

Message received at 54020 <at> debbugs.gnu.org:


Received: (at 54020) by debbugs.gnu.org; 17 Feb 2022 23:33:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 17 18:33:11 2022
Received: from localhost ([127.0.0.1]:52972 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nKqGs-0005sb-Qw
	for submit <at> debbugs.gnu.org; Thu, 17 Feb 2022 18:33:10 -0500
Received: from freefriends.org ([96.88.95.60]:60410)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <karl@HIDDEN>) id 1nKqGr-0005sT-2j
 for 54020 <at> debbugs.gnu.org; Thu, 17 Feb 2022 18:33:09 -0500
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (freefriends.org [96.88.95.60])
 by freefriends.org (8.14.7/8.14.7) with ESMTP id 21HNX7bi016011
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); 
 Thu, 17 Feb 2022 16:33:08 -0700
Received: (from apache@localhost)
 by freefriends.org (8.14.7/8.14.7/Submit) id 21HNX75F016010;
 Thu, 17 Feb 2022 16:33:07 -0700
Date: Thu, 17 Feb 2022 16:33:07 -0700
Message-Id: <202202172333.21HNX75F016010@HIDDEN>
From: Karl Berry <karl@HIDDEN>
To: szuberskidamian@HIDDEN
Subject: Re: bug#54020: Impossible to pass `-no-suppress` to `libtool` via
 automake files
In-Reply-To: <CAJcaKZQ_h9QP8KBjLQkwULQg1yN03O8Xcztyzqf72wYVnGQXJg@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 54020
Cc: 54020 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Damian - thanks for the report.

    LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
            $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
            $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
            $(AM_CFLAGS) $(CFLAGS)
    ...
    `libtool` has a command line option, `-no-suppress` ...

Well, the immediate answer would apparently be to add yet another
variable after the --mode=compile, say LTMODEOPTS for the sake of
argument (have to think about the name), so the output is

LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
        $(LIBTOOLFLAGS) --mode=compile $(LTMODEOPTS) $(CC) ...

Mike, Jim, wdyt? --thanks, karl.




Information forwarded to bug-automake@HIDDEN:
bug#54020; Package automake. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Feb 2022 01:42:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 15 20:42:01 2022
Received: from localhost ([127.0.0.1]:46984 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nK9KP-0006Ul-JQ
	for submit <at> debbugs.gnu.org; Tue, 15 Feb 2022 20:42:01 -0500
Received: from lists.gnu.org ([209.51.188.17]:33870)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <szuberskidamian@HIDDEN>) id 1nK5uo-0000Bn-TD
 for submit <at> debbugs.gnu.org; Tue, 15 Feb 2022 17:03:19 -0500
Received: from eggs.gnu.org ([209.51.188.92]:43904)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <szuberskidamian@HIDDEN>)
 id 1nK5uo-0004Rh-DY
 for bug-automake@HIDDEN; Tue, 15 Feb 2022 17:03:18 -0500
Received: from [2607:f8b0:4864:20::b33] (port=38632
 helo=mail-yb1-xb33.google.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <szuberskidamian@HIDDEN>)
 id 1nK5um-0005Wt-Lm
 for bug-automake@HIDDEN; Tue, 15 Feb 2022 17:03:18 -0500
Received: by mail-yb1-xb33.google.com with SMTP id y6so305122ybc.5
 for <bug-automake@HIDDEN>; Tue, 15 Feb 2022 14:03:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:from:date:message-id:subject:to;
 bh=90dDqZ10wX9Tgpgu+5Ylkd+/xe/tzAR8zj4YL2CubZE=;
 b=M3HUMxkc0an7jdPTRGaqlGUGO7uSdvUEZA6J5cZuFaze+HTuSsUXunysRcyGfcQJ/g
 71tnCWaKIqqu0AcVaHAYwsOqSclIwRpS76u2+wcn7fskhitpZcPQRrhS9ROd82GJZ2kD
 h0k7wUhpLWICMGnPs5AV4kgaB6CaxSB62Pz/lvHdkw/tt0Q77CkJQge+bGLp2UxDliB1
 +l24xb5R8HPJfXHAbwTEdZptQn9A6Yp78Lbm0xzHXkNg73nTQajO5NjJowCVBKAstGkL
 lFDVyy1JdBK87WYiLqk+JTb+crXT9a+NE7HloS+Mx0P59gQ0FznxrqA9lX94TK+NYrHg
 FTnQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=90dDqZ10wX9Tgpgu+5Ylkd+/xe/tzAR8zj4YL2CubZE=;
 b=HH77490KCxn6w0lQO2uXzKx5P0c4fcM6pZLMqyeFKZEUmQorskOFDMDOGnfjYWUHUX
 yEmMV1oO3s5L3wpb8dGLyG28JszHDrdV99RRShHcdei3EZwxjdxnEDsu1jrwgbVTZ4nS
 y17v5a1fgi8V5DV4kR1xs4WJ3/6Ba8xmiCmiphvAtg86/5QG4sd+B2ZFULqr7+lYNlva
 HR4F6rW+ZFjPbRXZKW6rsH8ucStDMzcQFe8qTJeMHV/O0mWo0jrFxtUHvW/zdN7K5475
 K7u1l3UedHXx0VFH1sJygagKNyrArvfygSgB5R8n293gFGYHI4ROTqZLqBYKsr3dtT5H
 CaZQ==
X-Gm-Message-State: AOAM533HI2rzxUQUvGDGW53J4a7/eLiWthuq6nHhNo0UFf3qIEsetlmA
 DU7awkAgzJ1cwSlGCLFHpGsbVBkWjXGt3asOMEVcZfol0/Q=
X-Google-Smtp-Source: ABdhPJyXx136cYnOTHnXU3Ln2I61oKJGO3/9qerq50vqnSRDOUtePnFMirieSGS+5IQUGaP7wn2LBNLFaa4ouQnEK38=
X-Received: by 2002:a25:ab70:: with SMTP id u103mr938880ybi.765.1644962592996; 
 Tue, 15 Feb 2022 14:03:12 -0800 (PST)
MIME-Version: 1.0
From: Damian Szuberski <szuberskidamian@HIDDEN>
Date: Tue, 15 Feb 2022 23:03:02 +0100
Message-ID: <CAJcaKZQ_h9QP8KBjLQkwULQg1yN03O8Xcztyzqf72wYVnGQXJg@HIDDEN>
Subject: Impossible to pass `-no-suppress` to `libtool` via automake files
To: bug-automake@HIDDEN
Content-Type: multipart/alternative; boundary="00000000000006419505d815b30c"
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b33
 (failed)
Received-SPF: pass client-ip=2607:f8b0:4864:20::b33;
 envelope-from=szuberskidamian@HIDDEN; helo=mail-yb1-xb33.google.com
X-Spam_score_int: -3
X-Spam_score: -0.4
X-Spam_bar: /
X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.904, RCVD_IN_DNSWL_NONE=-0.0001,
 RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 15 Feb 2022 20:41:56 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--00000000000006419505d815b30c
Content-Type: text/plain; charset="UTF-8"

Dear automake developers!

A standard `libtool` invocation line generated by automake looks like:
```
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
        $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
        $(AM_CFLAGS) $(CFLAGS)
```
Sometimes files compiled using the method above make the compiler emit
errors. Those errors are suppressed by default which makes troubleshooting
impossible. `libtool` has a command line option, `-no-suppress` which can
be used to make the compiler verbose. Unfortunately, there is no way to
inject that option since `libtool` demands that it comes after
`--mode=compile`. `AM_LIBTOOLFLAGS` nor `LIBTOOLFLAGS` cannot be used for
that purpose since "it is too early", according to `libtool`'s command line
parser. It is somewhat possible to use `AM_CFLAGS` for that purpose but
then it breaks modes other than `--mode=compile`.

Is there any way to make libtool more verbose?
Thanks in advance!

Software used:
```
autoconf (GNU Autoconf) 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>, <
https://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
automake (GNU automake) 1.16.5
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <
https://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@HIDDEN>
       and Alexandre Duret-Lutz <adl@HIDDEN>.
```

-- 
Damian Szuberski

--00000000000006419505d815b30c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Dear automake developers!<div><br></div><div>A standard `l=
ibtool` invocation line generated by automake looks like:</div><div>```</di=
v><div>LTCOMPILE =3D $(LIBTOOL) $(AM_V_lt) --tag=3DCC $(AM_LIBTOOLFLAGS) \<=
br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 $(LIBTOOLFLAGS) --mode=3Dcompile $(CC) $(DEF=
S) \<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CP=
PFLAGS) $(CPPFLAGS) \<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 $(AM_CFLAGS) $(CFLAGS)=
<br></div><div>```</div><div>Sometimes files compiled using the method abov=
e make the compiler emit errors. Those errors are suppressed by default whi=
ch makes troubleshooting impossible. `libtool` has a command line option, `=
-no-suppress` which can be used to make the compiler verbose. Unfortunately=
, there is no way to inject that option since `libtool` demands that it com=
es after `--mode=3Dcompile`. `AM_LIBTOOLFLAGS` nor `LIBTOOLFLAGS` cannot be=
 used for that purpose since &quot;it is too early&quot;, according to `lib=
tool`&#39;s command line parser. It is somewhat possible to use `AM_CFLAGS`=
 for that purpose but then it breaks modes other than `--mode=3Dcompile`.</=
div><div><br></div><div>Is there any way to make libtool more verbose?</div=
><div>Thanks in advance!</div><div><br></div><div>Software used:</div><div>=
```</div><div>autoconf (GNU Autoconf) 2.71<br>Copyright (C) 2021 Free Softw=
are Foundation, Inc.<br>License GPLv3+/Autoconf: GNU GPL version 3 or later=
<br>&lt;<a href=3D"https://gnu.org/licenses/gpl.html">https://gnu.org/licen=
ses/gpl.html</a>&gt;, &lt;<a href=3D"https://gnu.org/licenses/exceptions.ht=
ml">https://gnu.org/licenses/exceptions.html</a>&gt;<br>This is free softwa=
re: you are free to change and redistribute it.<br>There is NO WARRANTY, to=
 the extent permitted by law.<br><br>Written by David J. MacKenzie and Akim=
 Demaille.<br>automake (GNU automake) 1.16.5<br>Copyright (C) 2021 Free Sof=
tware Foundation, Inc.<br>License GPLv2+: GNU GPL version 2 or later &lt;<a=
 href=3D"https://gnu.org/licenses/gpl-2.0.html">https://gnu.org/licenses/gp=
l-2.0.html</a>&gt;<br>This is free software: you are free to change and red=
istribute it.<br>There is NO WARRANTY, to the extent permitted by law.<br><=
br>Written by Tom Tromey &lt;<a href=3D"mailto:tromey@HIDDEN">tromey@re=
dhat.com</a>&gt;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0and Alexandre Duret-Lutz &lt=
;<a href=3D"mailto:adl@HIDDEN">adl@HIDDEN</a>&gt;.<br><div>```</div><div>=
<br></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=
=3D"gmail_signature">Damian Szuberski</div></div></div>

--00000000000006419505d815b30c--




Acknowledgement sent to Damian Szuberski <szuberskidamian@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#54020; Package automake. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 24 Feb 2022 01:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.