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

Support Loongarch64 (error: fatal error: crypto_arch.h: No such file or directory)? #1123

Open
abcfy2 opened this issue Nov 5, 2024 · 1 comment

Comments

@abcfy2
Copy link

abcfy2 commented Nov 5, 2024

Hi there. Do you plan to support loongarch64 ? Since openssl already support this arch.

Toolchain: https://github.com/musl-cross/musl-cross/releases/download/20241103/loongarch64-unknown-linux-musl.tar.xz

configure options:

./configure --host=loongarch64-unknown-linux-musl --prefix=/cross_root/loongarch64-unknown-linux-musl --enable-silent-rules --enable-static --disable-shared --with-openssldir=/etc/ssl

Error:

Making all in include
make[1]: Entering directory '/usr/src/libressl-4.0.0/include'
Making all in openssl
make[2]: Entering directory '/usr/src/libressl-4.0.0/include/openssl'
echo "generating opensslconf.h ..."
generating opensslconf.h ...
make  all-am
make[3]: Entering directory '/usr/src/libressl-4.0.0/include/openssl'
echo "generating opensslconf.h ..."
generating opensslconf.h ...
make[3]: Leaving directory '/usr/src/libressl-4.0.0/include/openssl'
make[2]: Leaving directory '/usr/src/libressl-4.0.0/include/openssl'
make[2]: Entering directory '/usr/src/libressl-4.0.0/include'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/usr/src/libressl-4.0.0/include'
make[1]: Leaving directory '/usr/src/libressl-4.0.0/include'
Making all in crypto
make[1]: Entering directory '/usr/src/libressl-4.0.0/crypto'
echo "generating crypto_portable.sym ..."
generating crypto_portable.sym ...
cp ../crypto/crypto.sym crypto_portable.sym
chmod u+w crypto_portable.sym
make  all-am
make[2]: Entering directory '/usr/src/libressl-4.0.0/crypto'
  CC       libcrypto_la-cpt_err.lo
  CC       libcrypto_la-cryptlib.lo
  CC       libcrypto_la-crypto_ex_data.lo
  CC       libcrypto_la-crypto_init.lo
  CC       libcrypto_la-crypto_lock.lo
  CC       libcrypto_la-cversion.lo
  CC       libcrypto_la-malloc-wrapper.lo
  CC       libcrypto_la-mem_clr.lo
  CC       libcrypto_la-mem_dbg.lo
  CC       libcrypto_la-o_fips.lo
In file included from crypto_lock.c:22:
crypto_internal.h:23:10: fatal error: crypto_arch.h: No such file or directory
   23 | #include "crypto_arch.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:4714: libcrypto_la-crypto_lock.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/usr/src/libressl-4.0.0/crypto'
make[1]: *** [Makefile:1953: all] Error 2
make[1]: Leaving directory '/usr/src/libressl-4.0.0/crypto'
make: *** [Makefile:460: all-recursive] Error 1
@botovq
Copy link
Contributor

botovq commented Nov 5, 2024

There are no plans to support it. Without access to the hardware we would need someone to step up and own this platform. I would be happy to help with such an effort. However, only making cross-compilation work isn't good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants