Hello Andrey,

> AFAIK, Cygwin provides a mingw cross-compiler, so there's no real
> need to go out of your way.

We need a sysroot for the target system either way, so we're compiling
our toolchains with crosstool-ng. That's how I've built my MinGW (build
host) Linux (build target) toolchains and it's how they've been building
the Cygwin-to-Linux toolchains here for many years.

> If I were you, I'd first removed that hop out of Cygwin.

Yeah, I've taken Cygwin out of the equation entirely, but now they're
trying to force it back in when it's really not called for. Sometimes
feels like the believe is that the compiler magically generates better
code when you're running it in a Cygwin environment or that it must be
doing something worse when it's built for MinGW.

Currently, the hopping between Cygwin and non-Cygwin environment is that
bad because the Makefiles were built as this Cygwin/MinGW Make mixture.
Why? I don't know. Predates my job here by many, many years. Those files
are so monstrous, it's nigh impossible to untangle them. Did I already
mention the jobserver doesn't work properly because of that?

> Also, as a side-note, "unpacking" Cygwin could lead to unexpected and
> hard-to-diagnoze errors due to sudden changes in DLL space layout.

Yup. That's another thing I wouldn't have done. Basically, they want
everyone to use exactly the same Cygwin installation, they always want
to pair the GCC toolchain with the Cygwin version it was compiled for,
and they want to lock the GCC toolchain and Cygwin version for all
versioned products, so that bugfix releases are built with the same
toolchain and Cygwin the original release was built with. This was their
solution for that "problem". Putting it in quotes here since it never
was a real issue, just an imaginary one.

But whatever. I got the new solution kinda somehow working. Keeping with
our tradition, it's another hack upon a hack for no practical reason. As
long as I can move on with the project... ¯\_(ツ)_/¯

Best regards

Oliver

________________________________
LÖWEN ENTERTAINMENT GmbH • Saarlandstraße 240 • 55411 Bingen am Rhein • 
Geschäftsführung: Christian Arras (Vorsitzender), Oliver Bagus, Dr. Daniel 
Henzgen • Vorsitz im Aufsichtsrat: Uwe Christiansen • Amtsgericht Mainz • HRB 
23327 • USt.-IdNr. DE148266135 • WEEE-Reg.-Nr. DE 53361450 • Tel.: +49 6721 407 
0 • E-Mail: [email protected]

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to