<div dir="ltr">
Hi!<br>
<br>
I have a situation where I use Debian Buster as a compiler machine for <br>
my Raspberry Pi 3, which is running Raspbian Buster. I compile on the <br>
pi, but use distcc.<br>
I've setup distcc on the pi so that it only uses my Debian machine <br>
(x86_64 running in a VM) compiles, while the pi does the rest.<br>
I'm not using plump mode. On the Debian machine I've installed the cross <br>
compiler (arm-linux-gnueabihf-gcc)<br>
<br>
The problem is that the binary is significant slower when it's compiled <br>
using distcc/cross-compiler rather than compiling the binary on the pi <br>
itself. The binary I'm compiling is Amiberry, a Amiga 500/1200/4000 <br>
emulator for the pi. And the benchmark is a FPU heavy Lighwave 3D render <br>
benchmark.<br>
If I compile Amiberry on the pi itself the benchmark scene is done in 4m <br>
34s, if using distcc I get 5m 29sec. Almost a minute slower.<br>
<br>
The only difference is distcc. I have the same CFLAGS/CXXFLAGS on both.<br>
Am I doing anything wrong?<br>
<br>
distcc version on both machines is 3.3.2-10<br>
<br>
solskogen@arm-builder-buster:~$ arm-linux-gnueabihf-gcc -v<br>
Using built-in specs.<br>
COLLECT_GCC=arm-linux-gnueabihf-gcc<br>
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/8/lto-wrapper<br>
Target: arm-linux-gnueabihf<br>
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-2' <br>
--with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs <br>
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr <br>
--with-gcc-major-version-only --program-suffix=-8 --enable-shared <br>
--enable-linker-build-id --libexecdir=/usr/lib <br>
--without-included-gettext --enable-threads=posix --libdir=/usr/lib <br>
--enable-nls --with-sysroot=/ --enable-clocale=gnu <br>
--enable-libstdcxx-debug --enable-libstdcxx-time=yes <br>
--with-default-libstdcxx-abi=new --enable-gnu-unique-object <br>
--disable-libitm --disable-libquadmath --disable-libquadmath-support <br>
--enable-plugin --enable-default-pie --with-system-zlib <br>
--with-target-system-zlib --enable-multiarch --disable-sjlj-exceptions <br>
--with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard <br>
--with-mode=thumb --disable-werror --enable-checking=release <br>
--build=x86_64-linux-gnu --host=x86_64-linux-gnu <br>
--target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- <br>
--includedir=/usr/arm-linux-gnueabihf/include<br>
Thread model: posix<br>
gcc version 8.3.0 (Debian 8.3.0-2)<br>
<br>
<br>
pi@raspberrypi:~/amiberry $ gcc -v<br>
Using built-in specs.<br>
COLLECT_GCC=gcc<br>
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/8/lto-wrapper<br>
Target: arm-linux-gnueabihf<br>
Configured with: ../src/configure -v --with-pkgversion='Raspbian <br>
8.3.0-6+rpi1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs <br>
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr <br>
--with-gcc-major-version-only --program-suffix=-8 <br>
--program-prefix=arm-linux-gnueabihf- --enable-shared <br>
--enable-linker-build-id --libexecdir=/usr/lib <br>
--without-included-gettext --enable-threads=posix --libdir=/usr/lib <br>
--enable-nls --enable-bootstrap --enable-clocale=gnu <br>
--enable-libstdcxx-debug --enable-libstdcxx-time=yes <br>
--with-default-libstdcxx-abi=new --enable-gnu-unique-object <br>
--disable-libitm --disable-libquadmath --disable-libquadmath-support <br>
--enable-plugin --with-system-zlib --with-target-system-zlib <br>
--enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions <br>
--with-arch=armv6 --with-fpu=vfp --with-float=hard --disable-werror <br>
--enable-checking=release --build=arm-linux-gnueabihf <br>
--host=arm-linux-gnueabihf --target=arm-linux-gnueabihf<br>
Thread model: posix<br>
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)<br>
pi@raspberrypi:~/amiberry $ arm-linux-gnueabihf-gcc -v<br>
Using built-in specs.<br>
COLLECT_GCC=arm-linux-gnueabihf-gcc<br>
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/8/lto-wrapper<br>
Target: arm-linux-gnueabihf<br>
Configured with: ../src/configure -v --with-pkgversion='Raspbian <br>
8.3.0-6+rpi1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs <br>
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr <br>
--with-gcc-major-version-only --program-suffix=-8 <br>
--program-prefix=arm-linux-gnueabihf- --enable-shared <br>
--enable-linker-build-id --libexecdir=/usr/lib <br>
--without-included-gettext --enable-threads=posix --libdir=/usr/lib <br>
--enable-nls --enable-bootstrap --enable-clocale=gnu <br>
--enable-libstdcxx-debug --enable-libstdcxx-time=yes <br>
--with-default-libstdcxx-abi=new --enable-gnu-unique-object <br>
--disable-libitm --disable-libquadmath --disable-libquadmath-support <br>
--enable-plugin --with-system-zlib --with-target-system-zlib <br>
--enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions <br>
--with-arch=armv6 --with-fpu=vfp --with-float=hard --disable-werror <br>
--enable-checking=release --build=arm-linux-gnueabihf <br>
--host=arm-linux-gnueabihf --target=arm-linux-gnueabihf<br>
Thread model: posix<br>
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)



</div>