https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104363
Bug ID: 104363 Summary: hppa: __asm__ directive .global and multiple .symver not supported Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mathieu.malaterre at gmail dot com Target Milestone: --- It looks like there is a regression on gcc/11 branch on hppa. Steps using gcc-10 (Debian/buster): % sudo apt-get install g++-hppa-linux-gnu % wget http://www.chronox.de/libkcapi/libkcapi-1.3.1.tar.xz % tar xf libkcapi-1.3.1.tar.xz % cd libkcapi-1.3.1 % autoreconf -i % ./configure --host=hppa-linux-gnu --build=x86_64-linux-gnu --enable-kcapi-rngapp % make -j8 => success ! Compare now on Debian/sid: % sudo apt-get install g++-hppa-linux-gnu % wget http://www.chronox.de/libkcapi/libkcapi-1.3.1.tar.xz % tar xf libkcapi-1.3.1.tar.xz % cd libkcapi-1.3.1 % autoreconf -i % ./configure --host=hppa-linux-gnu --build=x86_64-linux-gnu --enable-kcapi-rngapp % make -j8 /bin/bash ./libtool --tag=CC --mode=link hppa-linux-gnu-gcc -g -O2 -fpie -fPIE -DPIE -Wl,-z,relro,-z,now -pie -o bin/kcapi-rng apps/bin_kcapi_rng-kcapi-rng.o apps/bin_kcapi_rng-app-internal.o libkcapi.la libtool: link: hppa-linux-gnu-gcc -g -O2 -fpie -fPIE -DPIE -Wl,-z -Wl,relro -Wl,-z -Wl,now -pie -o bin/.libs/kcapi-rng apps/bin_kcapi_rng-kcapi-rng.o apps/bin_kcapi_rng-app-internal.o ./.libs/libkcapi.so /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: apps/bin_kcapi_rng-kcapi-rng.o: in function `main': /tmp/libkcapi-1.3.1/apps/kcapi-rng.c:302: undefined reference to `kcapi_rng_generate' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: /tmp/libkcapi-1.3.1/apps/kcapi-rng.c:328: undefined reference to `kcapi_memset_secure' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: /tmp/libkcapi-1.3.1/apps/kcapi-rng.c:332: undefined reference to `kcapi_memset_secure' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: /tmp/libkcapi-1.3.1/apps/kcapi-rng.c:328: undefined reference to `kcapi_memset_secure' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: /tmp/libkcapi-1.3.1/apps/kcapi-rng.c:328: undefined reference to `kcapi_memset_secure' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_aead_stream_init_enc' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_cipher_stream_init_enc' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_cipher_stream_init_dec' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_cipher_encrypt' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_md_final' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_pbkdf' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_cipher_stream_op' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_cipher_decrypt' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_aead_stream_op' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_aead_stream_update_last' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_aead_stream_init_dec' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: ./.libs/libkcapi.so: undefined reference to `kcapi_md_digest' collect2: error: ld returned 1 exit status make: *** [Makefile:953: bin/kcapi-rng] Error 1 make: *** Waiting for unfinished jobs.... rm /tmp/tmp.b3eRUtQTiC