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

Building aws-crt on NetBSD #371

Open
darko-mesaros opened this issue Jul 15, 2022 · 2 comments
Open

Building aws-crt on NetBSD #371

darko-mesaros opened this issue Jul 15, 2022 · 2 comments
Labels
feature-request A feature should be added or improved. p2 This is a standard priority issue

Comments

@darko-mesaros
Copy link

Hello, I am trying to get AWS CLI v2 running on NetBSD, however one of the issues I encounter is the inability to compile aws-crt. When running python setup.py install (python 3.9.12) the process fails during aws-crt compilation, with the following error:

[ 66%] Building C object crypto/CMakeFiles/crypto.dir/thread_pthread.c.o
In file included from /tmp/easy_install-k26ugbga/awscrt-0.13.11/crt/aws-lc/include/openssl/stack.h:62:0,
                 from /tmp/easy_install-k26ugbga/awscrt-0.13.11/crt/aws-lc/include/openssl/ex_data.h:114,
                 from /tmp/easy_install-k26ugbga/awscrt-0.13.11/crt/aws-lc/crypto/internal.h:113,
                 from /tmp/easy_install-k26ugbga/awscrt-0.13.11/crt/aws-lc/crypto/thread_pthread.c:15:
/tmp/easy_install-k26ugbga/awscrt-0.13.11/crt/aws-lc/crypto/thread_pthread.c:27:1: error: negative width in bit-field ‘static_assertion_at_line_28_error_is_CRYPTO_MUTEX_is_too_small’
 OPENSSL_STATIC_ASSERT(sizeof(CRYPTO_MUTEX) >= sizeof(pthread_rwlock_t),
 ^
--- crypto/CMakeFiles/crypto.dir/thread_pthread.c.o ---
*** [crypto/CMakeFiles/crypto.dir/thread_pthread.c.o] Error code 1

make[2]: stopped in /tmp/easy_install-k26ugbga/awscrt-0.13.11/build/temp.netbsd-9.2-amd64-3.9/deps/aws-lc
[ 66%] Building C object crypto/CMakeFiles/crypto.dir/thread_win.c.o
1 error

make[2]: stopped in /tmp/easy_install-k26ugbga/awscrt-0.13.11/build/temp.netbsd-9.2-amd64-3.9/deps/aws-lc
--- crypto/CMakeFiles/crypto.dir/all ---
*** [crypto/CMakeFiles/crypto.dir/all] Error code 2

make[1]: stopped in /tmp/easy_install-k26ugbga/awscrt-0.13.11/build/temp.netbsd-9.2-amd64-3.9/deps/aws-lc
1 error

make[1]: stopped in /tmp/easy_install-k26ugbga/awscrt-0.13.11/build/temp.netbsd-9.2-amd64-3.9/deps/aws-lc
*** [all] Error code 2

make: stopped in /tmp/easy_install-k26ugbga/awscrt-0.13.11/build/temp.netbsd-9.2-amd64-3.9/deps/aws-lc
1 error

I am running the following version of NetBSD:

(.venv) [vagrant@netbsd9 ~]$ uname -a
NetBSD netbsd9.localdomain 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

And this is the version of cmake I have:

(.venv) [vagrant@netbsd9 aws-cli]$ cmake --version
cmake version 3.22.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

Is there a specific dependency that I am missing, or what version of cmake3 is required?
Thank you,
Darko

@jmklix jmklix added bug This issue is a bug. p2 This is a standard priority issue needs-review This issue or pull request needs review from a core team member. labels Jan 10, 2024
@jmklix jmklix added feature-request A feature should be added or improved. and removed bug This issue is a bug. needs-review This issue or pull request needs review from a core team member. labels Feb 12, 2024
@jmklix
Copy link
Member

jmklix commented Feb 12, 2024

We currently don't support NetBSD. Please 👍 the above feature request is you would like support added.

@supriyo-biswas
Copy link

You could try skipping the compilation of aws-lc and instead link it with OpenSSL as described here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

3 participants