-
Notifications
You must be signed in to change notification settings - Fork 32
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
heisenbug build error in Updating 'mktables.lst'
#113
Comments
the last error could actually be circumvented here, if there's an option not to install manpages, which i delete later in my build script anyway. |
after like 10 runs in gdb, i get a backtrace for the above:
the second pointer is clearly invalid |
miniperl config does not depend on the target (i486), only on the build host. Try building natively with perl-cross, it should crash the same way. If that works, try configuring with perl's own Configure, and compare config.sh values between perl-cross and mainline perl. Building mainline perl natively might be a good idea as well, just to make sure the crashes are due to perl-cross and not something else. I would be looking for a bad value in config.sh first, then for compiler flags (optimization etc) and toolchain related issues in general. |
thanks, i will try that. do you also have some input on the first issue (mentioned in title, first pasted block)? |
No idea. The process in question is most likely miniperl, so it might be one symptom of miniperl being badly broken. I cannot readily think of any way for miniperl to cause that, but assuming the rest of the system works and make doesn't fail randomly building other things, I'd guess it's probably miniperl. |
i figured out what happened, there were some implicit declarations (e.g. of memchr) without adding manually -D_GNU_SOURCE to HOSTCFLAGS, which caused warnings about pointer-to-int truncation, and subsequently a segfault, that happened before the error mentioned in title. with that added, everything seems to work well. thanks for your help! |
hi, while compiling for i486-linux-musl on x86_64-linux-musl host, 3 times out of 5 builds with make -j16 on an AMD ryzen, i get the following error:
1 build out of the 5 succeeded, the 5th one crashed during make install as follows:
strace showing the error happening here:
i'm currently trying to find the full command line to run gdb on it (hopefully miniperl_top was built with -g ...)
EDIT: unfortunately, it doesn't crash under gdb :(
The text was updated successfully, but these errors were encountered: