Gerbil fails to build with --enable-smp #798
Labels
No labels
UX
active development
backlog
blocker
bootstrap
bounty
bug
dependencies
discussion
documentation
duplicate
enhancement
flaky test
help wanted
invalid
javascript
question
release
tendentious
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mighty-gerbils/gerbil#798
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Configuration:
Output from running
makeYeah, bug. And we need to get all the testing we can get with smp.
There's a specific incantation required to get Gambit building with SMP support that requires the
make bootsrapdance. My exact proceedure is:...
I've had this working on Linux ARM and Linux x86_64. I get infinite build times on MacOS ARM and eventual segfaults.
Thank you for the incantation! I will update configure/build to take this into account, fix coming soon.
I don't know what is the problem in MacOS, but be advised that SMP is not stable yet. Crashes are to be expected!
To clarify, I don't think the above incantation is related to the failure, my guess is the C flags aren't be propagated somehow but I haven't dug into it. The bootstrap thing is necessary to not get silent failures (ie.
##current-vm-processor-countwill be 1) for SMP.No idea what's going on with Mac, it's probably something with LLVM/Clang, but I couldn't get it working with GCC either.
I see, can you investigate a bit more? A pr would be wonderful.
If we need to do the bootstrap dance, we should intercept --enable-smp and put a variable in build-env.sh; the build.sh (top level) script can intercept and make a
build.sh gambit-smp(or something similar), This will have to be added to src/build.sh.I won't have time for a few days, but I'm happy to give it a go.
Thank you.
We now always rebootstrap Gambit as part of the build, is this still an issue?
Looks good, even gives your proper SMP behavior:
Config flags I used:
I did a clean build with no pre-existing Gambit install, so full bootstrap success!
It does look like REPL tab completion is broken (this is probably Gambits, not Gerbil though)
Great!
We had to disable the terminal line editor because it causes problem; you can get it back by running with
-:te