From: Petr Vorel <petr.vorel@gmail.com>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Peter@pevik, "Yann E. MORIN" <yann.morin.1998@free.fr>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Buildroot Mailing List <buildroot@buildroot.org>
Subject: [Buildroot] ltp-testsuite: build failures of upcoming release
Date: Fri, 20 May 2022 21:59:37 +0200 [thread overview]
Message-ID: <YofzKdQAUOnR2gSW@pevik> (raw)
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
reply other threads:[~2022-05-20 19:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YofzKdQAUOnR2gSW@pevik \
--to=petr.vorel@gmail.com \
--cc=Peter@pevik \
--cc=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.