Repository metrics
- Stars
- (30,157 個のスター)
- PR merge metrics
- (30d に merged PR はありません)
説明
I have added below mentioned taregt in 10-main.conf
"QNX-aarch64" => { inherit_from => [ "BASE_unix" ], CC => "gcc", ex_libs => add("-lsocket"), dso_scheme => "dlfcn", shared_target => "bsd-gcc-shared", shared_cflag => "-fPIC", shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)", },
I have exported the QNX paths as follows:
source qnxsdp-env.sh QNX_HOST=/home/qnx/repos/qnx710/host/linux/x86_64 QNX_TARGET=/home/qnx/repos/qnx710/target/qnx7 MAKEFLAGS=-I/home/qnx/repos/qnx710/target/qnx7/usr/include
I'm able to cross-compile it using the following command:
./Configure --cross-compile-prefix=ntoarmv7- --prefix=/home/qnx/repos/openssl/output --openssldir=/home/qnx/repos/openssl/output QNX6
The actual problem/error I'm facing when I tried to compile it using the qcc compiler (and not the cross compilers like ntoarmv7-gcc, etc. ) using the following command:
./Configure --prefix=/home/qnx/repos/openssl/testing/3.1.3/results --openssldir=/home/qnx/repos/openssl/testing/3.1.3/results CC=qcc QNX-aarch64
The error message I encountered when I ran the above command for the qcc compiler (Note: It is able to successfully detect the qcc compiler for compilation.)
`make depend && make _build_sw make[1]: Entering directory '/home/qnx/repos/openssl/testing/3.1.3/results' make[1]: Leaving directory '/home/qnx/repos/openssl/testing/3.1.3/results' make[1]: Entering directory '/home/qnx/repos/openssl/testing/3.1.3/results'
qcc -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../openssl -I../openssl/include -I../openssl/providers/common/include -I../openssl/providers/implementations/include -fPIC -DOPENSSL_PIC -DOPENSSLDIR=""/home/qnx/repos/openssl/testing/3.1.3/results"" -DENGINESDIR=""/home/qnx/repos/openssl/testing/3.1.3/results/lib/engines-3"" -DMODULESDIR=""/home/qnx/repos/openssl/testing/3.1.3/results/lib/ossl-modules"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -MMD -MF crypto/bio/libcrypto-lib-bss_dgram.d.tmp -MT crypto/bio/libcrypto-lib-bss_dgram.o -c -o crypto/bio/libcrypto-lib-bss_dgram.o ../openssl/crypto/bio/bss_dgram.c cc: Can't specify -P, -C, -E, -c or -S with -o and have multiple files Makefile:15040: recipe for target 'crypto/bio/libcrypto-lib-bss_dgram.o' failed make[1]: *** [crypto/bio/libcrypto-lib-bss_dgram.o] Error 1 make[1]: Leaving directory '/home/qnx/repos/openssl/testing/3.1.3/results'`
The metadata information provided below using perl configdata.pm --dump
`Perl information:
/usr/bin/perl
5.34.0 for x86_64-linux-gnu-thread-multi
Config target attributes: AR => "ar", ARFLAGS => "qc", CC => "gcc", HASHBANGPERL => "/usr/bin/env perl", RANLIB => "ranlib", RC => "windres", build_file => "Makefile", build_scheme => [ "unified", "unix" ], cflags => "", cppflags => "", defines => [ "OPENSSL_BUILDING_OPENSSL" ], disable => [ ], dso_ldflags => "-Wl,-z,defs", dso_scheme => "dlfcn", enable => [ ], ex_libs => "-lsocket", includes => [ ], lflags => "", lib_cflags => "", lib_cppflags => "", lib_defines => [ ], module_cflags => "-fPIC", module_cxxflags => undef, module_ldflags => "-shared -Wl,-Bsymbolic", perl_platform => "Unix", shared_cflag => "-fPIC", shared_defflag => "-Wl,--version-script=", shared_defines => [ ], shared_extension => ".so.$(SHLIB_VERSION_NUMBER)", shared_ldflag => "-shared -Wl,-Bsymbolic", shared_rcflag => "", shared_sonameflag => "-Wl,-soname=", shared_target => "bsd-gcc-shared", thread_defines => [ ], thread_scheme => "(unknown)", unistd => "<unistd.h>",
Recorded environment: AR = ARFLAGS = AS = ASFLAGS = BUILDFILE = CC = CFLAGS = CPP = CPPDEFINES = CPPFLAGS = CPPINCLUDES = CROSS_COMPILE = CXX = CXXFLAGS = HASHBANGPERL = LD = LDFLAGS = LDLIBS = MT = MTFLAGS = OPENSSL_LOCAL_CONFIG_DIR = PERL = RANLIB = RC = RCFLAGS = RM = WINDRES = __CNF_CFLAGS = __CNF_CPPDEFINES = __CNF_CPPFLAGS = __CNF_CPPINCLUDES = __CNF_CXXFLAGS = __CNF_LDFLAGS = __CNF_LDLIBS = Makevars: AR = ar ARFLAGS = qc ASFLAGS = CC = qcc CFLAGS = CPPDEFINES = CPPFLAGS = CPPINCLUDES = CXXFLAGS = HASHBANGPERL = /usr/bin/env perl LDFLAGS = LDLIBS = PERL = /usr/bin/perl RANLIB = ranlib RC = windres RCFLAGS =
NOTE: These variables only represent the configuration view. The build file template may have processed these variables further, please have a look at the
build file for more exact data: Makefile
build file: Makefile`
Can the OpenSSL community help me to build the library using the qcc compiler?