-
Notifications
You must be signed in to change notification settings - Fork 304
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
Fix mingw build #283
Fix mingw build #283
Conversation
@pablodelara should I add mingw CI? (Adding macos-14 was easy as I used macos-13 template, but...) |
13272ef
to
aac0917
Compare
@pablodelara added mingw CI. previously there were no Windows CI, so good? |
@pablodelara could you merge this? |
Could you rebase on top of latest "master" branch? So only your commit show up. |
3ee7e40
to
4c82e7c
Compare
@pablodelara rebased. |
Thanks @cielavenir. Looks like there are some errors in the test log, could you take a look at them? Thanks! |
@pablodelara Now I need to discuss one thing. https://github.com/intel/isa-l/blob/master/make.inc#L203
Running this code on mingw is incorrect. However, although isa-l can be built on mingw, saying that mingw is unsupported only due to this line is quite wasteful (もったいない) for me. How this can be improved? If I should make a separate issue, please tell so. |
Could you add a new commit commenting out that line to see if that solves all issues? Thanks! |
@pablodelara could you check current workflow result again? |
I did and there were some errors that were not actually flagged by the Github runner job, like this one: This was another issue that has been fixed already, but actually we should improve the check for exit codes in CI (I left a comment). |
- name: Build | ||
shell: bash | ||
run: | | ||
make -j $(nproc) -f Makefile.unx programs/igzip tests SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add "|| exit /b 1" at the end of these command lines? The same way it is done in the current ci.yml on the windows build (run_tests_windows)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @cielavenir, did you try adding this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pablodelara with shell: bash
, intermediate error will halt the entire script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for looking into this, @cielavenir, Much appreciated!
Signed-off-by: Taiju Yamada <[email protected]>
Signed-off-by: Taiju Yamada <[email protected]>
Signed-off-by: Taiju Yamada <[email protected]>
Signed-off-by: Taiju Yamada <[email protected]>
7bfcc24
to
dead3ed
Compare
@pablodelara actually what I need instead is to force bash (msys) done |
This is merged now, thanks for the work! |
make -f Makefile.unx programs/igzip arch=mingw host_cpu=x86_64
fails without b886279 .make -f Makefile.unx programs/igzip arch=mingw host_cpu=base_aliases CC=i686-w64-mingw32-gcc
fails, which is fixed by 13272ef .