* test failure with LTO still present
@ 2024-01-22 9:45 Andreas Radke
2024-01-22 15:10 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Radke @ 2024-01-22 9:45 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 1612 bytes --]
When building the Arch Linux package with lto enabled we are still
getting this old failure here:
PASS: unit/test-eap-sim
CC unit/test-sae.o
CCLD unit/test-sae
/usr/bin/ld: /tmp/cc7oo1S0.ltrans0.ltrans.o: in function `sae_choose_next_group':
/usr/src/debug/iwd/iwd-2.13/src/sae.c:153:(.text+0xb9b): undefined reference to `__wrap_l_ecc_supported_ike_groups'
/usr/bin/ld: /tmp/cc7oo1S0.ltrans0.ltrans.o: in function `sae_rx_authenticate':
/usr/src/debug/iwd/iwd-2.13/src/sae.c:197:(.text+0x2e21): undefined reference to `__wrap_l_ecc_supported_ike_groups'
/usr/bin/ld: /tmp/cc7oo1S0.ltrans0.ltrans.o: in function `handshake_state_free':
/usr/src/debug/iwd/iwd-2.13/src/handshake.c:49:(.text+0x3455): undefined reference to `__wrap_l_ecc_supported_ike_groups'
/usr/bin/ld: /tmp/cc7oo1S0.ltrans0.ltrans.o:/usr/src/debug/iwd/iwd-2.13/src/handshake.c:49:(.text+0x3491): undefined reference to `__wrap_l_ecc_supported_ike_groups'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:2279: unit/test-sae] Error 1
make[2]: *** [Makefile:3016: check-TESTS] Error 2
make[1]: *** [Makefile:3366: check-am] Error 2
make: *** [Makefile:3368: check] Error 2
This seems to be the same error reported to the iwd list here:
https://lore.kernel.org/iwd/c4b50311-84ab-236a-e3cd-49371a9d7eb4@gmail.com/T/#mbe4525effbbcde51a291ece026da1a25ecbfcbc4
and also Debian and Gentoo seems to be affected as well:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015432
https://bugs.gentoo.org/877755
Is there any way to solve this other than to disable lto?
-Andy
Arch Linux
[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: test failure with LTO still present
2024-01-22 9:45 test failure with LTO still present Andreas Radke
@ 2024-01-22 15:10 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2024-01-22 15:10 UTC (permalink / raw)
To: Andreas Radke, iwd
Hi Andreas,
On 1/22/24 03:45, Andreas Radke wrote:
> When building the Arch Linux package with lto enabled we are still
> getting this old failure here:
>
> PASS: unit/test-eap-sim
> CC unit/test-sae.o
> CCLD unit/test-sae
> /usr/bin/ld: /tmp/cc7oo1S0.ltrans0.ltrans.o: in function `sae_choose_next_group':
> /usr/src/debug/iwd/iwd-2.13/src/sae.c:153:(.text+0xb9b): undefined reference to `__wrap_l_ecc_supported_ike_groups'
> /usr/bin/ld: /tmp/cc7oo1S0.ltrans0.ltrans.o: in function `sae_rx_authenticate':
> /usr/src/debug/iwd/iwd-2.13/src/sae.c:197:(.text+0x2e21): undefined reference to `__wrap_l_ecc_supported_ike_groups'
> /usr/bin/ld: /tmp/cc7oo1S0.ltrans0.ltrans.o: in function `handshake_state_free':
> /usr/src/debug/iwd/iwd-2.13/src/handshake.c:49:(.text+0x3455): undefined reference to `__wrap_l_ecc_supported_ike_groups'
> /usr/bin/ld: /tmp/cc7oo1S0.ltrans0.ltrans.o:/usr/src/debug/iwd/iwd-2.13/src/handshake.c:49:(.text+0x3491): undefined reference to `__wrap_l_ecc_supported_ike_groups'
> collect2: error: ld returned 1 exit status
> make[3]: *** [Makefile:2279: unit/test-sae] Error 1
> make[2]: *** [Makefile:3016: check-TESTS] Error 2
> make[1]: *** [Makefile:3366: check-am] Error 2
> make: *** [Makefile:3368: check] Error 2
>
>
> This seems to be the same error reported to the iwd list here:
> https://lore.kernel.org/iwd/c4b50311-84ab-236a-e3cd-49371a9d7eb4@gmail.com/T/#mbe4525effbbcde51a291ece026da1a25ecbfcbc4
>
> and also Debian and Gentoo seems to be affected as well:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015432
> https://bugs.gentoo.org/877755
>
> Is there any way to solve this other than to disable lto?
>
We hack into and overload ell's l_ecc_supported_ike_groups() for the purposes of
this test. This solution is non-invasive to ell and works great on non-LTO
builds, but doesn't work with LTO. Short of introducing private methods into
ell for overriding default behavior, I'm not sure what the solution is.
[1] https://git.kernel.org/pub/scm/libs/ell/ell.git/tree/ell/ecc.c#n98
[2] https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/unit/test-sae.c#n41
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-22 15:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-22 9:45 test failure with LTO still present Andreas Radke
2024-01-22 15:10 ` Denis Kenzior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox