FS#66613 - [linux] [distcc] cannot build

Attached to Project: Arch Linux
Opened by John (graysky) - Monday, 11 May 2020, 15:01 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 04 May 2021, 12:37 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When I try building the linux package with [testing] enabled (using gcc-10.1.0-1 et al currently) using distcc, the build ends in an error. Complete log attached. Building without distcc ends in a successful build.

Note one must modify the PKGBUILD substituting `make all` with `make all CC=distcc CXX=distcc` or makepkg does not use distcc. As an aside, building with this modified line works as expected for previous kernel versions with gcc-9.3.0-x.

This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 04 May 2021, 12:37 GMT
Reason for closing:  None
Additional comments about closing:  see last comment
Comment by John (graysky) - Monday, 11 May 2020, 15:01 GMT
Log attached
Comment by John (graysky) - Monday, 11 May 2020, 15:19 GMT
I repeated the compilation step by hand (no makepkg) and found that it completed but ended in error code 2 which is I think what is breaking makepkg. Please see attached log. If I grep ERROR out of it, compilation fails on kvm_main.c here. I tried this 3 times now and in all 3 cases, the dies trying to build this file.

% zgrep ERROR compile_by_hand.log.gz
distcc[2378678] ERROR: compile arch/x86/kvm/../../../virt/kvm/kvm_main.c on 10.9.8.112/9 failed
distcc[2381762] ERROR: compile (null) on localhost failed
distcc[2378678] ERROR: compile arch/x86/kvm/../../../virt/kvm/kvm_main.c on localhost failed
distcc[2433709] ERROR: compile kernel/configs.c on 10.9.8.112/9 failed
Comment by John (graysky) - Monday, 11 May 2020, 17:02 GMT
I get the same issue building linux-mainline from the AUR (makepkg or by hand).
Comment by god geu (ghodgeuk) - Monday, 11 May 2020, 17:52 GMT Comment by John (graysky) - Monday, 11 May 2020, 19:14 GMT
@ghodgeuk - Thanks for pointing me to that patch. Per the comments on the patch which seems to be rejected upstream, I opted to modify the Arch config like this which built successfully. You can add this to the PKGBUILD:
sed -i -e 's/CONFIG_KVM_WERROR=y/# CONFIG_KVM_WERROR is not set/' ./.config

Perhaps @heftig wants to modify the config? Not sure what the "best" fix for the problem is honestly.
Comment by god geu (ghodgeuk) - Monday, 11 May 2020, 22:40 GMT
I decided on such a solution.
https://lore.kernel.org/lkml/20200508090202.7s3kcqpvpxx32syu%40butterfly.localdomain/T/#md49de21694c43ed195175284b2481fde96890552

>imply CC_DISABLE_WARN_MAYBE_UNINITIALIZED # avoid false positives
Comment by Jan Alexander Steffens (heftig) - Monday, 11 May 2020, 23:38 GMT
I don't consider distcc a supported configuration as the GCC plugins do not work. Otherwise this error would be suppressed by the structleak initialization.
Comment by John (graysky) - Saturday, 06 March 2021, 11:07 GMT
Probably safe to close. Solution to building linux kernel in a clean chroot is to add the following line to the PKGBUILD before building:

sed -i '/HAVE_GCC_PLUGINS/d' arch/x86/Kconfig

Loading...