ROOT not building OPENSSL-build-RelWithDebInfo.cmake


ROOT Version: master
Platform: Mac OS X Mojave
Compiler: cmake


[ 11%] Performing build step for ‘OPENSSL’
CMake Error at /Users/qwang/github/root_build/builtins/openssl/OPENSSL-prefix/src/OPENSSL-stamp/OPENSSL-build-RelWithDebInfo.cmake:16 (message):
Command failed: 2

‘make’ ‘-j1’ 'CC=/Library/Developer/CommandLineTools/usr/bin/cc -fPIC ’

See also

/Users/qwang/github/root_build/builtins/openssl/OPENSSL-prefix/src/OPENSSL-stamp/OPENSSL-build-*.log

Installed /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14. pkg

Still the same problem.

Hi,

See also
/root_build/builtins/openssl/OPENSSL-prefix/src/OPENSSL-stamp/OPENSSL-build-*.log

The error is inside the file above. Please paste the real error here. Thank you.

 quan-macbook-pro  ~/github/…/OPENSSL-prefix/src/OPENSSL-stamp  11:22:35  $  tail OPENSSL-build-err.log -n 30
      _req_main in req.o
      _dgst_main in dgst.o
      _ca_main in ca.o
      _crl2pkcs7_main in crl2p7.o
      _x509_main in x509.o
      _s_server_main in s_server.o
      ...
  "_sk_shift", referenced from:
      _crl2pkcs7_main in crl2p7.o
      _pkcs12_main in pkcs12.o
  "_sk_value", referenced from:
      _asn1parse_main in asn1pars.o
      _req_main in req.o
      _do_sign_init in req.o
      _dgst_main in dgst.o
      _ca_main in ca.o
      _do_body in ca.o
      _pkcs7_main in pkcs7.o
      ...
  "_string_to_hex", referenced from:
      _psk_server_cb in s_server.o
      _psk_client_cb in s_client.o
      _cms_main in cms.o
      _ts_main in ts.o
      _create_query in ts.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [link_app.] Error 1
make[4]: *** [openssl] Error 2
make[3]: *** [build_apps] Error 1

Those are only the last lines, please paste the full error output (it’s ok to attach the file here or to upload to pastebin and link it here).

OPENSSL-build-err.log.gz (12.1 KB)
Here is the full OPENSSL-build-err.log

ld: warning: ignoring file ../libssl.a, file was built for archive which is not the architecture being linked (x86_64):
 ../libssl.a
ld: warning: ignoring file ../libcrypto.a, file was built for archive which is not the architecture being linked (x86_6

How are you configuring ROOT? Are you on a 32bit machine?

No, I have the macOS Mojave, and the default cmake.
It should be 64bit.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.