Hi Alberto, Any ideas why libfiu fails to build with -flto=auto -ffat-lto-objects (etc.) enabled?
Best wishes, Chris > The full build log can be found at: > http://qa-logs.debian.net/2022/06/09/dpkglto/libfiu_1.1-1_unstable_dpkglto.log > The last lines of the build log are at the end of this report. > > [...] > make[4]: Entering directory '/<<PKGBUILDDIR>>/tests/utils' > cc -I../../libfiu/ -L../../libfiu/ -L./ -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 -shared -fPIC libcoltest.c -o > libcoltest.so > mkdir -p libs/ > ./generate-test -c tests/fprintf.conf -o tests/fprintf.c > ln -f ../../preload/posix/fiu_posix_preload.so libs/ > ./generate-test -c tests/fread.conf -o tests/fread.c > ln -f ../../preload/run/fiu_run_preload.so libs/ > ./generate-test -c tests/kill.conf -o tests/kill.c > LD_LIBRARY_PATH=../../libfiu/ ./test-basic_ctrl.py > > output-test-basic_ctrl.py.txt 2>&1 > ./generate-test -c tests/malloc.conf -o tests/malloc.c > ./generate-test -c tests/mmap.conf -o tests/mmap.c > ./generate-test -c tests/open.conf -o tests/open.c > ./generate-test -c tests/open64.conf -o tests/open64.c > LD_LIBRARY_PATH=../../libfiu/ ./test-basic_run.sh > > output-test-basic_run.sh.txt 2>&1 > ./generate-test -c tests/pread.conf -o tests/pread.c > ./generate-test -c tests/pread64.conf -o tests/pread64.c > ./generate-test -c tests/strdup.conf -o tests/strdup.c > 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/fopen.c -lfiu -o tests/fopen.bin > 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/fprintf.c -lfiu -o tests/fprintf.bin > cc -I../../libfiu/ -L../../libfiu/ -L./ -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 -L. binary.c -lfiu -lcoltest > -o binary > 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/fread.c -lfiu -o tests/fread.bin > ln -f ../preload/posix/fiu_posix_preload.so libs/ > ln -f ../preload/run/fiu_run_preload.so libs/ > 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/kill.c -lfiu -o tests/kill.bin > 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 \ > -rdynamic -fno-optimize-sibling-calls test-enable_stack.c -lfiu > -lpthread -o test-enable_stack > 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/malloc.c -lfiu -o tests/malloc.bin > test-enable_stack.c: In function 'main': > test-enable_stack.c:32:50: warning: ISO C forbids conversion of > function pointer to object pointer type [-Wpedantic] > 32 | r = fiu_enable_stack("fp-1", 1, NULL, 0, (void *) > &func2, -1); > | ^ > LD_LIBRARY_PATH="./:../../libfiu/" ./binary > make[4]: Leaving directory '/<<PKGBUILDDIR>>/tests/collisions' > 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 \ > -rdynamic -fno-optimize-sibling-calls test-enable_stack_by_name.c > -lfiu -lpthread -o test-enable_stack_by_name > 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/mmap.c -lfiu -o tests/mmap.bin > 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/open.c -lfiu -o tests/open.bin > 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/open64.c -lfiu -o tests/open64.bin > 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 test-ferror.c -lfiu > -lpthread -o test-ferror > 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/pread.c -lfiu -o tests/pread.bin > 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/pread64.c -lfiu -o tests/pread64.bin > 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. > Aborted > make[3]: *** [Makefile:74: c-run-test-enable_stack] Error 134 > make[3]: *** Waiting for unfinished jobs.... > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/fopen.bin > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/fprintf.bin > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/fread.bin > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/kill.bin > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/malloc.bin > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/mmap.bin > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/open.bin > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/open64.bin > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/pread.bin > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/pread64.bin > LD_LIBRARY_PATH=../../libfiu/ > LD_PRELOAD="../../preload/run/fiu_run_preload.so > ../../preload/posix/fiu_posix_preload.so" ./tests/strdup.bin > rm tests/fprintf.bin tests/malloc.bin tests/kill.bin tests/open.bin > tests/fread.bin tests/strdup.bin tests/open64.bin tests/mmap.bin > tests/fopen.bin tests/pread64.bin tests/pread.bin > make[4]: Leaving directory '/<<PKGBUILDDIR>>/tests/generated' > make[4]: Leaving directory '/<<PKGBUILDDIR>>/tests/utils' > rm test-enable_stack_by_name test-ferror test-enable_stack > make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests' > make[2]: *** [Makefile:58: test] Error 2 > make[2]: Leaving directory '/<<PKGBUILDDIR>>' > dh_auto_test: error: make -j8 test V=1 LC_ALL=C returned exit code 2 > make[1]: *** [debian/rules:33: override_dh_auto_test] Error 25 > make[1]: Leaving directory '/<<PKGBUILDDIR>>' > make: *** [debian/rules:13: binary] Error 2 > dpkg-buildpackage: error: debian/rules binary subprocess returned exit > status 2 -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org 🍥 chris-lamb.co.uk `-