MinGW x64 build crashes with Clang due to `__builtin_setjmp`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- build-system
Research direction
Start by reading the MinGW x64 build configuration and the selection between builtin setjmp and the existing a6nt-jump.asm implementation. The issue names llvm-ml64 and HAND_CODED_SETJMP_SIZE=32 as the working setup; verify the PB bootstrap can compile cmacros.so with Clang on MinGW x64. Done when that build completes without crashing.
Written by the indexing model from the issue text.
Description
Chez treats __builtin_setjmp/__builtin_longjmp as reliable on MinGW x64, but Clang's Windows x64 lowering saves an incorrect frame-pointer value due to the llvm.frameaddress(0) behavior described in llvm/llvm-project#51055 and llvm/llvm-project#72908. Consequently, the PB bootstrap crashes while compiling cmacros.so.
Using the existing a6nt-jump.asm with llvm-ml64 and defining HAND_CODED_SETJMP_SIZE=32 fixes the build. Chez could select this implementation for Clang/MinGW x64 instead of the builtin path.
- Dominant language
- Scheme
- Stars
- 7.4k
- Forks
- 1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 19
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cisco/ChezScheme
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
cisco/ChezScheme#1110 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
cisco/ChezScheme#1111 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 12/100
cisco/ChezScheme#1101 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
cisco/ChezScheme#1078 · 1 comment ·
Maintainers usually reply within 1 day
-
RFC: solution to clangd not finding "scheme.h"Possibly taken @reginaldalfret claimed this 20 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
cisco/ChezScheme#1073 · 1 comment ·
Maintainers usually reply within 1 day
All issues in cisco/ChezScheme
Similar issues
-
CLI: stale build hint, non-gofmt autocomplete output and a leftover `--revit=<year>` in the docsOpenCommand Line Utility (CLI)
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pyrevitlabs/pyRevit#4217 ·
Maintainers usually reply within 1 day
-
bug code-quality
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tomast1337/Puppeter-PptxGenJS#428 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA-RTX/ShaderMake#29 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
komikku-app/komikku#1983 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day