Huelse / SEAL-Python

Microsoft SEAL 4.X For Python
MIT License
324 stars 65 forks source link

clang failed with exit status 1 #51

Closed Astrmeteor closed 3 years ago

Astrmeteor commented 3 years ago

[//]: # Before submitting this issue, make sure you have already searched and still have problems. Describe the bug After "python3 setup.py build_ext -i", shows as follows:

error: use of undeclared identifier '_subborrow_u64' error: use of undeclared identifier '_addcarry_u64' error: use of undeclared identifier '_subborrow_u64' error: command 'clang' failed with exit status 1

Device\Environment System: macOS Big Sur 11.2.3 Python: 3.8

Screenshots

截屏2021-03-24 13 29 41
Huelse commented 3 years ago

Make sure your environment satisfies the requirements. And try to rebuild the SEAL with examples cmake -S . -B build -DSEAL_BUILD_EXAMPLES=ON, run the examples, If works well, then build this project again.

Astrmeteor commented 3 years ago

All requirements are satisfied. I have already built it on the Linux system. However, I still can not build it on macOS.

Huelse commented 3 years ago

Have you run the examples of SEAL?

Astrmeteor commented 3 years ago

Could you show me how to run the examples of SEAL? I am not quite familiar with it, sorry about it.

Huelse commented 3 years ago
cd SEAL
cmake -S . -B build -DSEAL_USE_MSGSL=OFF -DSEAL_USE_ZLIB=OFF -DSEAL_USE_ZSTD=OFF -DSEAL_BUILD_EXAMPLES=ON
cmake --build build
cd build/bin
./sealexamples
Astrmeteor commented 3 years ago

Examples worked. But this project still not work. What's the reason?

Huelse commented 3 years ago

Sorry for reply late, We think there might be some difference in the big sur with xcode12 which we don't know, I will try to fix it later.

Huelse commented 3 years ago

It seems that this problem has been solved in the latest Xcode command line, may be caused by some unstable traits of clang, you can try again in big sur with new cli now.