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

ironoxide-cpp fails CI tests on macos #222

Open
giarc3 opened this issue Nov 2, 2023 · 0 comments
Open

ironoxide-cpp fails CI tests on macos #222

giarc3 opened this issue Nov 2, 2023 · 0 comments

Comments

@giarc3
Copy link
Member

giarc3 commented Nov 2, 2023

Full log: logs_45.zip

cmake . fails with

The following warnings were emitted during compilation:

warning: In file included from crypto/curve25519/curve25519.c:22:
warning: In file included from include/ring-core/mem.h:60:
warning: include/ring-core/base.h:71:10: fatal error: 'TargetConditionals.h' file not found
warning: #include <TargetConditionals.h>
warning:          ^~~~~~~~~~~~~~~~~~~~~~
warning: 1 error generated.

error: failed to run custom build command for `ring v0.17.5`

Caused by:
  process didn't exit successfully: `/Users/runner/work/ironoxide-swig-bindings/ironoxide-swig-bindings/target/release/build/ring-70957a4547a39daf/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
  cargo:rustc-env=RING_CORE_PREFIX=ring_core_0_17_5_
  OPT_LEVEL = Some("3")
  TARGET = Some("x86_64-apple-darwin")
  HOST = Some("x86_64-apple-darwin")
  cargo:rerun-if-env-changed=CC_x86_64-apple-darwin
  CC_x86_64-apple-darwin = None
  cargo:rerun-if-env-changed=CC_x86_64_apple_darwin
  CC_x86_64_apple_darwin = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = Some("/Applications/Xcode_14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc")
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-apple-darwin
  CFLAGS_x86_64-apple-darwin = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_apple_darwin
  CFLAGS_x86_64_apple_darwin = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  running: "/Applications/Xcode_14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-I" "include" "-I" "/Users/runner/work/ironoxide-swig-bindings/ironoxide-swig-bindings/target/release/build/ring-e85c44abf95f34dd/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-pedantic" "-Wall" "-Wextra" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-gfull" "-DNDEBUG" "-o" "/Users/runner/work/ironoxide-swig-bindings/ironoxide-swig-bindings/target/release/build/ring-e85c44abf95f34dd/out/crypto/curve25519/curve25519.o" "-c" "crypto/curve25519/curve25519.c"
  cargo:warning=In file included from crypto/curve25519/curve25519.c:22:

  cargo:warning=In file included from include/ring-core/mem.h:60:

  cargo:warning=include/ring-core/base.h:71:10: fatal error: 'TargetConditionals.h' file not found

  cargo:warning=#include <TargetConditionals.h>

  cargo:warning=         ^~~~~~~~~~~~~~~~~~~~~~

  cargo:warning=1 error generated.

  exit status: 1

  --- stderr


  error occurred: Command "/Applications/Xcode_14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-I" "include" "-I" "/Users/runner/work/ironoxide-swig-bindings/ironoxide-swig-bindings/target/release/build/ring-e85c44abf95f34dd/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-pedantic" "-Wall" "-Wextra" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-gfull" "-DNDEBUG" "-o" "/Users/runner/work/ironoxide-swig-bindings/ironoxide-swig-bindings/target/release/build/ring-e85c44abf95f34dd/out/crypto/curve25519/curve25519.o" "-c" "crypto/curve25519/curve25519.c" with args "cc" did not execute successfully (status code exit status: 1).


warning: build failed, waiting for other jobs to finish...
CMake Error at /Users/runner/work/ironoxide-swig-bindings/ironoxide-swig-bindings/cpp/rust_swig_gen.cmake:9 (message):
  cargo: cargo check --release failed


CMake Error at cmake/rust_part_lib.cmake:53 (message):
  run of rust_swig_gen.cmake failed
Call Stack (most recent call first):
-- Configuring incomplete, errors occurred!
  CMakeLists.txt:11 (include)

It passes for regular cargo build and cargo lipo

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

No branches or pull requests

1 participant