Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#64275 - [devtools] [distcc] compiling linux with distcc using makepkg fails to distribute jobs
Attached to Project:
Arch Linux
Opened by John (graysky) - Saturday, 26 October 2019, 16:02 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 04 May 2021, 16:00 GMT
Opened by John (graysky) - Saturday, 26 October 2019, 16:02 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 04 May 2021, 16:00 GMT
|
DetailsCompiling the linux package (5.3.7-arch1-2-ARCH) via makepkg with distcc enabled in /etc/makepkg.conf fails to distribute out jobs via distcc as it should. By contrast, I can compile the linux source without makepkg using distcc and jobs are distrubuted out via distcc as expected.
I am thinking that there must be something in makepkg itself or within its helper scripts that is causing the failure. I am not expert but it seem that /usr/share/makepkg/buildenv/compiler.sh is asking the build to use distcc via a PATH modification which could be to blame. For example, to mimic makepkg's call to distcc I did this experiment from the shell and confirmed that it does NOT work with distcc: % export DISTCC_HOSTS="localhost/9 10.9.8.112/5" % export PATH="/usr/lib/distcc/bin:$PATH" % make -j15 bzImage By contrast, from the distcc man page, I used this stanza and it does work as expected: % export DISTCC_HOSTS="localhost/9 10.9.8.112/5" % make -j15 bzImage CC=distcc I attached: * The makepkg.conf I am using * A log showing the errors from the makepkg build * A distccd log on the volunteer machine also showing errors that are not present when building without makepkg Please let me know what else I can provide. |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Tuesday, 04 May 2021, 16:00 GMT
Reason for closing: None
Additional comments about closing: see comments
Tuesday, 04 May 2021, 16:00 GMT
Reason for closing: None
Additional comments about closing: see comments
makepkg-distcc.conf
-make bzImage modules htmldocs
+make bzImage modules htmldocs CC=distcc CXX=distcc
According to the distcc man page, one should pass the CC=distcc variable as part of the build command[1].
1. https://github.com/distcc/distcc/blob/master/man/distcc.1#L116
sed -i '/HAVE_GCC_PLUGINS/d' arch/x86/Kconfig