* bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin
@ 2024-12-11 22:50 Ken Brown
2024-12-11 23:47 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Ken Brown @ 2024-12-11 22:50 UTC (permalink / raw)
To: 74805
I've made a first attempt to port mps to Cygwin. If anyone else is
interested in seeing this or helping, you can find my work at
https://github.com/kbrow1i/mps-cygwin
This is a fork of the mps git repo with two commits on top.
With the current attempt, I can build the scratch/igc branch, but there
are many test failures. For example, when I run the process-tests, I
get 19 failures and 8 skipped tests. But on the master branch I get no
failures and only 3 skipped.
This probably means that my current attempt to port mps is no good, and
I have to go back to the drawing board. Before I do that, however, I'd
like to check and see if test failures on scratch/igc are to be
expected. Are people testing other platforms seeing this too?
Thanks.
Ken
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin
2024-12-11 22:50 bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin Ken Brown
@ 2024-12-11 23:47 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-11 23:57 ` Andrea Corallo
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-12-11 23:47 UTC (permalink / raw)
To: Ken Brown; +Cc: 74805
"Ken Brown" <kbrown@cornell.edu> writes:
> I've made a first attempt to port mps to Cygwin. If anyone else is
> interested in seeing this or helping, you can find my work at
>
> https://github.com/kbrow1i/mps-cygwin
>
> This is a fork of the mps git repo with two commits on top.
>
> With the current attempt, I can build the scratch/igc branch, but there
> are many test failures. For example, when I run the process-tests, I
But the Emacs binary "works", to some extent? Is there anything in the
process-tests.log file which hints at what kind of problem it might be?
Does it work interactively, or crash right away?
> get 19 failures and 8 skipped tests. But on the master branch I get no
> failures and only 3 skipped.
That sounds like a "minor" GC problem; a word size mismatch or alignment
problem would probably lead to a hard crash, so it's more likely to be a
problem in scanning the stack.
I'm a bit confused about the role of prmccyi6.c; it's included in the
cyi6gc.mk fragment, but it's not included by mps.c directly. How are you
building MPS?
I see that you have defined (in prmccyi6.c)
Addr MutatorContextSP(MutatorContext context)
{
AVERT(MutatorContext, context);
return (Addr)context->ucontext->uc_mcontext.rsp; /* .sp */
}
using the MutatorContextStruct from prmcix.h, which uses an ucontext.
However, you also include prmcw3.c, which uses a different definition of
MutatorContextStruct. I don't think those two are compatible, so it's
possible that's the problem, depending on how you build mps.
> This probably means that my current attempt to port mps is no good, and
> I have to go back to the drawing board. Before I do that, however, I'd
> like to check and see if test failures on scratch/igc are to be
> expected. Are people testing other platforms seeing this too?
I see a few test failures on Windows, but nothing as catastrophic as
what you describe.
Do you have a usable debugger/gdb on your platform? That would
be one approach to diagnosing crashes (if the problem is indeed that
Emacs crashes). Another approach would be to run the test suite
included in MPS.
Pip
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin
2024-12-11 22:50 bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin Ken Brown
2024-12-11 23:47 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-12-11 23:57 ` Andrea Corallo
2024-12-12 6:09 ` Eli Zaretskii
2024-12-12 11:05 ` Stefan Kangas
3 siblings, 0 replies; 9+ messages in thread
From: Andrea Corallo @ 2024-12-11 23:57 UTC (permalink / raw)
To: Ken Brown; +Cc: 74805
Ken Brown <kbrown@cornell.edu> writes:
> I've made a first attempt to port mps to Cygwin. If anyone else is
> interested in seeing this or helping, you can find my work at
>
> https://github.com/kbrow1i/mps-cygwin
>
> This is a fork of the mps git repo with two commits on top.
>
> With the current attempt, I can build the scratch/igc branch, but there
> are many test failures. For example, when I run the process-tests, I
> get 19 failures and 8 skipped tests. But on the master branch I get no
> failures and only 3 skipped.
Is the testsuite supposed to be clean on igc on supported platforms?
Last time I asked Gerd explained me it was still not the case but maybe
things evolved.
Andrea
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin
2024-12-11 22:50 bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin Ken Brown
2024-12-11 23:47 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-11 23:57 ` Andrea Corallo
@ 2024-12-12 6:09 ` Eli Zaretskii
2024-12-12 11:05 ` Stefan Kangas
3 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2024-12-12 6:09 UTC (permalink / raw)
To: Ken Brown; +Cc: 74805
> Date: Wed, 11 Dec 2024 17:50:40 -0500
> From: Ken Brown <kbrown@cornell.edu>
>
> I've made a first attempt to port mps to Cygwin. If anyone else is
> interested in seeing this or helping, you can find my work at
>
> https://github.com/kbrow1i/mps-cygwin
>
> This is a fork of the mps git repo with two commits on top.
Thanks, good news! Could you please post the patches here, so that
they are recorded in our bug tracker?
> With the current attempt, I can build the scratch/igc branch, but there
> are many test failures. For example, when I run the process-tests, I
> get 19 failures and 8 skipped tests. But on the master branch I get no
> failures and only 3 skipped.
>
> This probably means that my current attempt to port mps is no good, and
> I have to go back to the drawing board.
Did you run the MPS test suite, and if you did, were there any
failures? My suggestion is to make sure the MPS test suite passes
cleanly, including in several consecutive runs (when I ported MPS to
32-bit MinGW, I had intermittent failures which only happened once in
several runs, until I fixed that).
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin
2024-12-11 22:50 bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin Ken Brown
` (2 preceding siblings ...)
2024-12-12 6:09 ` Eli Zaretskii
@ 2024-12-12 11:05 ` Stefan Kangas
2024-12-12 11:30 ` Eli Zaretskii
3 siblings, 1 reply; 9+ messages in thread
From: Stefan Kangas @ 2024-12-12 11:05 UTC (permalink / raw)
To: Ken Brown, 74805
Ken Brown <kbrown@cornell.edu> writes:
> I've made a first attempt to port mps to Cygwin. If anyone else is
> interested in seeing this or helping, you can find my work at
>
> https://github.com/kbrow1i/mps-cygwin
>
> This is a fork of the mps git repo with two commits on top.
>
> With the current attempt, I can build the scratch/igc branch, but there
> are many test failures. For example, when I run the process-tests, I
> get 19 failures and 8 skipped tests. But on the master branch I get no
> failures and only 3 skipped.
>
> This probably means that my current attempt to port mps is no good, and
> I have to go back to the drawing board. Before I do that, however, I'd
> like to check and see if test failures on scratch/igc are to be
> expected. Are people testing other platforms seeing this too?
Do we expect upstream to be amenable to eventually taking these patches?
I see that they officially only support "Windows Vista or later, on
IA-32 and x86-64, using Microsoft Visual C/C++".
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin
2024-12-12 11:05 ` Stefan Kangas
@ 2024-12-12 11:30 ` Eli Zaretskii
2024-12-12 12:06 ` Gerd Möllmann
0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2024-12-12 11:30 UTC (permalink / raw)
To: Stefan Kangas, Gerd Möllmann; +Cc: 74805, kbrown
> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Thu, 12 Dec 2024 03:05:58 -0800
>
> Ken Brown <kbrown@cornell.edu> writes:
>
> > I've made a first attempt to port mps to Cygwin. If anyone else is
> > interested in seeing this or helping, you can find my work at
> >
> > https://github.com/kbrow1i/mps-cygwin
> >
> > This is a fork of the mps git repo with two commits on top.
> >
> > With the current attempt, I can build the scratch/igc branch, but there
> > are many test failures. For example, when I run the process-tests, I
> > get 19 failures and 8 skipped tests. But on the master branch I get no
> > failures and only 3 skipped.
> >
> > This probably means that my current attempt to port mps is no good, and
> > I have to go back to the drawing board. Before I do that, however, I'd
> > like to check and see if test failures on scratch/igc are to be
> > expected. Are people testing other platforms seeing this too?
>
> Do we expect upstream to be amenable to eventually taking these patches?
I don't think we've asked them. Maybe Gerd knows?
> I see that they officially only support "Windows Vista or later, on
> IA-32 and x86-64, using Microsoft Visual C/C++".
Yes.
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin
2024-12-12 11:30 ` Eli Zaretskii
@ 2024-12-12 12:06 ` Gerd Möllmann
2024-12-12 14:38 ` Eli Zaretskii
0 siblings, 1 reply; 9+ messages in thread
From: Gerd Möllmann @ 2024-12-12 12:06 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 74805, Stefan Kangas, kbrown
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Stefan Kangas <stefankangas@gmail.com>
>> Date: Thu, 12 Dec 2024 03:05:58 -0800
>>
>> Ken Brown <kbrown@cornell.edu> writes:
>>
>> > I've made a first attempt to port mps to Cygwin. If anyone else is
>> > interested in seeing this or helping, you can find my work at
>> >
>> > https://github.com/kbrow1i/mps-cygwin
>> >
>> > This is a fork of the mps git repo with two commits on top.
>> >
>> > With the current attempt, I can build the scratch/igc branch, but there
>> > are many test failures. For example, when I run the process-tests, I
>> > get 19 failures and 8 skipped tests. But on the master branch I get no
>> > failures and only 3 skipped.
>> >
>> > This probably means that my current attempt to port mps is no good, and
>> > I have to go back to the drawing board. Before I do that, however, I'd
>> > like to check and see if test failures on scratch/igc are to be
>> > expected. Are people testing other platforms seeing this too?
>>
>> Do we expect upstream to be amenable to eventually taking these patches?
>
> I don't think we've asked them. Maybe Gerd knows?
I haven't done anything like that. I've only submitted some minor Github
issue when I was playing with MPS, and I've sent them a mail to let them
know what's going on when I made what I had public here on emacs-devel.
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin
2024-12-12 12:06 ` Gerd Möllmann
@ 2024-12-12 14:38 ` Eli Zaretskii
2024-12-12 15:01 ` Gerd Möllmann
0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2024-12-12 14:38 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: 74805, stefankangas, kbrown
> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: Stefan Kangas <stefankangas@gmail.com>, kbrown@cornell.edu,
> 74805@debbugs.gnu.org
> Date: Thu, 12 Dec 2024 13:06:41 +0100
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Stefan Kangas <stefankangas@gmail.com>
> >> Date: Thu, 12 Dec 2024 03:05:58 -0800
> >>
> >> Ken Brown <kbrown@cornell.edu> writes:
> >>
> >> > I've made a first attempt to port mps to Cygwin. If anyone else is
> >> > interested in seeing this or helping, you can find my work at
> >> >
> >> > https://github.com/kbrow1i/mps-cygwin
> >> >
> >> > This is a fork of the mps git repo with two commits on top.
> >> >
> >> > With the current attempt, I can build the scratch/igc branch, but there
> >> > are many test failures. For example, when I run the process-tests, I
> >> > get 19 failures and 8 skipped tests. But on the master branch I get no
> >> > failures and only 3 skipped.
> >> >
> >> > This probably means that my current attempt to port mps is no good, and
> >> > I have to go back to the drawing board. Before I do that, however, I'd
> >> > like to check and see if test failures on scratch/igc are to be
> >> > expected. Are people testing other platforms seeing this too?
> >>
> >> Do we expect upstream to be amenable to eventually taking these patches?
> >
> > I don't think we've asked them. Maybe Gerd knows?
>
> I haven't done anything like that. I've only submitted some minor Github
> issue when I was playing with MPS, and I've sent them a mail to let them
> know what's going on when I made what I had public here on emacs-devel.
So maybe we should ask them. It could be a factor in our decision
whether we want to fork MPS and maintain our own fork.
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin
2024-12-12 14:38 ` Eli Zaretskii
@ 2024-12-12 15:01 ` Gerd Möllmann
0 siblings, 0 replies; 9+ messages in thread
From: Gerd Möllmann @ 2024-12-12 15:01 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 74805, stefankangas, kbrown
Eli Zaretskii <eliz@gnu.org> writes:
>> I haven't done anything like that. I've only submitted some minor Github
>> issue when I was playing with MPS, and I've sent them a mail to let them
>> know what's going on when I made what I had public here on emacs-devel.
>
> So maybe we should ask them. It could be a factor in our decision
> whether we want to fork MPS and maintain our own fork.
Yes, I think something "official" from the maintainers would be a good
thing. The email I used back then to inform them of what's
going on was info@ravenbrook.com. Couldn't find something better.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-12-12 15:01 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 22:50 bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin Ken Brown
2024-12-11 23:47 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-11 23:57 ` Andrea Corallo
2024-12-12 6:09 ` Eli Zaretskii
2024-12-12 11:05 ` Stefan Kangas
2024-12-12 11:30 ` Eli Zaretskii
2024-12-12 12:06 ` Gerd Möllmann
2024-12-12 14:38 ` Eli Zaretskii
2024-12-12 15:01 ` Gerd Möllmann
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).