public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Can't compile mintty-3.5.0
@ 2021-04-26 12:00 Lemures Lemniscati
  2021-04-26 12:06 ` Eliot Moss
  0 siblings, 1 reply; 6+ messages in thread
From: Lemures Lemniscati @ 2021-04-26 12:00 UTC (permalink / raw)
  To: cygwin

Hi!

I tried to compile mintty-3.5.0,
but failed with the message:

windres -c 65001 --preprocessor 'gcc -E -xc -DRC_INVOKED -MMD -MP -DTARGET=x86_64-pc-cygwin -DNDEBUG' res.rc ../bin/cygwin64/res.o
/bin/sh: gcc -E -xc -DRC_INVOKED -MMD -MP -DTARGET=x86_64-pc-cygwin -DNDEBUG: command not found
windres: preprocessing failed.


====
How to reproduce

With source from https://github.com/mintty/mintty at tag: 3.5.0,
running

    make

failed at the point above.
.
With mintty-3.5.0-1.cygport,
running

    cygport mintty-3.5.0-1.cygport all

failed at the same point.


====
I've installed these packages as described in a file 'INSTALL'.
What is still necessary for successful build ?

----
$ uname -svrmo; cygcheck -c gcc-core make
CYGWIN_NT-10.0 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin
Cygwin Package Information
Package              Version        Status
gcc-core             10.2.0-1       OK
make                 4.3-1          OK
----


Regards,

Lem

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't compile mintty-3.5.0
  2021-04-26 12:00 Can't compile mintty-3.5.0 Lemures Lemniscati
@ 2021-04-26 12:06 ` Eliot Moss
  2021-04-26 12:14   ` Thomas Wolff
  2021-04-26 13:35   ` Lemures Lemniscati
  0 siblings, 2 replies; 6+ messages in thread
From: Eliot Moss @ 2021-04-26 12:06 UTC (permalink / raw)
  To: Lemures Lemniscati, cygwin

On 4/26/2021 8:00 AM, Lemures Lemniscati via Cygwin wrote:
> Hi!
> 
> I tried to compile mintty-3.5.0,
> but failed with the message:
> 
> windres -c 65001 --preprocessor 'gcc -E -xc -DRC_INVOKED -MMD -MP -DTARGET=x86_64-pc-cygwin -DNDEBUG' res.rc ../bin/cygwin64/res.o
> /bin/sh: gcc -E -xc -DRC_INVOKED -MMD -MP -DTARGET=x86_64-pc-cygwin -DNDEBUG: command not found
> windres: preprocessing failed.
> 
> 
> ====
> How to reproduce
> 
> With source from https://github.com/mintty/mintty at tag: 3.5.0,
> running
> 
>      make
> 
> failed at the point above.
> .
> With mintty-3.5.0-1.cygport,
> running
> 
>      cygport mintty-3.5.0-1.cygport all
> 
> failed at the same point.
> 
> 
> ====
> I've installed these packages as described in a file 'INSTALL'.
> What is still necessary for successful build ?
> 
> ----
> $ uname -svrmo; cygcheck -c gcc-core make
> CYGWIN_NT-10.0 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin
> Cygwin Package Information
> Package              Version        Status
> gcc-core             10.2.0-1       OK
> make                 4.3-1          OK
> ----

windres should be in the binutils package.

EM

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't compile mintty-3.5.0
  2021-04-26 12:06 ` Eliot Moss
@ 2021-04-26 12:14   ` Thomas Wolff
  2021-04-29  4:46     ` Brian Inglis
  2021-04-26 13:35   ` Lemures Lemniscati
  1 sibling, 1 reply; 6+ messages in thread
From: Thomas Wolff @ 2021-04-26 12:14 UTC (permalink / raw)
  To: cygwin


Am 26.04.2021 um 14:06 schrieb Eliot Moss:
> On 4/26/2021 8:00 AM, Lemures Lemniscati via Cygwin wrote:
>> Hi!
>>
>> I tried to compile mintty-3.5.0,
>> but failed with the message:
>>
>> windres -c 65001 --preprocessor 'gcc -E -xc -DRC_INVOKED -MMD -MP 
>> -DTARGET=x86_64-pc-cygwin -DNDEBUG' res.rc ../bin/cygwin64/res.o
>> /bin/sh: gcc -E -xc -DRC_INVOKED -MMD -MP -DTARGET=x86_64-pc-cygwin 
>> -DNDEBUG: command not found
>> windres: preprocessing failed.
This is due to a bug in windres. The binutils 2.36 version is broken,
see https://sourceware.org/bugzilla/show_bug.cgi?id=27594
A workaround is available but I'd prefer to let them fix their bug.
For now, please downgrade binutils to 2.35 and maybe make a copy of its 
windres tool into your path.
Thomas

>>
>>
>> ====
>> How to reproduce
>>
>> With source from https://github.com/mintty/mintty at tag: 3.5.0,
>> running
>>
>>      make
>>
>> failed at the point above.
>> .
>> With mintty-3.5.0-1.cygport,
>> running
>>
>>      cygport mintty-3.5.0-1.cygport all
>>
>> failed at the same point.
>>
>>
>> ====
>> I've installed these packages as described in a file 'INSTALL'.
>> What is still necessary for successful build ?
>>
>> ----
>> $ uname -svrmo; cygcheck -c gcc-core make
>> CYGWIN_NT-10.0 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin
>> Cygwin Package Information
>> Package              Version        Status
>> gcc-core             10.2.0-1       OK
>> make                 4.3-1          OK
>> ----
>
> windres should be in the binutils package.
>
> EM
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't compile mintty-3.5.0
  2021-04-26 12:06 ` Eliot Moss
  2021-04-26 12:14   ` Thomas Wolff
