Hi all, Today I tried transferring my QEMU development setup from my laptop onto a faster desktop machine (Intel i7-6700) and was surprised to find my normal "full" build script failing:
./configure --target-list='x86_64-softmmu sparc64-softmmu sparc-softmmu ppc-softmmu arm-softmmu' --prefix=/home/build/rel-qemu-git make V=1 -j2 install Things start to go wrong around here: cc -iquote /home/build/src/qemu/git/qemu/hw/i386/kvm -iquote hw/i386/kvm -iquote /home/build/src/qemu/git/qemu/tcg -iquote /home/build/src/qemu/git/qemu/tcg/i386 -I/home/build/src/qemu/git/qemu/linux-headers -I/home/build/src/qemu/git/qemu/linux-headers -iquote . -iquote /home/build/src/qemu/git/qemu -iquote /home/build/src/qemu/git/qemu/accel/tcg -iquote /home/build/src/qemu/git/qemu/include -I/usr/include/pixman-1 -I/home/build/src/qemu/git/qemu/dtc/libfdt -Werror -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -std=gnu99 -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/home/build/src/qemu/git/qemu/capstone/include -I../linux-headers -iquote .. -iquote /home/build/src/qemu/git/qemu/target/i386 -DNEED_CPU_H -iquote /home/build/src/qemu/git/qemu/include -MMD -MP -MT hw/i386/kvm/i8259.o -MF hw/i386/kvm/i8259.d -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g -c -o hw/i386/kvm/i8259.o /home/build/src/qemu/git/qemu/hw/i386/kvm/i8259.c exec.o: In function `reclaim_ramblock': /home/build/src/qemu/git/qemu/exec.c:2471: undefined reference to `qemu_ram_munmap' /home/build/src/qemu/git/qemu/exec.c:2475: undefined reference to `qemu_anon_ram_free' exec.o: In function `cpu_notify_map_clients_locked': /home/build/src/qemu/git/qemu/exec.c:3579: undefined reference to `qemu_bh_schedule' exec.o: In function `mtree_print_phys_entries': /home/build/src/qemu/git/qemu/exec.c:4169: undefined reference to `qemu_printf' /home/build/src/qemu/git/qemu/exec.c:4171: undefined reference to `qemu_printf' /home/build/src/qemu/git/qemu/exec.c:4177: undefined reference to `qemu_printf' /home/build/src/qemu/git/qemu/exec.c:4175: undefined reference to `qemu_printf' /home/build/src/qemu/git/qemu/exec.c:4167: undefined reference to `qemu_printf' exec.o:/home/build/src/qemu/git/qemu/exec.c:4173: more undefined references to `qemu_printf' follow exec.o: In function `rcu_read_lock': /home/build/src/qemu/git/qemu/include/qemu/rcu.h:82: undefined reference to `rcu_gp_ctr' /home/build/src/qemu/git/qemu/include/qemu/rcu.h:83: undefined reference to `rcu_reader' exec.o: In function `rcu_read_unlock': /home/build/src/qemu/git/qemu/include/qemu/rcu.h:93: undefined reference to `rcu_reader' /home/build/src/qemu/git/qemu/include/qemu/rcu.h:109: undefined reference to `rcu_gp_event' exec.o: In function `rcu_read_lock': /home/build/src/qemu/git/qemu/include/qemu/rcu.h:78: undefined reference to `rcu_reader' exec.o: In function `cpu_physical_memory_set_dirty_range': /home/build/src/qemu/git/qemu/include/exec/ram_addr.h:293: undefined reference to `bitmap_set_atomic' /home/build/src/qemu/git/qemu/include/exec/ram_addr.h:297: undefined reference to `bitmap_set_atomic' /home/build/src/qemu/git/qemu/include/exec/ram_addr.h:301: undefined reference to `bitmap_set_atomic' exec.o: In function `qemu_ram_setup_dump': /home/build/src/qemu/git/qemu/exec.c:2020: undefined reference to `qemu_madvise' exec.o: In function `cpu_physical_memory_range_includes_clean': /home/build/src/qemu/git/qemu/include/exec/ram_addr.h:236: undefined reference to `rcu_reader' exec.o: In function `cpu_physical_memory_all_dirty': /home/build/src/qemu/git/qemu/include/exec/ram_addr.h:190: undefined reference to `find_next_zero_bit' exec.o: In function `rcu_read_lock': /home/build/src/qemu/git/qemu/include/qemu/rcu.h:78: undefined reference to `rcu_reader' exec.o: In function `cpu_physical_memory_all_dirty': /home/build/src/qemu/git/qemu/include/exec/ram_addr.h:190: undefined reference to `find_next_zero_bit' exec.o: In function `rcu_read_lock': /home/build/src/qemu/git/qemu/include/qemu/rcu.h:78: undefined reference to `rcu_reader' exec.o: In function `cpu_physical_memory_all_dirty': /home/build/src/qemu/git/qemu/include/exec/ram_addr.h:190: undefined reference to `find_next_zero_bit' exec.o: In function `rcu_read_lock': /home/build/src/qemu/git/qemu/include/qemu/rcu.h:78: undefined reference to `rcu_reader' exec.o: In function `rcu_read_unlock': /home/build/src/qemu/git/qemu/include/qemu/rcu.h:109: undefined reference to `rcu_gp_event' exec.o: In function `rcu_read_lock': /home/build/src/qemu/git/qemu/include/qemu/rcu.h:82: undefined reference to `rcu_gp_ctr' /home/build/src/qemu/git/qemu/include/qemu/rcu.h:78: undefined reference to `rcu_reader' /home/build/src/qemu/git/qemu/include/qemu/rcu.h:78: undefined reference to `rcu_reader' exec.o: In function `cpu_physical_memory_test_and_clear_dirty': /home/build/src/qemu/git/qemu/exec.c:1378: undefined reference to `bitmap_test_and_clear_atomic' exec.o: In function `rcu_read_unlock': /home/build/src/qemu/git/qemu/include/qemu/rcu.h:93: undefined reference to `rcu_reader' /home/build/src/qemu/git/qemu/include/qemu/rcu.h:94: undefined reference to `rcu_reader' /home/build/src/qemu/git/qemu/include/qemu/rcu.h:107: undefined reference to `rcu_reader' /home/build/src/qemu/git/qemu/include/qemu/rcu.h:108: undefined reference to `rcu_reader' /home/build/src/qemu/git/qemu/include/qemu/rcu.h:109: undefined reference to `rcu_gp_event' /home/build/src/qemu/git/qemu/include/qemu/rcu.h:109: undefined reference to `qemu_event_set' exec.o: In function `rcu_read_lock': /home/build/src/qemu/git/qemu/include/qemu/rcu.h:82: undefined reference to `rcu_gp_ctr' exec.o: In function `cpu_exec_initfn': /home/build/src/qemu/git/qemu/exec.c:958: undefined reference to `qemu_get_thread_id' exec.o: In function `parse_cpu_option': /home/build/src/qemu/git/qemu/exec.c:1011: undefined reference to `error_fatal' /home/build/src/qemu/git/qemu/exec.c:998: undefined reference to `error_report' /home/build/src/qemu/git/qemu/exec.c:1004: undefined reference to `error_report' exec.o: In function `rcu_read_lock': For reference I've uploaded the full build output to https://www.ilande.co.uk/tmp/qemu/qemu-parallel-make-fail.txt. I've also confirmed that the build completes fine when removing the -j parameter from the make incantation above. ATB, Mark.