Comments (8)
Give it a try with 800f2b7 , I think that should fix it, seems it did not get included in the latest 3.5.x release.
from mbedtls.
@beni-sandu I have tried commit 800f2b7 now, but it still pulls in some unsupported assembler instructions:
[ 10%] Building C object library/CMakeFiles/mbedcrypto_static.dir/aesni.c.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/build/library && /opt/local/bin/gcc-mp-13 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/library -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/build/library -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/3rdparty/everest/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/3rdparty/p256-m -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/3rdparty/p256-m/p256-m -pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -Wall -Wextra -Wwrite-strings -Wformat=2 -Wno-format-nonliteral -Wvla -Wlogical-op -Wshadow -Wformat-signedness -Wformat-overflow=2 -Wformat-truncation -Wmissing-declarations -Wmissing-prototypes -std=c99 -arch i386 -mmacosx-version-min=10.6 -MD -MT library/CMakeFiles/mbedcrypto_static.dir/aesni.c.o -MF CMakeFiles/mbedcrypto_static.dir/aesni.c.o.d -o CMakeFiles/mbedcrypto_static.dir/aesni.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/library/aesni.c
[ 10%] Building C object library/CMakeFiles/mbedcrypto.dir/aesni.c.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/build/library && /opt/local/bin/gcc-mp-13 -Dmbedcrypto_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/library -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/build/library -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/3rdparty/everest/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/3rdparty/p256-m -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/3rdparty/p256-m/p256-m -pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -Wall -Wextra -Wwrite-strings -Wformat=2 -Wno-format-nonliteral -Wvla -Wlogical-op -Wshadow -Wformat-signedness -Wformat-overflow=2 -Wformat-truncation -Wmissing-declarations -Wmissing-prototypes -std=c99 -arch i386 -mmacosx-version-min=10.6 -fPIC -MD -MT library/CMakeFiles/mbedcrypto.dir/aesni.c.o -MF CMakeFiles/mbedcrypto.dir/aesni.c.o.d -o CMakeFiles/mbedcrypto.dir/aesni.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/mbedtls-800f2b7c020678a84abfa9688962b91c36e6693d/library/aesni.c
:195:no such instruction: `pclmulqdq $16, %xmm3,%xmm4'
:196:no such instruction: `pclmulqdq $0, %xmm3,%xmm0'
:197:no such instruction: `pclmulqdq $17, %xmm3,%xmm2'
:198:no such instruction: `pclmulqdq $1, %xmm3,%xmm1'
make[2]: *** [library/CMakeFiles/mbedcrypto_static.dir/aesni.c.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mbedtls3/mbedtls3/work/build'
make[1]: *** [library/CMakeFiles/mbedcrypto_static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
:195:no such instruction: `pclmulqdq $16, %xmm3,%xmm4'
:196:no such instruction: `pclmulqdq $0, %xmm3,%xmm0'
:197:no such instruction: `pclmulqdq $17, %xmm3,%xmm2'
:198:no such instruction: `pclmulqdq $1, %xmm3,%xmm1'
make[2]: *** [library/CMakeFiles/mbedcrypto.dir/aesni.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
from mbedtls.
@barracuda156 do you get the same with the current development branch? IIRC, there were some other fixes around AESNI code.
from mbedtls.
@barracuda156 Can you please check if you have MBEDTLS_AES_USE_HARDWARE_ONLY
switched on?
from mbedtls.
Also, those flags are needed to actually build AESNI. If you don't want AESNI at all then you can unset MBEDTLS_AESNI_C
and then you will not need these gcc flags.
from mbedtls.
Hi @barracuda156 , any updates on this ticket? Thanks
from mbedtls.
I am going to close this issue now. I don't believe there is any bug here. The flags referred to in the issue are required to build AESNI. If you wish to build without AESNI then you switch MBEDTLS_AESNI_C
off in the config. Please feel free to reopen if you still feel something is not right here.
from mbedtls.
@tom-daubney-arm Sorry for a delay. While I would expect something to check the hardware support for related instructions and adjust the settings accordingly, manual removing of MBEDTLS_AESNI_C
define from mbedtls_config.h
does fix the issue. Thank you.
from mbedtls.
Related Issues (20)
- Update the `pkalgs` domain to use PSA macros in `depends.py`
- Guidance to remove check_config.h inclusion from mbedtls_config.h
- CMake: Dependency scope HOT 3
- Remove hkdf.c HOT 2
- Protect against spurious definitions of derived symbols
- 2.28 only: build broken when `check_config.h` is not included
- Missing include stdlib.h and stdio.h in some platform configurations
- MbedTLS v3.6.0 - Compilation errors and warnings HOT 1
- Implement tf_psa_crypto_config.py
- Adapt config.py to configuration file split
- Move shipped AES and SHA acceleration to PSA drivers
- Deduce MBEDTLS_BLOCK_CIPHER_NO_DECRYPT automatically
- Consider removing DES HOT 1
- MBEDTLS_ECDSA_DETERMINISTIC in a PSA world
- Fix the detection of not-supported mechanisms in systematically generated PSA tests
- Improve the detection of never-supported PSA mechanisms
- Fix automatically generated PSA test cases that are not executed
- CMake Python detection finds the wrong Python HOT 1
- Signature of mbedtls_ssl_get_own_cid is using MBEDTLS_SSL_CID_OUT_LEN_MAX instead of MBEDTLS_SSL_CID_IN_LEN_MAX
- Rename `MBEDTLS_PSA_P256M_DRIVER_ENABLED` as `PSA_CRYPTO_DRIVER_MBEDTLS_P256M` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbedtls.