Open assmdx opened 1 year ago
g++ compile is success,however emsdk compile failed
These are linker errors. The APIs/Symbols being mentioned like RSA_public_encrypt and PEM_read_bio_RSA_PUBKEY have been deprecated in OpenSSL 3.0. I am not sure about BIO_new_mem_buf. You can read more about it on PEM_read_bio_RSA_PUBKEYand PEM_read_bio_RSA_PUBKEY
These are linker errors. The APIs/Symbols being mentioned like RSA_public_encrypt and PEM_read_bio_RSA_PUBKEY have been deprecated in OpenSSL 3.0. I am not sure about BIO_new_mem_buf. You can read more about it on PEM_read_bio_RSA_PUBKEYand PEM_read_bio_RSA_PUBKEY
this is because i need to compile openssl source code on Mac first, how ever I got another stuck problem when use emmake make -j 12 build_generated libssl.a libcrypto.a
,
the error likes this:
cc -I. -Iinclude -DAES_ASM -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-3\"" -DMODULESDIR="\"/usr/local/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -DCMAKE_TOOLCHAIN_FILE=/Users/assmdx/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/Users/assmdx/emsdk/node/15.14.0_64bit/bin/node;--experimental-wasm-bulk-memory;--experimental-wasm-threads -MMD -MF ssl/libssl-lib-ssl_ciph.d.tmp -MT ssl/libssl-lib-ssl_ciph.o -c -o ssl/libssl-lib-ssl_ciph.o ssl/ssl_ciph.c
clangclangclang: clang: : clang: clangclang: : error: no input files
error: error: no input files
: error: no input fileserror: error:
no input files
no input filesclang
: error: clangno input filesno input files
: error: no input files
error: no input files
clang: error: no input files
clangclang: : error: error: no input files
no input files
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-threads: command not found
/bin/sh: --experimental-wasm-bulk-memory: command not found
/bin/sh: --experimental-wasm-threads: command not found
make: *** [ssl/libssl-lib-ssl_cert.o] Error 127
make: *** Waiting for unfinished jobs....
/bin/sh: --experimental-wasm-threads: command not found
/bin/sh: --experimental-wasm-threads: command not found
/bin/sh: --experimental-wasm-threads: command not found
make: *** [ssl/libssl-lib-d1_msg.o] Error 127
/bin/sh: --experimental-wasm-threads: command not found
/bin/sh: --experimental-wasm-threads: command not found
/bin/sh: --experimental-wasm-threads: command not found
make: *** [ssl/libssl-lib-s3_msg.o] Error 127
make: *** [ssl/libssl-lib-pqueue.o] Error 127
make: *** [ssl/libssl-lib-d1_srtp.o] Error 127
make: *** [ssl/libssl-lib-d1_lib.o] Error 127
make: *** [ssl/libssl-lib-s3_enc.o] Error 127
/bin/sh: --experimental-wasm-threads: command not found
/bin/sh: --experimental-wasm-threads: command not found
/bin/sh: --experimental-wasm-threads: command not found
make: *** [ssl/libssl-lib-s3_lib.o] Error 127
/bin/sh: --experimental-wasm-threads: command not found
make: *** [ssl/libssl-lib-methods.o] Error 127
make: *** [ssl/libssl-lib-ssl_asn1.o] Error 127
make: *** [ssl/libssl-lib-bio_ssl.o] Error 127
make: *** [ssl/libssl-lib-ssl_ciph.o] Error 127
emmake: error: 'make -j 12 build_generated libssl.a libcrypto.a' failed (returned 2)
Something is very wrong there. -DCMAKE_CROSSCOMPILING_EMULATOR
and -DCMAKE_TOOLCHAIN_FILE
are argument for cmake, and should not be passed to the compiler like that.
log is