Hi team, I have a question, how to configure and build OpenSSL 3 with ibm-clang compiler on AIX? Previously, my product specifies “aix64-cc” as target platform on AIX, and uses xlc 10.1. It’s OK. $ xlc -qversion IBM XL C/C++ for AIX, V10.1 Version: 10.01.0000.0008 But now the compiler for my product is upgraded to ibm-clang. $ ibm-clang –version IBM Open XL C/C++ for AIX 17.1.0 (5725-C72, 5765-J18), clang version 13.0.0 Target: powerpc-ibm-aix7.2.0.0 Thread model: posix InstalledDir: /opt/IBM/openxlC/17.1.0/bin I find there is no “clang” like target for aix in 10-main.conf, only “cc” and “gcc”. I try “export CC=ibm-clang” and then “./Configure aix64-cc” or “./Configure aix64-gcc”, both make fail. ►aix64-cc =================================================================================================================================================================================================================================================================================================== $ make ……. ibm-clang -I. -Iinclude -Iapps/include -qpic -q64 -qmaxmem=16384 -qro -qroconst -qthreaded -Wa,--noexecstack -Qunused-arguments -O -DB_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-3\""
-DMODULESDIR="\"/usr/local/lib/ossl-modules\"" -D_THREAD_SAFE -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -MMD -MF apps/lib/libapps-lib-app_libctx.d.tmp -MT apps/lib/libapps-lib-app_libctx.o -c -o apps/lib/libapps-lib-app_libctx.o apps/lib/app_libctx.c .orig: error: unknown argument '-qpic'; did you mean '-fpic'? .orig: error: unknown argument: '-q64' .orig: error: unknown argument: '-qmaxmem=16384' .orig: error: unknown argument: '-qro' .orig: error: unknown argument: '-qroconst' .orig: error: unknown argument: '-qthreaded' make: The error code from the last command is 1. =================================================================================================================================================================================================================================================================================================== ►aix64-gcc =================================================================================================================================================================================================================================================================================================== $ make ……. ibm-clang -I. -Iinclude -Iapps/include -maix64 -pthread -Wa,--noexecstack -Qunused-arguments -O -DB_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-3\"" -DMODULESDIR="\"/usr/local/lib/ossl-modules\""
-DOPENSSL_BUILDING_OPENSSL -DNDEBUG -MMD -MF apps/lib/libapps-lib-app_libctx.d.tmp -MT apps/lib/libapps-lib-app_libctx.o -c -o apps/lib/libapps-lib-app_libctx.o apps/lib/app_libctx.c .orig: error: unknown argument: '-maix64' make: The error code from the last command is 1. =================================================================================================================================================================================================================================================================================================== ================================ |