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

CI wheel build fails with segfault of cc in AArch64 manylinux and musllinux images. #2615

Open
Rot127 opened this issue Jan 28, 2025 · 1 comment
Labels
bug Something is not working as it should build & packaging Build system and packaging related

Comments

@Rot127
Copy link
Collaborator

Rot127 commented Jan 28, 2025

Work environment

Questions Answers
System Capstone runs on OS/arch/bits Github CI, cibuildwheel
Capstone module affected ...
Source of Capstone Github
Version/git commit #2614

Expected behavior

CI builds

Actual behavior

manylinux_2014 - aarch64 Ubuntu image:

  [ 21%] Building C object CMakeFiles/capstone.dir/arch/Mips/MipsModule.c.o
  [ 22%] Building C object CMakeFiles/capstone.dir/arch/PowerPC/PPCDisassembler.c.o
  [ 23%] Building C object CMakeFiles/capstone.dir/arch/PowerPC/PPCInstPrinter.c.o
  gmake[2]: *** [CMakeFiles/capstone.dir/arch/PowerPC/PPCMapping.c.o] Segmentation fault (core dumped)
  gmake[2]: *** Waiting for unfinished jobs....
  gmake[1]: *** [CMakeFiles/capstone.dir/all] Error 2
  gmake: *** [all] Error 2
  error: [Errno 2] No such file or directory: 'libcapstone.so.6'
  
  ERROR Backend subprocess exited when trying to invoke build_wheel

musllinux_1_2 - aarch64 Ubuntu image:

  [ 12%] Building C object CMakeFiles/capstone.dir/arch/ARM/ARMModule.c.o
  [ 13%] Building C object CMakeFiles/capstone.dir/arch/AArch64/AArch64BaseInfo.c.o
  [ 14%] Building C object CMakeFiles/capstone.dir/arch/AArch64/AArch64Disassembler.c.o
  gmake[2]: *** [CMakeFiles/capstone.dir/build.make:289: CMakeFiles/capstone.dir/arch/AArch64/AArch64Disassembler.c.o] Segmentation fault (core dumped)
  gmake[2]: *** Waiting for unfinished jobs....
  gmake[1]: *** [CMakeFiles/Makefile2:94: CMakeFiles/capstone.dir/all] Error 2
  gmake: *** [Makefile:156: all] Error 2

Steps to reproduce the behavior

Run CI

Additional Logs, screenshots, source code, configuration dump, ...

This is just a tracking issue we can link in the files.

Runs:

https://github.com/capstone-engine/capstone/actions/runs/13011576391/job/36290786445?pr=2614
https://github.com/capstone-engine/capstone/actions/runs/13011576391/job/36290786852?pr=2614

@Rot127 Rot127 added bug Something is not working as it should build & packaging Build system and packaging related labels Jan 28, 2025
Rot127 added a commit to Rot127/capstone that referenced this issue Jan 28, 2025
kabeor pushed a commit that referenced this issue Jan 28, 2025
* Add ARC files

* Added ARC files for successful compilation

* Refactor ARC files

* Add ARC c/cs tests

* Add ARC python test/bindings

* Add ARC to CI/CD

* Avoid omitting parameter names

* Update cs files

* Fix ARC bugs

* Update ARC python bindings

* Refactor and update ARC test files

* Add detail flag to arc test

* Fix ARC test problems

* Fix ARCMapping compile error

* Replace __CHAR_BIT__ to CHAR_BIT

* Add credits and ARC info

* Update ARC to match the latest next

* Python formatting

* Remove asserts on 'Unknown condition code passed'

* Add ARC to some more documentation

* Add ARC to Targets constants

* Add ARC support to llvm-tblgen

* Replace asserts & add Expr handling

* Check DecodeGPR32RegisterClass return value

* Fix fieldFromInstruction patch

* Refactor ARC

* Reformat python files

* Fix incorrect import

* Update inc files and insn names

* Update python files

* Disable AArch64 Linux wheel build due to #2615.

---------

Co-authored-by: R33v0LT <[email protected]>
@Rot127
Copy link
Collaborator Author

Rot127 commented Jan 28, 2025

It is a known problem:
pypa/cibuildwheel#2257 (comment)

and

pypa/cibuildwheel#2256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as it should build & packaging Build system and packaging related
Projects
None yet
Development

No branches or pull requests

1 participant