"Jason A. Donenfeld" <ja...@zx2c4.com> writes: > On Tue, Oct 11, 2022 at 12:44:20PM +1100, Michael Ellerman wrote: >> "Jason A. Donenfeld" <ja...@zx2c4.com> writes: >> > Hi Andrew, >> > >> > On Tue, Oct 11, 2022 at 11:00:15AM +1100, Andrew Donnellan wrote: >> >> Thanks for bisecting, this is interesting! Could you provide your >> >> .config and the environment you're running in? Your reproducer doesn't >> >> seem to trigger it on my baremetal POWER8 pseries_le_defconfig. >> > >> > Sure. >> > >> > .config: https://xn--4db.cc/NemFt2Vs (change CONFIG_INITRAMFS_SOURCE) >> > Toolchain: >> > https://download.wireguard.com/qemu-test/toolchains/20211123/powerpc-linux-musl-cross.tgz >> > >> > You can also just run: >> > >> > ARCH=powerpc make -C tools/testing/selftests/wireguard/qemu -j$(nproc) >> > >> > And that'll assemble the whole thing. >> >> I tried that :) >> >> What host OS are you running that on? >> >> I get: >> >> mkdir -p >> /scratch/michael/linus/tools/testing/selftests/wireguard/qemu/build/powerpc >> powerpc-linux-musl-gcc -o >> /scratch/michael/linus/tools/testing/selftests/wireguard/qemu/build/powerpc/init >> -O3 -pipe -std=gnu11 init.c >> >> /scratch/michael/linus/tools/testing/selftests/wireguard/qemu/build/powerpc/powerpc-linux-musl-cross/bin/../lib/gcc/powerpc-linux-musl/11.2.1/../../../../powerpc-linux-musl/bin/ld: >> cannot find Scrt1.o: No such file or directory >> >> /scratch/michael/linus/tools/testing/selftests/wireguard/qemu/build/powerpc/powerpc-linux-musl-cross/bin/../lib/gcc/powerpc-linux-musl/11.2.1/../../../../powerpc-linux-musl/bin/ld: >> cannot find crti.o: No such file or directory >> >> /scratch/michael/linus/tools/testing/selftests/wireguard/qemu/build/powerpc/powerpc-linux-musl-cross/bin/../lib/gcc/powerpc-linux-musl/11.2.1/../../../../powerpc-linux-musl/bin/ld: >> cannot find crtbeginS.o: No such file or directory >> >> /scratch/michael/linus/tools/testing/selftests/wireguard/qemu/build/powerpc/powerpc-linux-musl-cross/bin/../lib/gcc/powerpc-linux-musl/11.2.1/../../../../powerpc-linux-musl/bin/ld: >> cannot find -lgcc >> >> /scratch/michael/linus/tools/testing/selftests/wireguard/qemu/build/powerpc/powerpc-linux-musl-cross/bin/../lib/gcc/powerpc-linux-musl/11.2.1/../../../../powerpc-linux-musl/bin/ld: >> cannot find -lgcc >> collect2: error: ld returned 1 exit status > > Here's what happened: > > - You started the thing and the kernel compile complained about an > unclean tree. > - You ran mrproper. > - You tried to run the thing again. > > amirite?
I think so yeah. I tried it on 3 different machines so I'm not sure exactly what I did where, but I definitely ran mrproper on one of them. > If so, what happened is that mrproper deleted the .o files from the > toolchain. Solution: > > ARCH=powerpc make -C tools/testing/selftests/wireguard/qemu -j$(nproc) clean > ARCH=powerpc make -C tools/testing/selftests/wireguard/qemu -j$(nproc) > > Let me know how that goes. Yep that works thanks. And I see the iperf failure. Though I still can't see what the bug is, but hopefully if I stare at it longer I'll work it out. cheers