Closed jiriks74 closed 3 years ago
I need help compiling on my rpi 4 running raspbian 64bit.
This package provided files intended for you to place on your x86_64 box that match the Arch ARM project's toolchain.
Like I said, client is Raspberry Pi 4, with Raspberry Pi OS (64bit) and volunteer is x86_64 pc (Ryzen 5 3600, 16GB RAM) running Archlinux
I have never tried using RPiOS to do this. I would expect that their toolchain is different from Arch ARM's. Do you have a spare uSD card? Try it on Arch ARM.
I should have one laying around, I'll try that tomorrow. It's late here and I need to get some sleep.
@graysky2
It works on Archlinux. Now I managed to get further on Raspberry Pi OS (Debian). If I set these env variables CC=/usr/lib/distcc/aarch64-linux-gnu-gcc CXX=/usr/lib/distcc/aarch64-linux-gnu-g++
(e.g. running make
like this make -j11 Image modules dtbs CC=/usr/lib/distcc/aarch64-linux-gnu-gcc CXX=/usr/lib/distcc/aarch64-linux-gnu-g++
) I get this in a log on my volunteer:
distccd[7872] (dcc_check_client) connection from 10.243.12.5:48666
distccd[7890] (dcc_check_client) connection from 10.243.12.5:48668
distccd[7872] compile from empty.c to empty.o
distccd[7890] compile from devicetable-offsets.c to devicetable-offsets.s
distccd[7872] (dcc_r_file_timed) 1033 bytes received in 0.002326s, rate 434kB/s
distccd[7872] (dcc_check_compiler_whitelist) CRITICAL! aarch64-linux-gnu-gcc not in /usr/lib/distcc or /usr/lib/distcc whitelist.
distccd[7872] (dcc_job_summary) client: 10.243.12.5:48666 OTHER exit:0 sig:0 core:0 ret:0 time:3ms
distccd[7890] (dcc_r_file_timed) 63194 bytes received in 0.005350s, rate 11535kB/s
distccd[7890] (dcc_check_compiler_whitelist) CRITICAL! aarch64-linux-gnu-gcc not in /usr/lib/distcc or /usr/lib/distcc whitelist.
distccd[7890] (dcc_job_summary) client: 10.243.12.5:48668 OTHER exit:0 sig:0 core:0 ret:0 time:6ms
The daemon PATH
has the /opt/x-tools8/aarch64-unknown-linux-gnu/bin/
set as first directory.
I do not know RPiOS but I think you would need a matched toolchain (ie their toolchain).
Would copying your toolchain to /opt
on RPIOS and using that work?
I do not know. Arch ARM's toolchain is not the same. They need to be matched as far as I know. Either use Arch ARM or RPiOS.
I installded aarch64-linux-gnu-gcc
on my arch volunteer, but it still didn't work. I got version aarch64-linux-gnu-gcc (GCC) 11.2.0
but on RPIOS it was aarch64-linux-gnu-gcc (GCC) 8.3.0
, so I downgraded it to same version and it looks like it works now.
I also had to run update-distcc-symlinks
so it would appear in /usr/lib/distcc
OK. Safe to close this I think.
Hi, I need help compiling on my rpi 4 running raspbian 64bit. I try to compile the 64bit kernel.
I installed distcc, set path to
/usr/lib/distcc/:$PATH
in/etc/profile/
so everything would use distcc, in/etc/distcc/hosts
i deleted+zeroconf
and added10.243.12.5:3636
.On my Archlinux desktop I installed your package (
distccd-alarm-armv8
as I compile 64bit), edited/etc/default/distccd-armv8
toThen I started the service
distccd-armv8.service
.Now when I try to compile, everything errors out. On my host (volunteer) I have this in my log:
Then on my rpi 4 follow this, download the kernel, configure it for rpi4 64bit and try to compile it
make -j11 Image modules dtbs
Any idea why that wouldn't work?