@ 2021-04-26 13:35   ` Lemures Lemniscati
  1 sibling, 0 replies; 6+ messages in thread
From: Lemures Lemniscati @ 2021-04-26 13:35 UTC (permalink / raw)
  To: cygwin

On Mon, 26 Apr 2021 08:06:22 -0400, Eliot Moss
> On 4/26/2021 8:00 AM, Lemures Lemniscati via Cygwin wrote:
> > Hi!
> >
> > I tried to compile mintty-3.5.0,
> > but failed with the message:
> >
> > windres -c 65001 --preprocessor 'gcc -E -xc -DRC_INVOKED -MMD -MP -DTARGET=x86_64-pc-cygwin -DNDEBUG' res.rc ../bin/cygwin64/res.o
> > /bin/sh: gcc -E -xc -DRC_INVOKED -MMD -MP -DTARGET=x86_64-pc-cygwin -DNDEBUG: command not found
> > windres: preprocessing failed.
> >
> >
> > ====
> > How to reproduce
> >
> > With source from https://github.com/mintty/mintty at tag: 3.5.0,
> > running
> >
> >      make
> >
> > failed at the point above.
> > .
> > With mintty-3.5.0-1.cygport,
> > running
> >
> >      cygport mintty-3.5.0-1.cygport all
> >
> > failed at the same point.
> >
> >
> > ====
> > I've installed these packages as described in a file 'INSTALL'.
> > What is still necessary for successful build ?
> >
> windres should be in the binutils package.
> 
Thank you.

But, I've installed binutils also.

----
$ uname -svrmo; cygcheck -c gcc-core make binutils
CYGWIN_NT-10.0 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin
Cygwin Package Information
Package              Version        Status
binutils             2.36.1-2       OK
gcc-core             10.2.0-1       OK
make                 4.3-1          OK
----


I noticed that 'sh' (called from 'windres') tried to excecute a file named
'gcc -E -xc -DRC_INVOKED -MMD -MP -DTARGET=x86_64-pc-cygwin -DNDEBUG',
and failed.

By downgrading binutils to 2.35.2-1, it works successfully.
So it maybe an issue of windres (binutils), rather than mintty.


Regards,

Lem

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't compile mintty-3.5.0
  2021-04-26 12:14   ` Thomas Wolff
@ 2021-04-29  4:46     ` Brian Inglis
  2021-04-29 16:46       ` Achim Gratz
  0 siblings, 1 reply; 6+ messages in thread
From: Brian Inglis @ 2021-04-29  4:46 UTC (permalink / raw)
  To: cygwin

On 2021-04-26 06:14, Thomas Wolff wrote:
> Am 26.04.2021 um 14:06 schrieb Eliot Moss:
>> On 4/26/2021 8:00 AM, Lemures Lemniscati via Cygwin wrote:
>>> I tried to compile mintty-3.5.0,
>>> but failed with the message:
>>> windres -c 65001 --preprocessor 'gcc -E -xc -DRC_INVOKED -MMD -MP 
>>> -DTARGET=x86_64-pc-cygwin -DNDEBUG' res.rc ../bin/cygwin64/res.o
>>> /bin/sh: gcc -E -xc -DRC_INVOKED -MMD -MP -DTARGET=x86_64-pc-cygwin -DNDEBUG: 
>>> command not found
>>> windres: preprocessing failed.

>> windres should be in the binutils package.
> This is due to a bug in windres. The binutils 2.36 version is broken,
> see https://sourceware.org/bugzilla/show_bug.cgi?id=27594
> A workaround is available but I'd prefer to let them fix their bug.
> For now, please downgrade binutils to 2.35 and maybe make a copy of its windres 
> tool into your path.

Suggest Cygwin binutils windres be updated to revert the patch like Msys2:

https://github.com/msys2/MSYS2-packages/pull/2384

as nothing appears to be happening with the issue in binutils; or else the 
downstreams need to use options as implemented rather than as per examples.
I'd expect a fix to the doc example rather than the code, as the developers may 
be going in a new direction, possibly to keep up with Windows updates.

It also appears that the quot() function should have been used rather than 
asprintf, as it takes account of build environment quoting rules, although it 
would be better if it could find out about and take account of the *runtime* 
shell environment quoting rules.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't compile mintty-3.5.0
  2021-04-29  4:46     ` Brian Inglis
@ 2021-04-29 16:46       ` Achim Gratz
  0 siblings, 0 replies; 6+ messages in thread
From: Achim Gratz @ 2021-04-29 16:46 UTC (permalink / raw)
  To: cygwin

Brian Inglis writes:
> Suggest Cygwin binutils windres be updated to revert the patch like Msys2:
>
> https://github.com/msys2/MSYS2-packages/pull/2384
>
> as nothing appears to be happening with the issue in binutils; or else
> the downstreams need to use options as implemented rather than as per
> examples.

I don't particularly like that idea.  Clearly both versions are buggy,
just in different ways.  The original code would require an explanation
of how to quote arguments and it's quite clear that the over 10 year old
addition of --preprocessor-arg was intended to get around this very
thorny problem.  The latest change is in line with that earlier change
and just missed the documentation update.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-29 16:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 12:00 Can't compile mintty-3.5.0 Lemures Lemniscati
2021-04-26 12:06 ` Eliot Moss
2021-04-26 12:14   ` Thomas Wolff
2021-04-29  4:46     ` Brian Inglis
2021-04-29 16:46       ` Achim Gratz
2021-04-26 13:35   ` Lemures Lemniscati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).