-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
qbe: update to 1.2. #49016
qbe: update to 1.2. #49016
Conversation
Partial duplicate of #48784 |
Why did the CI check fail? Lint failed because there is no comment next to |
Cross compiling failed because it used the wrong compiler. |
OK, I think the problem is this in the Makefile:
|
Cross compiling to riscv64 and aarch64 works and added comment for |
Overwriting do_build will now not build the package if natively compiled. Edit: |
srcpkgs/qbe/template
Outdated
|
||
# Currently only aarch64 and x86_64 targets are supported and the checks | ||
# test the compiled binaries. | ||
case "$XBPS_TARGET_MACHINE" in | ||
aarch64*|x86_64*) ;; | ||
*) make_check=no ;; | ||
*) make_check=no # tests are broken ;; |
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.
This comment is wrong, the tests don't exist for other architectures.
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.
Tests exist for riscv64 and aarch64, but they can only be ran with the host qbe and I wasnt sure if it would work in the github workflow, but I tested locally and it looks like it doesnt run tests for target arch when you are cross compiling.
check-arm64: qbe
TARGET=arm64 tools/test.sh all
check-rv64: qbe
TARGET=rv64 tools/test.sh all
I updated the template and I think its OK now.
Natively compiling works for me:
|
The way you have it set up, make doesn't run in You don't need to use a custom |
Removed CC assignment in Makefile by adding |
Hi just checking, is there anything else I need to do? Or just have to wait for someone to merge this? |
Testing the changes
Local build testing