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 fails to build from source on RISC-V #20615

Open
bedroge opened this issue May 23, 2024 · 1 comment
Open

OpenSSL 3 fails to build from source on RISC-V #20615

bedroge opened this issue May 23, 2024 · 1 comment

Comments

@bedroge
Copy link
Contributor

bedroge commented May 23, 2024

On my Starfive Visionfive 2, I get the following error:

gcc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -L. -Wl,-z,defs -Wl,-znodelete -shared -Wl,-Bsymbolic   \
        -o engines/padlock.so -Wl,--version-script=engines/padlock.ld \
        engines/padlock-dso-e_padlock.o \
        -lcrypto -ldl -pthread 
gcc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -L. -Wl,-z,defs -Wl,-znodelete -shared -Wl,-Bsymbolic   \
        -o providers/legacy.so -Wl,--version-script=providers/legacy.ld \
        crypto/legacy-dso-cpuid.o crypto/legacy-dso-ctype.o \
        crypto/legacy-dso-riscv64cpuid.o \
        crypto/legacy-dso-riscvcap.o \
        providers/legacy-dso-legacyprov.o \
        providers/liblegacy.a providers/libcommon.a -lcrypto -ldl -pthread 
rm -f fuzz/asn1parse-test
${LDCMD:-gcc} -pthread -Wa,--noexecstack -Wall -O3 -L.   \
        -o fuzz/asn1parse-test \
        fuzz/asn1parse-test-bin-asn1parse.o \
        fuzz/asn1parse-test-bin-test-corpus.o \
        -lcrypto -ldl -pthread 
rm -f fuzz/bignum-test
${LDCMD:-gcc} -pthread -Wa,--noexecstack -Wall -O3 -L.   \
        -o fuzz/bignum-test \
        fuzz/bignum-test-bin-bignum.o \
        fuzz/bignum-test-bin-test-corpus.o \
        -lcrypto -ldl -pthread 
/usr/bin/ld: ./libcrypto.so: undefined reference to `ra'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:24344: fuzz/asn1parse-test] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: ./libcrypto.so: undefined reference to `ra'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:24368: fuzz/bignum-test] Error 1
make[1]: Leaving directory '/nvme/eb/build/OpenSSL/3/system-system/openssl-3.2.1'
make: *** [Makefile:3564: build_sw] Error 2
@bedroge
Copy link
Contributor Author

bedroge commented May 23, 2024

I was also wondering why it actually even built this from source, since my host system already provides OpenSSL 3. It turns out that this is some broader issue on Debian-based distros (and not specific to RISC-V), see easybuilders/easybuild-easyblocks#3337.

@boegel boegel added this to the 4.x milestone May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants