Re: [qubes-users] Re: qubes build system is fragile

2021-09-02 Thread 'awokd' via qubes-users

ludwig...@gmail.com:


/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function
`data_read':


These and subsequent errors suggest a (probably newer) package isn't 
supplying expected functions. Maybe try to build in an FC32 VM instead?


--
- don't top post
Mailing list etiquette:
- trim quoted reply to only relevant portions
- when possible, copy and paste text instead of screenshots

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/2dbe8ab2-7e9e-bfcd-ea9b-c5d2459e255e%40danwin1210.me.


[qubes-users] Re: qubes build system is fragile

2021-09-02 Thread ludwig...@gmail.com
Now I tried again:
make clean
make install-deps
make get-sources
make qubes

after a short while:

"
gcc -m64 -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall 
-Wstrict-prototypes -Wdeclaration-after-statement 
-Wno-unused-but-set-variable -Wno-unused-local-typedefs   -O2 
-fomit-frame-pointer 
-D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MP -MF 
.afl-harness.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  
-ffile-prefix-map=/home/user/rpmbuild/BUILD/xen-4.14.2/tools/fuzz/x86_instruction_emulator/../../..=.
 
-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches 
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  
-m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection 
-fcf-protection -Wno-error=declaration-after-statement 
-I/home/user/rpmbuild/BUILD/xen-4.14.2/tools/fuzz/x86_instruction_emulator/../../../tools/include
 
-D__XEN_TOOLS__ -I. afl-harness.o fuzz-emul.o x86-emulate.o cpuid.o 
wrappers.o -o afl-harness
/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function 
`data_read':
/usr/include/bits/string_fortified.h:29: undefined reference to 
`emul_memcpy'
/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function 
`data_read':
/usr/include/bits/stdio2.h:110: undefined reference to `emul_putchar'
/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function 
`fuzz_read_msr':
/usr/include/bits/stdio2.h:110: undefined reference to `emul_puts'
/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function 
`dump_state':
/usr/include/bits/stdio2.h:110: undefined reference to `emul_puts'
/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function 
`check_state':
/usr/include/bits/stdio2.h:110: undefined reference to `emul_puts'
/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function 
`LLVMFuzzerTestOneInput.constprop.0.isra.0':
/usr/include/bits/stdio2.h:110: undefined reference to `emul_puts'
/usr/bin/ld: /usr/include/bits/stdio2.h:110: undefined reference to 
`emul_puts'
/usr/bin/ld: 
/tmp/afl-harness.R8wVcg.ltrans0.ltrans.o:/usr/include/bits/stdio2.h:110: 
more undefined references to `emul_puts' follow
/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function 
`LLVMFuzzerTestOneInput.constprop.0.isra.0':
/usr/include/bits/string_fortified.h:29: undefined reference to 
`emul_memcpy'
/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function 
`LLVMFuzzerTestOneInput.constprop.0.isra.0':
/home/user/rpmbuild/BUILD/xen-4.14.2/tools/fuzz/x86_instruction_emulator/x86_emulate/x86_emulate.c:8782:
 
undefined reference to `emul_memcmp'
/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function 
`LLVMFuzzerTestOneInput.constprop.0.isra.0':
/usr/include/bits/string_fortified.h:56: undefined reference to 
`emul_memset'
/usr/bin/ld: /usr/include/bits/string_fortified.h:29: undefined reference 
to `emul_memcpy'
/usr/bin/ld: /usr/include/bits/string_fortified.h:56: undefined reference 
to `emul_memset'
/usr/bin/ld: /usr/include/bits/string_fortified.h:56: undefined reference 
to `emul_memset'
/usr/bin/ld: /usr/include/bits/string_fortified.h:29: undefined reference 
to `emul_memcpy'
/usr/bin/ld: /tmp/afl-harness.R8wVcg.ltrans0.ltrans.o: in function `main':
/usr/include/bits/stdio2.h:110: undefined reference to `emul_puts'
collect2: error: ld returned 1 exit status
make[6]: *** [Makefile:43: afl-harness] Error 1
make[6]: Leaving directory 
'/home/user/rpmbuild/BUILD/xen-4.14.2/tools/fuzz/x86_instruction_emulator'
make[5]: *** 
[/home/user/rpmbuild/BUILD/xen-4.14.2/tools/fuzz/../../tools/Rules.mk:242: 
subdir-install-x86_instruction_emulator] Error 2
make[5]: Leaving directory '/home/user/rpmbuild/BUILD/xen-4.14.2/tools/fuzz'
make[4]: *** 
[/home/user/rpmbuild/BUILD/xen-4.14.2/tools/fuzz/../../tools/Rules.mk:237: 
subdirs-install] Error 2
make[4]: Leaving directory '/home/user/rpmbuild/BUILD/xen-4.14.2/tools/fuzz'
make[3]: *** 
[/home/user/rpmbuild/BUILD/xen-4.14.2/tools/../tools/Rules.mk:242: 
subdir-install-fuzz] Error 2
make[3]: Leaving directory '/home/user/rpmbuild/BUILD/xen-4.14.2/tools'
make[2]: *** 
[/home/user/rpmbuild/BUILD/xen-4.14.2/tools/../tools/Rules.mk:237: 
subdirs-install] Error 2
make[2]: Leaving directory '/home/user/rpmbuild/BUILD/xen-4.14.2/tools'
make[1]: *** [Makefile:72: install] Error 2
make[1]: Leaving directory '/home/user/rpmbuild/BUILD/xen-4.14.2/tools'
make: *** [Makefile:134: install-tools] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.96o9LJ (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.96o9LJ (%build)
make[2]: *** 
[/home/build/src/qubes-builder/qubes-src/builder-rpm/Makefile-legacy.rpmbuilder:66:
 
dist-package-build] Error 1
make[2]: Leaving directory '/home/build/src/qubes-builder'
make[1]: *** [Makefile.generic:191: packages] Error 1
make[1]: Leaving directory '/home/build/s