Comments (2)
The same issue is seen when building Parsec 1.0.0 on Macos.
But, no issues when Parsec 1.1.0RC2 built in an Ubuntu 22.04 container with clang 14.0
So, it looks like Macos only issue
from parsec.
I've got a similar issue when tried to build parsec in Yocto with clang 15.0.2 and musl instead of libgc:
| running: "cmake" "/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/cargo_home/bitbake/psa-crypto-sys-0.9.3/./vendor" "-DENABLE_PROGRAMS=OFF" "-DENABLE_TESTING=OFF" "-DCMAKE_INSTALL_PREFIX=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/build/target/aarch64-poky-linux-musl/release/build/psa-crypto-sys-473c732ebd60b788/out" "-DCMAKE_C_FLAGS= -I/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/build/target/aarch64-poky-linux-musl/release/build/psa-crypto-sys-473c732ebd60b788/out -DMBEDTLS_CONFIG_FILE=\'<config.h>\' -ffunction-sections -fdata-sections -fPIC -pipe -feliminate-unused-debug-types -fmacro-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/git=/usr/src/debug/parsec-service/1.1.0-r0 -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/git=/usr/src/debug/parsec-service/1.1.0-r0 -fmacro-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/build=/usr/src/debug/parsec-service/1.1.0-r0 -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/build=/usr/src/debug/parsec-service/1.1.0-r0 -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/recipe-sysroot= -fmacro-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/recipe-sysroot= -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/recipe-sysroot-native=" "-DCMAKE_C_COMPILER=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/wrapper/target-rust-cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -pipe -feliminate-unused-debug-types -fmacro-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/git=/usr/src/debug/parsec-service/1.1.0-r0 -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/git=/usr/src/debug/parsec-service/1.1.0-r0 -fmacro-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/build=/usr/src/debug/parsec-service/1.1.0-r0 -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/build=/usr/src/debug/parsec-service/1.1.0-r0 -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/recipe-sysroot= -fmacro-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/recipe-sysroot= -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/recipe-sysroot-native= -fvisibility-inlines-hidden" "-DCMAKE_CXX_COMPILER=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/wrapper/target-rust-cxx" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -pipe -feliminate-unused-debug-types -fmacro-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/git=/usr/src/debug/parsec-service/1.1.0-r0 -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/git=/usr/src/debug/parsec-service/1.1.0-r0 -fmacro-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/build=/usr/src/debug/parsec-service/1.1.0-r0 -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/build=/usr/src/debug/parsec-service/1.1.0-r0 -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/recipe-sysroot= -fmacro-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/recipe-sysroot= -fdebug-prefix-map=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/recipe-sysroot-native=" "-DCMAKE_ASM_COMPILER=/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/wrapper/target-rust-cc" "-DCMAKE_BUILD_TYPE=Release"
| -- The C compiler identification is Clang 15.0.2
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Check for working C compiler: /data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/wrapper/target-rust-cc - skipped
| -- Detecting C compile features
| -- Detecting C compile features - done
| -- Found Python3: /data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3.10 (found version "3.10.6") found components: Interpreter
| -- Configuring done
| -- Generating done
| -- Build files have been written to: /data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/build/target/aarch64-poky-linux-musl/release/build/psa-crypto-sys-473c732ebd60b788/out/build
| running: "cmake" "--build" "." "--target" "install" "--config" "Release" "--"
| [ 1%] Building C object library/CMakeFiles/mbedcrypto.dir/aes.c.o
| [ 2%] Building C object library/CMakeFiles/mbedcrypto.dir/aesni.c.o
| [ 3%] Building C object library/CMakeFiles/mbedcrypto.dir/aria.c.o
| [ 4%] Building C object library/CMakeFiles/mbedcrypto.dir/asn1parse.c.o
| [ 5%] Building C object library/CMakeFiles/mbedcrypto.dir/asn1write.c.o
| [ 6%] Building C object library/CMakeFiles/mbedcrypto.dir/base64.c.o
| [ 7%] Building C object library/CMakeFiles/mbedcrypto.dir/bignum.c.o
| [ 8%] Building C object library/CMakeFiles/mbedcrypto.dir/camellia.c.o
| [ 10%] Building C object library/CMakeFiles/mbedcrypto.dir/ccm.c.o
|
| --- stderr
| CMake Warning:
| Manually-specified variables were not used by the project:
|
| CMAKE_ASM_COMPILER
| CMAKE_ASM_FLAGS
| CMAKE_CXX_COMPILER
| CMAKE_CXX_FLAGS
|
|
| /data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux-musl/parsec-service/1.1.0-r0/cargo_home/bitbake/psa-crypto-sys-0.9.3/vendor/library/bignum.c:1650:29: error: variable 't' set but not used [-Werror,-Wunused-but-set-variable]
| mbedtls_mpi_uint c = 0, t = 0;
| ^
| 1 error generated.
| make[2]: *** [library/CMakeFiles/mbedcrypto.dir/build.make:160: library/CMakeFiles/mbedcrypto.dir/bignum.c.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[1]: *** [CMakeFiles/Makefile2:166: library/CMakeFiles/mbedcrypto.dir/all] Error 2
| make: *** [Makefile:136: all] Error 2
| thread 'main' panicked at '
| command did not execute successfully, got: exit status: 2
from parsec.
Related Issues (20)
- Can we have a single "latest" Quickstart release package?
- Parsec fails to compile for arm32 HOT 4
- Vulnerability in SQLite HOT 3
- Investigate using Arm Virtual Hardware in CI
- Suggest using `/dev/tpmrm0` over `/dev/tpm`
- Parsec 1.1 fails to build with meta-security master branch HOT 4
- Parsec Quickstart - Docker: Pull access denied for parallaxsecond/parsec-quickstart, repository does not exist HOT 1
- Update cryptoki version to `0.4.1` HOT 1
- parsec 1.1.0/1.2.0-rc1 fail to build with gcc13 HOT 3
- Generate arm64 quickstart package
- Provide details of built-in providers
- Investigate e2e_tests failure on RasberryPi for PKCS11 backend
- Investigate e2e_tests failure on RasberryPi for TPM backend
- Migrate away from using users crate HOT 1
- Format check errors should only appear in one CI job
- parsec-quickstart container on arm64 HOT 1
- Improve PKCS11 failure mode HOT 1
- e2e_tests/stress.rs: Signature Verification fails sporadically with PsaErrorInvalidArgument
- parsec-cli-tests.sh error: The CSR does not contain the serialNumber field of the Distinguished Name HOT 3
- PKCS11/SoftHSM/RSA issue: Decryption with a different key to the one used for Encryption is allowed HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parsec.