Giter VIP home page Giter VIP logo

Comments (8)

beni-sandu avatar beni-sandu commented on June 1, 2024

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.

barracuda156 avatar barracuda156 commented on June 1, 2024

@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.

beni-sandu avatar beni-sandu commented on June 1, 2024

@barracuda156 do you get the same with the current development branch? IIRC, there were some other fixes around AESNI code.

from mbedtls.

tom-daubney-arm avatar tom-daubney-arm commented on June 1, 2024

@barracuda156 Can you please check if you have MBEDTLS_AES_USE_HARDWARE_ONLY switched on?

from mbedtls.

tom-daubney-arm avatar tom-daubney-arm commented on June 1, 2024

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.

tom-daubney-arm avatar tom-daubney-arm commented on June 1, 2024

Hi @barracuda156 , any updates on this ticket? Thanks

from mbedtls.

tom-daubney-arm avatar tom-daubney-arm commented on June 1, 2024

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.

barracuda156 avatar barracuda156 commented on June 1, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.