On 20 July 2022 00:18:29 GMT-06:00, Chris Lamb <la...@debian.org> wrote:
>Hi Alberto,
>
>Any ideas why libfiu fails to build with -flto=auto -ffat-lto-objects
>(etc.) enabled?

Just FYI I have extremely limited connectivity until the end of the month, so 
I'm afraid I won't have a chance to look before then :(


>> cc -I../../libfiu/ -L../../libfiu/ -D_XOPEN_SOURCE=600 -D_GNU_SOURCE 
>> -fPIC -DFIU_ENABLE=1 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
>> -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat 
>> -Werror=format-security -std=c99 -pedantic -Wall -std=c99 -pedantic 
>> -Wall tests/strdup.c -lfiu -o tests/strdup.bin
>> LD_LIBRARY_PATH=../libfiu/ 
>> LD_PRELOAD=./libs/fiu_run_preload.so:./libs/fiu_posix_preload.so 
>> ./test-enable_stack
>> test-enable_stack: test-enable_stack.c:39: main: Assertion `func2() == 
>> 1' failed.

From this it seems the issue is with the stack trace collection. If LTO is 
doing some inlining for example (which wouldn't surprise me) then it could 
cause the test to fail.

I'll look in more detail at the beginning of August.


Thank you!
        Alberto

Reply via email to