GnuTLS | Undefined reference to _gnutls_hmac_sha_aarch64 when building with nettle v4 patch (#1804)

Read-only notification of GnuTLS library development activities <[email protected]>
Newsgroups gmane.comp.encryption.gpg.gnutls.devel
Message-ID <[email protected]>

bbhtt created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1804



The patch was applied on top of the 3.8.12 tag. The issue seems to affect aarch64 build only.



```
        libtool: link: ar cr .libs/libcmd-ocsp.a .libs/ocsptool-options.o 
        mv -f .deps/p11tool-p11tool.Tpo .deps/p11tool-p11tool.Po
        libtool: link: ranlib .libs/libcmd-ocsp.a
        libtool: link: ( cd ".libs" && rm -f "libcmd-ocsp.la" && ln -s "../libcmd-ocsp.la" "libcmd-ocsp.la" )
        libtool: link: aarch64-unknown-linux-gnu-gcc -DTEST=1 -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mbranch-protection=bti+pac-ret -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o dumpcfg dumpcfg-cfg.o  ../gl/.libs/libgnu.a gl/.libs/libgnu_gpl.a
        libtool: link: ar cr .libs/libcmd-serv.a .libs/gnutls-serv-options.o 
        libtool: link: ranlib .libs/libcmd-serv.a
        libtool: link: ( cd ".libs" && rm -f "libcmd-serv.la" && ln -s "../libcmd-serv.la" "libcmd-serv.la" )
        libtool: link: ar cr .libs/libcmd-cli.a .libs/gnutls-cli-options.o 
        libtool: link: ranlib .libs/libcmd-cli.a
        libtool: link: aarch64-unknown-linux-gnu-gcc -fanalyzer -fstrict-flex-arrays -Wall -Wbad-function-cast -Wcast-align=strict -Wdate-time -Wdisabled-optimization -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wextra -Wflex-array-member-not-at-end -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-definition -Wopenmp-simd -Wpacked -Wpointer-arith -Wshadow -Wstrict-flex-arrays -Wstrict-prototypes -Wsuggest-attribute=cold -Wsuggest-attribute=format -Wsuggest-attribute=malloc -Wsuggest-final-methods -Wsuggest-final-types -Wsync-nand -Wtrampolines -Wuninitialized -Wunknown-pragmas -Wunused-macros -Wvariadic-macros -Wvector-operation-performance -Wwrite-strings -Warray-bounds=2 -Wattribute-alias=2 -Wbidi-chars=any,ucn -Wformat-overflow=2 -Wformat=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-overflow=2 -Wuse-after-free=3 -Wunused-const-variable=2 -Wvla-larger-than=4031 -Wno-analyzer-malloc-leak -Wno-missing-field-initializers -Wno-unused-parameter -Wno-format-truncation -Wimplicit-fallthrough=2 -Wabi=11 -fdiagnostics-show-option -fno-builtin-strcmp -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mbranch-protection=bti+pac-ret -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o .libs/psktool psk.o  ../lib/.libs/libgnutls.so -lp11-kit -lidn2 -lunistring -ldl -ltasn1 -lhogweed -lnettle -lgmp ./.libs/libcmd-psk.a ../gl/.libs/libgnu.a gl/.libs/libgnu_gpl.a
        libtool: link: ( cd ".libs" && rm -f "libcmd-cli.la" && ln -s "../libcmd-cli.la" "libcmd-cli.la" )
        /usr/aarch64-unknown-linux-gnu/bin/ld.bfd: ../lib/.libs/libgnutls.so: undefined reference to `_gnutls_hmac_sha_aarch64'
        collect2: error: ld returned 1 exit status
        make[3]: *** [Makefile:3275: psktool] Error 1
        make[3]: *** Waiting for unfinished jobs....
        mv -f .deps/p11tool-common.Tpo .deps/p11tool-common.Po
        mv -f .deps/p11tool-pkcs11.Tpo .deps/p11tool-pkcs11.Po
        mv -f .deps/p11tool-certtool-common.Tpo .deps/p11tool-certtool-common.Po
        make[3]: Leaving directory '/buildstream-build/bst_build_dir/src'
        make[2]: *** [Makefile:3114: all] Error 2
        make[2]: Leaving directory '/buildstream-build/bst_build_dir/src'
        make[1]: *** [Makefile:2934: all-recursive] Error 1
        make[1]: Leaving directory '/buildstream-build/bst_build_dir'
        make: *** [Makefile:2859: all] Error 2
        Command 'if [ -n "bst_build_dir" ]; then
          cd bst_build_dir
        fi
        make ' failed with exitcode 2
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1804
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/sent_notifications/3-a7jh2z04rt88rkliyk93xulyt/unsubscribe | Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
Gnutls-devel mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.