All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] ltp-testsuite: build failures of upcoming release
@ 2022-05-20 19:59 Petr Vorel
  0 siblings, 0 replies; only message in thread
From: Petr Vorel @ 2022-05-20 19:59 UTC (permalink / raw)
  To: Fabrice Fontaine
  Cc: Peter, Yann E. MORIN, Thomas Petazzoni, Buildroot Mailing List

Hi Fabrice, all,

upcoming LTP release fails on newly added KVM tests [1]

* bootlin-x86-64-glibc [25/45]: FAILED
* bootlin-x86-64-musl [26/45]: FAILED
br-test-pkg/bootlin-x86-64-glibc/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/11.2.0/../../../../x86_64-buildroot-linux-gnu/bin/ld: /tmp/ccMDUPOo.o: in function `handle_page_fault':
kvm_pagefault01.c:(.text+0x5d): undefined reference to `__stack_chk_fail'
collect2: error: ld returned 1 exit status
make[4]: *** [br-test-pkg/bootlin-x86-64-glibc/build/ltp-testsuite-6dd6876ff063ea77a6c626dc8b278609746aff5f/testcases/kernel/kvm/Makefile:55: kvm_pagefault01-payload.o] Error 1

$ cd testcases/kernel/kvm/ && make V=1 kvm_pagefault01
/home/pvorel/br-test-pkg/bootlin-x86-64-glibc/host/bin/x86_64-linux-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/home/pvorel/br-test-pkg/bootlin-x86-64-glibc/build/ltp-testsuite-6dd6876ff063ea77a6c626dc8b278609746aff5f/testcases/kernel/kvm/include -I../../../include -I../../../include -I../../../include/old/ -DCOMPILE_PAYLOAD -ffreestanding -O2 -Wall -fno-asynchronous-unwind-tables -mno-mmx -mno-sse -fno-pie -nostdlib -Wl,--build-id=none -no-pie -Wl,-T/home/pvorel/br-test-pkg/bootlin-x86-64-glibc/build/ltp-testsuite-6dd6876ff063ea77a6c626dc8b278609746aff5f/testcases/kernel/kvm/linker/x86_64.lds -o kvm_pagefault01-payload.elf kvm_pagefault01.c lib_guest.o bootstrap_x86_64.o lib_x86.o
/home/pvorel/br-test-pkg/bootlin-x86-64-glibc/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/11.2.0/../../../../x86_64-buildroot-linux-gnu/bin/ld: /tmp/ccFuAviL.o: in function `handle_page_fault':
kvm_pagefault01.c:(.text+0x5d): undefined reference to `__stack_chk_fail'
collect2: error: ld returned 1 exit status
make: *** [Makefile:51: kvm_pagefault01-payload.o] Error 1


* br-i386-pentium-mmx-musl [31/45]: FAILED
* br-i386-pentium4-full [32/45]: FAILED
br-test-pkg/br-i386-pentium-mmx-musl/host/opt/ext-toolchain/bin/../lib/gcc/i586-buildroot-linux-musl/9.3.0/../../../../i586-buildroot-linux-musl/bin/ld: i386:x86-64 architecture of input file `bootstrap_x86.o' is incompatible with i386 output
collect2: error: ld returned 1 exit status

$ cd testcases/kernel/kvm/ && make V=1
br-test-pkg/br-i386-pentium4-full/host/bin/i686-linux-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FORTIFY_SOURCE=2 -Ibr-test-pkg/br-i386-pentium4-full/build/ltp-testsuite-6dd6876ff063ea77a6c626dc8b278609746aff5f/testcases/kernel/kvm/include -I../../../include -I../../../include -I../../../include/old/ -DCOMPILE_PAYLOAD -ffreestanding -O2 -Wall -fno-asynchronous-unwind-tables -mno-mmx -mno-sse -fno-pie -nostdlib -Wl,--build-id=none -no-pie -Wl,-Tbr-test-pkg/br-i386-pentium4-full/build/ltp-testsuite-6dd6876ff063ea77a6c626dc8b278609746aff5f/testcases/kernel/kvm/linker/x86.lds -o kvm_pagefault01-payload.elf kvm_pagefault01.c lib_guest.o bootstrap_x86.o lib_x86.o
br-test-pkg/br-i386-pentium4-full/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-uclibc/9.3.0/../../../../i686-buildroot-linux-uclibc/bin/ld: i386:x86-64 architecture of input file `bootstrap_x86.o' is incompatible with i386 output

HOST_CPU is x86, which should be correct. Is this a bug in Makefile [2] which
might expect only 32bit build on x86_64, not real 32bit toolchain?

Thanks for any hint what could be wrong.

Kind regards,
Petr

[1] https://github.com/linux-test-project/ltp/blob/6dd6876ff063ea77a6c626dc8b278609746aff5f/testcases/kernel/kvm/kvm_pagefault01.c
[2] https://github.com/linux-test-project/ltp/blob/6dd6876ff063ea77a6c626dc8b278609746aff5f/testcases/kernel/kvm/Makefile
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-20 19:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 19:59 [Buildroot] ltp-testsuite: build failures of upcoming release Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.