bug#78682: Building libltdl with MSVC fails

Kirill Makurin <[email protected]> Thu, 5 Jun 2025 18:03:28 +0000
Newsgroups gmane.comp.gnu.libtool.bugs
Message-ID <DM4PR84MB137350E8E7489E657EC7C6CEB16FA@DM4PR84MB1373.NAMPRD84.PROD.OUTLOOK.COM>
--_000_DM4PR84MB137350E8E7489E657EC7C6CEB16FADM4PR84MB1373NAMP_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I can confirm that this was the issue.

I had to explicitly set both F77 and FC to "no". Even if there is no Fortra=
n compiler found, configure sets them to "ifc".

I was thinking to suggest both libtool and automake to add options to expli=
citly disable checks and test for specific languages. Obviously, this needs=
 a separate discussion.

- Kirill Makurin
________________________________
From: [email protected] <bug-libtool-bo=
[email protected]> on behalf of Kirill Makurin <maidd=
[email protected]>
Sent: Friday, June 6, 2025 2:21 AM
To: [email protected] <[email protected]>
Cc: [email protected] <[email protected]>
Subject: bug#78682: Building libltdl with MSVC fails

If I look at output from configure...

When configure checks for Fortran compiler, it finds mingw's gfortran:

```
checking for gfortran... gfortran
```

And then:

```
checking whether the gfortran linker (link.exe -nologo) supports shared lib=
raries... yes
checking dynamic linker characteristics... Win32 ld.exe
```

Could this be the cause?

- Kirill Makurin

________________________________
From: Ileana Dumitrescu
Sent: Friday, June 6, 2025 1:21 AM
To: [email protected]
Cc: Kirill Makurin
Subject: Re: bug#78682: Building libltdl with MSVC fails

On 05/06/2025 19:07, Kirill Makurin wrote:
> I will submit a separate bug report for issue with clang-cl.

Thank you!

> I'm setting NM=3D"dumpbin.exe -nologo -symbols", this works for all
> packages I tried to build so far.

Okay, if you do try it, I would be interested to see if the behaviour
changes.

> I'm building multiple GNU packages with a script which invokes
> `configure` -> `make` -> `make check` -> `make install DESTDIR=3D...` for
> each package.
>
> I attached gziped output from both `configure` and `make`. (building
> from development branch)

Thank you for the logs! I will look through them and see if I can
reproduce your issue.

--
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354


--_000_DM4PR84MB137350E8E7489E657EC7C6CEB16FADM4PR84MB1373NAMP_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
I can confirm that this was the issue.</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
I had to explicitly set both F77 and FC to &quot;no&quot;. Even if there is=
 no Fortran compiler found, configure sets them to &quot;ifc&quot;.</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
I was thinking to suggest both libtool and automake to add options to expli=
citly disable checks and test for specific languages. Obviously, this needs=
 a separate discussion.</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
- Kirill Makurin</div>
<div id=3D"appendonsend"></div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> bug-libtool-bounces+m=
[email protected] &lt;bug-libtool-bounces+maiddaisuki=3Doutl=
[email protected]&gt; on behalf of Kirill Makurin &lt;[email protected]=
&gt;<br>
<b>Sent:</b> Friday, June 6, 2025 2:21 AM<br>
<b>To:</b> [email protected] &lt;[email protected]&gt=
;<br>
<b>Cc:</b> [email protected] &lt;[email protected]&gt;<br>
<b>Subject:</b> bug#78682: Building libltdl with MSVC fails</font>
<div>&nbsp;</div>
</div>
<style type=3D"text/css" style=3D"display:none">
<!--
p
	{margin-top:0;
	margin-bottom:0}
-->
</style>
<div dir=3D"ltr">
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
If I look at output from configure...</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
<br>
</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
When configure checks for Fortran compiler, it finds mingw's gfortran:</div=
>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
<br>
</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
```</div>
<div class=3D"x_elementToProof" style=3D"line-height:19px; font-family:Apto=
s,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font=
-size:12pt; color:rgb(0,0,0)">
checking for gfortran... gfortran</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
```</div>
<div id=3D"x_appendonsend"></div>
<div class=3D"x_elementToProof"><br>
</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
And then:</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
<br>
</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
```</div>
<div class=3D"x_elementToProof" style=3D"line-height:19px; font-family:Apto=
s,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font=
-size:12pt; color:rgb(0,0,0)">
checking whether the gfortran linker (link.exe&nbsp;-nologo) supports share=
d libraries... yes</div>
<div class=3D"x_elementToProof" style=3D"line-height:19px; font-family:Apto=
s,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font=
-size:12pt; color:rgb(0,0,0)">
checking dynamic linker characteristics... Win32 ld.exe</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
```</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
<br>
</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
Could this be the cause?</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
<br>
</div>
<div class=3D"x_elementToProof" style=3D"font-family:Aptos,Aptos_EmbeddedFo=
nt,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:=
rgb(0,0,0)">
- Kirill Makurin</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
<br>
</div>
<hr style=3D"display:inline-block; width:98%">
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
<b>From:</b>&nbsp;Ileana Dumitrescu<br>
<b>Sent:</b>&nbsp;Friday, June 6, 2025 1:21 AM<br>
<b>To:</b>&nbsp;[email protected]<br>
<b>Cc:</b>&nbsp;Kirill Makurin<br>
<b>Subject:</b>&nbsp;Re: bug#78682: Building libltdl with MSVC fails </div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-size:11pt">On 05/06/2025 19:07, Kirill Makurin wrote:<br=
>
&gt; I will submit a separate bug report for issue with clang-cl.<br>
<br>
Thank you!<br>
<br>
&gt; I'm setting NM=3D&quot;dumpbin.exe -nologo -symbols&quot;, this works =
for all<br>
&gt; packages I tried to build so far.<br>
<br>
Okay, if you do try it, I would be interested to see if the behaviour<br>
changes.<br>
<br>
&gt; I'm building multiple GNU packages with a script which invokes<br>
&gt; `configure` -&gt; `make` -&gt; `make check` -&gt; `make install DESTDI=
R=3D...` for<br>
&gt; each package.<br>
&gt;<br>
&gt; I attached gziped output from both `configure` and `make`. (building<b=
r>
&gt; from development branch)<br>
<br>
Thank you for the logs! I will look through them and see if I can<br>
reproduce your issue.<br>
<br>
--<br>
Ileana Dumitrescu<br>
<br>
GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354<br>
<br>
</div>
</div>
</body>
</html>

--_000_DM4PR84MB137350E8E7489E657EC7C6CEB16FADM4PR84MB1373NAMP_--