-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: MacOS build #7040
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
base: master
Are you sure you want to change the base?
fix: MacOS build #7040
Conversation
76ef2bc
to
12fddc3
Compare
12fddc3
to
cb550bb
Compare
Looking at the Linux CI log, it looks like ch or chakracore is crashing when being asked to regen the bytecode on Linux. The python regen script writes a prologue to the file then calls ch with certain parameters to produce the bytecode - the line where the "error" is being found is the line where the prologue ends and the generated material starts. Nothing is being generated hence the mismatch. This is the first test that runs so it could be that it's not a problem specific to bytecode regen but that either the ch or chakracore build is broken and doesn't run at all. Are you able to test offline? I have no Linux setup at the moment, so cannot easily test (would need to make a vm) Ideally would try running offline with a debugger attached and find where ch or chakracore is crashing (or at least why it's closing with no output) |
Interestingly I would expect the ChakraCore/tools/regenByteCode.py Lines 138 to 142 in 22f1619
|
So it turns out that the ByteCode gen fails because ./ch cannot read the input file. The filename is set by ChakraCore/bin/ch/ChakraRtInterface.cpp Line 266 in 22f1619
called by ChakraCore/bin/ch/ChakraRtInterface.cpp Line 241 in 22f1619
called by Lines 45 to 49 in 22f1619
called by ChakraCore/bin/ChakraCore/TestHooks.cpp Lines 148 to 157 in 22f1619
but ./ch does not export |
That error display has been unreliable in the past - ideally should fix it... |
Seems like very strange breakage for simply changing the cmake version - does the export somehow depend on a deprecated cmake feature? I can't remember if that logic is something I've ever looked at. |
c55d3a7
to
b5a7b0a
Compare
CMake 3.4 introduced |
Set `EMBED_ICU` flag
Nice to see the tests passing. Did we actually need to increase the CMake minimum version? I would assume that if you run with the newer version (which you're going to be doing on newer macOS) it won't care that you report an earlier minimum version? |
Finally 🥳
Yes. CMake applies different policies based on the specified min-version. The pipeline for the last PR failed with the following message:
Ubuntu 25.04 reports the following warning
|
Issues
invalid CFI advance_loc expression
Changes
EMBED_ICU
to pin libicu for nowLOCAL_LABEL
definitionhttps://gitlab.winehq.org/wine/wine/-/merge_requests/4547
ChakraCore/pal/inc/unixasmmacros.inc
Lines 8 to 16 in 22f1619
Fixes #7031