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

[ openssl/3.1.1#3a25e05b364f335633143656dc265841] Android armv7 #17912

Open
zhizhi-dev opened this issue Jun 12, 2023 · 7 comments
Open

[ openssl/3.1.1#3a25e05b364f335633143656dc265841] Android armv7 #17912

zhizhi-dev opened this issue Jun 12, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@zhizhi-dev
Copy link

zhizhi-dev commented Jun 12, 2023

Description

crossing build for android
only x86_64 package gen

~/.conan2/p/b/opensf84aae7ee3647/p$ cat conaninfo.txt
[settings]
arch=armv7
build_type=Debug
compiler=clang
compiler.version=9
os=Android
os.api_level=21
[options]
386=False
enable_weak_ssl_ciphers=False
fPIC=True
no_aria=False
no_asm=False
no_async=False
no_bf=False
no_blake2=False
no_camellia=False
no_cast=False
no_chacha=False
no_cms=False
no_comp=False
.....
file bin/openssl
bin/openssl: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=62bafe913de69ecf8c5faa636273b90398208913, for GNU/Linux 3.2.0, with debug_info, not stripped

Package and Environment Details

wsl:
Linux DESKTOP-D35K8K9 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Steps to reproduce

conan install -s build_type=Debug -pr:b default -pr:h android -s arch=armv7 --requires=openssl/3.1.1 --build=openssl/3.1.1

Logs

======== Input profiles ========
Profile host:
[settings]
arch=armv7
build_type=Debug
compiler=clang
compiler.cppstd=17
compiler.libcxx=c++_static
compiler.version=9
os=Android
os.api_level=21
[conf]
tools.android:ndk_path=/opt/android/ndk/21.4.7075529/

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=clang
compiler.cppstd=17
compiler.version=10
os=Linux

======== Computing dependency graph ========
Graph root
cli
Requirements
openssl/3.1.1#3a25e05b364f335633143656dc265841 - Cache
zlib/1.2.13#e377bee636333ae348d51ca90874e353 - Cache

======== Computing necessary packages ========
Requirements
openssl/3.1.1#3a25e05b364f335633143656dc265841:7a7260e95267fea3005e98ded0cc967ca9e7f2d1#f29ff42acd47ba628b40edd9bd747d96 - Cache
zlib/1.2.13#e377bee636333ae348d51ca90874e353:58cf2a915c508c949b76a45972457990398d0ba6#1789932eba71447aa9b19b40fb1c19ba - Cache

======== Installing packages ========
zlib/1.2.13: Already installed! (1 of 2)
openssl/3.1.1: Already installed! (2 of 2)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.names' used in: zlib/1.2.13, openssl/3.1.1
WARN: deprecated: 'cpp_info.build_modules' used in: openssl/3.1.1
WARN: deprecated: 'env_info' used in: openssl/3.1.1

======== Finalizing install (deploy, generators) ========
cli: Generating aggregated env files
cli: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
Install finished successfully

@zhizhi-dev zhizhi-dev added the bug Something isn't working label Jun 12, 2023
@zhizhi-dev
Copy link
Author

conan2

@zhizhi-dev
Copy link
Author

armv8 is the same bug .

@zhizhi-dev
Copy link
Author

gcc  -I. -Iinclude -fPIC -pthread -fPIC -g -Wa,--noexecstack -fPIC -g -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/res\"" -DENGINESDIR="\"//lib/engines-1.1\""  -D__ANDROID_API__=21 -MMD -MF apps/app_rand.d.tmp -MT apps/app_rand.o -c -o apps/app_rand.o apps/app_rand.c
gcc  -I. -Iinclude -fPIC -pthread -fPIC -g -Wa,--noexecstack -fPIC -g -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/res\"" -DENGINESDIR="\"//lib/engines-1.1\""  -D__ANDROID_API__=21 -MMD -MF apps/apps.d.tmp -MT apps/apps.o -c -o apps/apps.o apps/apps.c
gcc  -I. -Iinclude -fPIC -pthread -fPIC -g -Wa,--noexecstack -fPIC -g -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/res\"" -DENGINESDIR="\"//lib/engines-1.1\""  -D__ANDROID_API__=21 -MMD -MF apps/bf_prefix.d.tmp -MT apps/bf_prefix.o -c -o apps/bf_prefix.o apps/bf_prefix.c
gcc  -I. -Iinclude -fPIC -pthread -fPIC -g -Wa,--noexecstack -fPIC -g -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/res\"" -DENGINESDIR="\"//lib/engines-1.1\""  -D__ANDROID_API__=21 -MMD -MF apps/opt.d.tmp -MT apps/opt.o -c -o apps/opt.o apps/opt.c
gcc  -I. -Iinclude -fPIC -pthread -fPIC -g -Wa,--noexecstack -fPIC -g -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/res\"" -DENGINESDIR="\"//lib/engines-1.1\""  -D__ANDROID_API__=21 -MMD -MF apps/s_cb.d.tmp -MT apps/s_cb.o -c -o apps/s_cb.o apps/s_cb.c
gcc  -I. -Iinclude -fPIC -pthread -fPIC -g -Wa,--noexecstack -fPIC -g -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/res\"" -DENGINESDIR="\"//lib/engines-1.1\""  -D__ANDROID_API__=21 -MMD -MF apps/s_socket.d.tmp -MT apps/s_socket.o -c -o apps/s_socket.o apps/s_socket.c
gcc  -I. -Iinclude -fPIC -pthread -fPIC -g -Wa,--noexecstack -fPIC -g -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/res\"" -DENGINESDIR="\"//lib/engines-1.1\""  -D__ANDROID_API__=21 -MMD -MF crypto/aes/aes_cbc.d.tmp -MT crypto/aes/aes_cbc.o -c -o crypto/aes/aes_cbc.o crypto/aes/aes_cbc.c
gcc  -I. -Iinclude -fPIC -pthread -fPIC -g -Wa,--noexecstack -fPIC -g -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/res\"" -DENGINESDIR="\"//lib/engines-1.1\""  -D__ANDROID_API__=21 -MMD -MF crypto/aes/aes_cfb.d.tmp -MT crypto/aes/aes_cfb.o -c -o crypto/aes/aes_cfb.o crypto/aes/aes_cfb.c

@zhizhi-dev
Copy link
Author

conan install -s build_type=Debug -pr:b default -pr:h android -s arch=armv8 --requires=openssl/1.1.1u --build=missing

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Debug
compiler=clang
compiler.cppstd=17
compiler.libcxx=c++_static
compiler.version=9
os=Android
os.api_level=21
[conf]
tools.android:ndk_path=/opt/android/ndk/21.4.7075529/

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=clang
compiler.cppstd=17
compiler.version=10
os=Linux


======== Computing dependency graph ========
openssl/1.1.1u: Not found in local cache, looking in remotes...
openssl/1.1.1u: Checking remote: conancenter
openssl/1.1.1u: Downloaded recipe revision de76bbea24d8b46f8def8daa18b31fd9
Graph root
    cli
Requirements
    openssl/1.1.1u#de76bbea24d8b46f8def8daa18b31fd9 - Downloaded (conancenter)

======== Computing necessary packages ========
Requirements
    openssl/1.1.1u#de76bbea24d8b46f8def8daa18b31fd9:8695e9eef7c3d1842e326e21c104a244ef64683c - Build

======== Installing packages ========
openssl/1.1.1u: Sources downloaded from 'conancenter'
openssl/1.1.1u: Calling source() in /home/zhizhi/.conan2/p/opens0414470b4dadb/s/src
openssl/1.1.1u: Downloading 9.9MB openssl-1.1.1u.tar.gz

-------- Installing package openssl/1.1.1u (1 of 1) --------
openssl/1.1.1u: Building from source
openssl/1.1.1u: Package openssl/1.1.1u:8695e9eef7c3d1842e326e21c104a244ef64683c
openssl/1.1.1u: Copying sources to build folder
openssl/1.1.1u: Building your package in /home/zhizhi/.conan2/p/b/opens6f1220fd96a62/b
openssl/1.1.1u: Calling generate()
openssl/1.1.1u: Generators folder: /home/zhizhi/.conan2/p/b/opens6f1220fd96a62/b/build-debug/conan
openssl/1.1.1u: Generating aggregated env files
openssl/1.1.1u: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
openssl/1.1.1u: Calling build()
openssl/1.1.1u: Apply patch (portability): TVOS and WatchOS don't like fork()
openssl/1.1.1u: gen_info = {'CFLAGS': ['-fPIC', '-g'], 'CXXFLAGS': ['-fPIC', '-g'], 'DEFINES': [], 'LDFLAGS': []}
openssl/1.1.1u: using target: conan-Debug-Android-armv8-clang-9 -> linux-generic64
openssl/1.1.1u: my %targets = (
    "conan-Debug-Android-armv8-clang-9" => {
        inherit_from => [ "linux-generic64" ],
        cflags => add("-fPIC -g"),
        cxxflags => add("-fPIC -g"),

        includes => add(),
        lflags => add(""),







        perlasm_scheme => "linux64",
    },
);

openssl/1.1.1u: ['"conan-Debug-Android-armv8-clang-9"', 'no-shared', '--prefix=/', '--openssldir="res"', 'no-unit-test', 'threads', 'PERL=perl', 'no-tests', '--debug', '--libdir=lib', ' -D__ANDROID_API__=21', '-fPIC', 'no-md2']
openssl/1.1.1u: RUN: perl ./Configure "conan-Debug-Android-armv8-clang-9" no-shared --prefix=/ --openssldir="res" no-unit-test threads PERL=perl no-tests --debug --libdir=lib  -D__ANDROID_API__=21 -fPIC no-md2
Configuring OpenSSL version 1.1.1u (0x1010115fL) for conan-Debug-Android-armv8-clang-9
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile

**********************************************************************
***                                                                ***
***   OpenSSL has been successfully configured                     ***
***                                                                ***
***   If you encounter a problem while building, please open an    ***
***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***
***   and include the output from the following command:           ***
***                                                                ***
***       perl configdata.pm --dump                                ***
***                                                                ***
***   (If you are new to OpenSSL, you might want to consult the    ***
***   'Troubleshooting' section in the INSTALL file first)         ***
***                                                                ***
**********************************************************************

openssl/1.1.1u: RUN: make -j16
perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
make depend && make _all
make[1]: Entering directory '/home/zhizhi/.conan2/p/b/opens6f1220fd96a62/b/src'
make[1]: Leaving directory '/home/zhizhi/.conan2/p/b/opens6f1220fd96a62/b/src'
make[1]: Entering directory '/home/zhizhi/.conan2/p/b/opens6f1220fd96a62/b/src'
gcc  -I. -Iinclude -fPIC -pthread -fPIC -g -Wa,--noexecstack -fPIC -g -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/res\"" -DENGINESDIR="\"//lib/engines-1.1\""  -D__ANDROID_API__=21 -MMD -MF apps/app_rand.d.tmp -MT apps/app_rand.o -c -o apps/app_rand.o apps/app_rand.c
gcc  -I. -Iinclude -fPIC -pthread -fPIC -g -Wa,--noexecstack -fPIC -g -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/res\"" -DENGINESDIR="\"//lib/engines-1.1\""  -D__ANDROID_API__=21 -MMD -MF apps/apps.d.tmp -MT apps/apps.o -c -o apps/apps.o apps/apps.c

.....
.....
.....

openssl/1.1.1u: package(): Packaged 104 '.h' files
openssl/1.1.1u: package(): Packaged 2 '.a' files: libcrypto.a, libssl.a
openssl/1.1.1u: package(): Packaged 1 '.cmake' file: conan-official-openssl-variables.cmake
openssl/1.1.1u: package(): Packaged 3 files: LICENSE, c_rehash, openssl
openssl/1.1.1u: Created package revision 367cf766301a88eb076793b71c3d8b21
openssl/1.1.1u: Package '8695e9eef7c3d1842e326e21c104a244ef64683c' created
openssl/1.1.1u: Full package reference: openssl/1.1.1u#de76bbea24d8b46f8def8daa18b31fd9:8695e9eef7c3d1842e326e21c104a244ef64683c#367cf766301a88eb076793b71c3d8b21
openssl/1.1.1u: Package folder /home/zhizhi/.conan2/p/b/opens6f1220fd96a62/p
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'cpp_info.names' used in: openssl/1.1.1u
WARN: deprecated:     'cpp_info.build_modules' used in: openssl/1.1.1u

======== Finalizing install (deploy, generators) ========
cli: Generating aggregated env files
cli: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
Install finished successfully
zhizhi@DESKTOP-D35K8K9:~/.conan2/p/b/opens6f1220fd96a62$ file /home/zhizhi/.conan2/p/b/opens6f1220fd96a62/b/src/ssl/ssl_mcnf.o
/home/zhizhi/.conan2/p/b/opens6f1220fd96a62/b/src/ssl/ssl_mcnf.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped

@zhizhi-dev
Copy link
Author

conan-Debug-Android-armv8-clang-9

openssl 1.1.1u same bug

@zhizhi-dev
Copy link
Author

conan 1.60.1 has same bug!

@zhizhi-dev
Copy link
Author

zhizhi-dev commented Jun 13, 2023

autotoolchain did not use the conf in profiles

[conf]
tools.android:ndk_path=/path/to/android_ndk/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant