Skip to content
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

link atomic failed in non-x86 #5896

Closed
RevySR opened this issue Mar 13, 2022 · 6 comments · Fixed by deepin-community/z3#1
Closed

link atomic failed in non-x86 #5896

RevySR opened this issue Mar 13, 2022 · 6 comments · Fixed by deepin-community/z3#1
Labels

Comments

@RevySR
Copy link
Contributor

RevySR commented Mar 13, 2022

/usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1/../../../../riscv64-unknown-linux-gnu/bin/ld: src/api/CMakeFiles/api.dir/api_algebraic.cpp
.o: in function `.LEHE20':
api_algebraic.cpp:(.text+0x782): undefined reference to `__atomic_exchange_1'
/usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1/../../../../riscv64-unknown-linux-gnu/bin/ld: src/api/CMakeFiles/api.dir/api_algebraic.cpp
.o:api_algebraic.cpp:(.text+0xd46): more undefined references to `__atomic_exchange_1' follow
collect2: error: ld returned 1 exit status
@RevySR
Copy link
Contributor Author

RevySR commented Mar 13, 2022

https://bugs.gentoo.org/835003

build failed on gentoo riscv

@RevySR
Copy link
Contributor Author

RevySR commented Mar 13, 2022

cmake/modules/CheckAtomic.cmake

A detection atomic-linking need method

@NikolajBjorner
Copy link
Contributor

Not sure what the purpose of filing the bug here. Based on the link, this is just a way to exercise a bug in the build system for whether a platform supports one form of atomic operations or not.
Are you planning to submit a GitHub Action to build for riscv?

@RevySR
Copy link
Contributor Author

RevySR commented Mar 13, 2022

Not sure what the purpose of filing the bug here. Based on the link, this is just a way to exercise a bug in the build system for whether a platform supports one form of atomic operations or not. Are you planning to submit a GitHub Action to build for riscv?

riscvarchive/riscv-gcc#12

According to this, I'd like to improve compatibility for different toolchains on z3

@NikolajBjorner
Copy link
Contributor

Then it is external.
You are welcome to add GitHub actions to build on different tool chains similar to other actions added (e.g., for arm).

@RevySR
Copy link
Contributor Author

RevySR commented Mar 13, 2022

https://github.com/Rabenda/z3/runs/5528565978?check_suite_focus=true

Add riscv64 build but same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants