Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature/newgc] Build fails #4

Open
kamoii opened this issue Dec 6, 2021 · 7 comments
Open

[feature/newgc] Build fails #4

kamoii opened this issue Dec 6, 2021 · 7 comments

Comments

@kamoii
Copy link

kamoii commented Dec 6, 2021

Thanks for working on feature/newgc!
When I try to build it to test it, it fails. You may be already aware of this, but I'm creating an issue just in case.

configure flags:

./configure --prefix=$HOME/emacs.newgc.$(date +'%Y%m%d') --with-modules

compile error log:

Loading /home/.../emacs/lisp/files.el (source)...
Loading /home/.../emacs/lisp/emacs-lisp/macroexp.el (source)...
Loading /home/.../emacs/lisp/emacs-lisp/pcase.el (source)...
Loading /home/.../emacs/lisp/emacs-lisp/macroexp.el (source)...
Loading /home/.../emacs/lisp/cus-face.el (source)...
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Loading /home/.../emacs/lisp/faces.el (source)...
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)

... same error for about 5000lines

Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (void-variable x301)
Eager macro-expansion failure: (invalid-function pcase--expand)
Eager macro-expansion failure: (invalid-function pcase--expand)
Invalid function: pcase--expand
make[1]: *** [Makefile:908: bootstrap-emacs.pdmp] Error 255
make[1]: Leaving directory '/home/.../emacs/src'
make: *** [Makefile:456: src] Error 2
@fejfighter
Copy link
Owner

Thanks for the interest.

Yeah I'm definitely aware, I have green treating GitHub as a backup service when I make some progress, which is unfortunately very slow at times.

What is interesting is that is a very different trace to what I have ever seen.

I've not noticed linker issues during development, and certainly none of the other messages inside the lisp compilation phase.

Is that the full configure command line? What is your environment? I'm on fedora 35 with whatever the latest gcc is there.

If there's nothing obvious. I might ask you to take a trace using rr though I'm not sure of the portability there.

@kamoii
Copy link
Author

kamoii commented Dec 6, 2021

@fejfighter
Thanks for your reply.

Is that the full configure command line?

Yes.

What is your environment? I'm on fedora 35 with whatever the latest gcc is there.

Arch Linux with gcc version 11.1.0

$ uname -rvo
5.15.5-arch1-1 #1 SMP PREEMPT Thu, 25 Nov 2021 22:09:33 +0000 GNU/Linux
$ gcc --version
gcc (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If there's nothing obvious. I might ask you to take a trace using rr though I'm not sure of the portability there.

I'll look into it when I have time.

@fejfighter
Copy link
Owner

Ok thanks,

I have a newer gcc (11.2.1) and an older kernel (5.14.16) so nothing that different .

I had a quick look this morning

rr record ./src/temacs --batch  -l loadup --temacs=pbootstrap 
rr pack 

then archive the directory it lists and that should be enough for me to inspect.

No rush to do so, as I am not sure when I will get much time to dig into it

@fejfighter
Copy link
Owner

@kamoii I think I have managed to get the same result, I have some temp work-arounds in place to always complete a major gc for now as minor-gc does not scan correctly, and results in the error you are getting

@kamoii
Copy link
Author

kamoii commented Dec 10, 2021

@fejfighter
Thanks for that!

I've been doing a bit of research on my end with gdb, recording with rr today.
I'm new to low-level debugging, but I'll report back if I find anything.

image

@fejfighter
Copy link
Owner

fejfighter commented Dec 10, 2021 via email

@kamoii
Copy link
Author

kamoii commented Dec 10, 2021

@fejfighter Thank you very much! I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants