public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* DJGPP cross compiler crashes.
@ 2019-04-18 14:11 Carlo B.
  2019-04-18 21:19 ` Hans-Bernhard Bröker
  0 siblings, 1 reply; 4+ messages in thread
From: Carlo B. @ 2019-04-18 14:11 UTC (permalink / raw)
  To: cygwin

Hello everyone,
I would like to signal that the DJGPP cross compiler, included into
the available packages, crashes as soon as you try to compile
something with it.
To reproduce the problem, just create a simple source file with just
this line for simplicity:

int main() { return 0; }

and after calling:

i586-pc-msdosdjgpp-gcc c.c -o c.exe

you will get:

collect2: fatal error: ld terminated with signal 11 [Segmentation
fault], core dumped
compilation terminated.

I bypassed the problem by recompiling DJGPP cross compiler myself with
this utility:

https://github.com/andrewwutw/build-djgpp

however, I'm signaling the problem in case somebody would like to fix
the trouble with a working package.

Sincerely.

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

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

* Re: DJGPP cross compiler crashes.
  2019-04-18 14:11 DJGPP cross compiler crashes Carlo B.
@ 2019-04-18 21:19 ` Hans-Bernhard Bröker
  2019-04-18 23:41   ` Carlo B.
  0 siblings, 1 reply; 4+ messages in thread
From: Hans-Bernhard Bröker @ 2019-04-18 21:19 UTC (permalink / raw)
  To: cygwin

Am 18.04.2019 um 16:11 schrieb Carlo B.:

> I would like to signal that the DJGPP cross compiler, included into
> the available packages, crashes as soon as you try to compile
> something with it.

Doesn't, here.  It just works.


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

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

* Re: DJGPP cross compiler crashes.
  2019-04-18 21:19 ` Hans-Bernhard Bröker
@ 2019-04-18 23:41   ` Carlo B.
  2019-04-19 14:52     ` Hans-Bernhard Bröker
  0 siblings, 1 reply; 4+ messages in thread
From: Carlo B. @ 2019-04-18 23:41 UTC (permalink / raw)
  To: cygwin

Hello,
well, I tried both versions of CYGWIN, 32 bit and 64 bit, even on different PCs.
I also tried to install different versions, 5.4.0 and 5.3.0 of djgpp-gcc.
I used Windows 7 64bit Home Premium and Windows 7 64 bit Professional.
Always the same result.
I have no idea how you can run it without errors, please note that
i586-pc-msdosdjgpp-gcc works fine until it does not link.

Sincerely.

Il giorno gio 18 apr 2019 alle ore 23:19 Hans-Bernhard Bröker
<HBBroeker@t-online.de> ha scritto:
>
> Am 18.04.2019 um 16:11 schrieb Carlo B.:
>
> > I would like to signal that the DJGPP cross compiler, included into
> > the available packages, crashes as soon as you try to compile
> > something with it.
>
> Doesn't, here.  It just works.
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

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

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

* Re: DJGPP cross compiler crashes.
  2019-04-18 23:41   ` Carlo B.
@ 2019-04-19 14:52     ` Hans-Bernhard Bröker
  0 siblings, 0 replies; 4+ messages in thread
From: Hans-Bernhard Bröker @ 2019-04-19 14:52 UTC (permalink / raw)
  To: cygwin

[A side note, first: this is a traditional mailing list, i.e. the policy
is snipping and bottom-replying...]


Am 19.04.2019 um 01:41 schrieb Carlo B.:

> I have no idea how you can run it without errors, please note that
> i586-pc-msdosdjgpp-gcc works fine until it does not link.

Please note that this quite probably means that it's not the compiler
package itself that's causing you grief, but rather djgpp-binutils.  Or
it could be the runtime base package.

So: did you run cygcheck -c on your djgpp packages?  Check if getting
them from a different cygwin mirror changes anything?

Have you tried adding options to the gcc command line to see what it's
actually doing in some more detail, like '-v' or '-Wl,-v'?

I checked on Win10 Home, originally just 64-bit.  I've had these
packages installed for years, and they haven't changed since, so there's
not really any good reason to assume they should suddenly be broken this
week.  And at least from what I'm looking at, they aren't.

Just for making extra sure, I just added DJGPP to the Cygwin-32
installation on the same machine, and again, it just worked without a hitch.



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

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

end of thread, other threads:[~2019-04-19 14:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-18 14:11 DJGPP cross compiler crashes Carlo B.
2019-04-18 21:19 ` Hans-Bernhard Bröker
2019-04-18 23:41   ` Carlo B.
2019-04-19 14:52     ` Hans-Bernhard Bröker

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).