I'm using Gentoo unstable amd64, with distcc enabled on a remote x86 machine with crosscompile. >>> Emerging (1 of 3) net-misc/netkit-telnetd-0.17-r7 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking netkit-telnet-0.17.tar.gz ;-) >>> checking netkit-telnet_0.17-32.diff.gz ;-) >>> Unpacking source... >>> Unpacking netkit-telnet-0.17.tar.gz to /var/tmp/portage/netkit-telnetd-0.17-r7/work >>> Unpacking netkit-telnet_0.17-32.diff.gz to /var/tmp/portage/netkit-telnetd-0.17-r7/work * Applying netkit-telnet_0.17-32.diff ... [ ok ] * Applying netkit-telnetd-0.17-cflags-gnu_source.patch ... [ ok ]>>> Source unpacked. >>> Compiling source in /var/tmp/portage/netkit-telnetd-0.17-r7/work/netkit-telnet-0.17 ... Directories: /usr/bin /usr/sbin /usr/man Looking for a C compiler... gcc Checking if gcc accepts gcc warnings... yes Looking for a C++ compiler... g++ Checking if g++ accepts gcc warnings... yes Checking if gcc accepts -O2... yes Checking if g++ accepts -O2... yes Checking if g++ accepts -fno-rtti... yes Checking if g++ accepts -fno-exceptions... yes Checking for BSD signal semantics... yes Checking for ncurses... yes Checking for GNU libc... yes Checking for forkpty... -lutil Checking for logwtmp... -lutil Checking for snprintf declaration... ok Checking for snprintf implementation... ok Generating MCONFIG... (cd telnet && make) make[1]: Entering directory `/var/tmp/portage/netkit-telnetd-0.17-r7/work/netkit-telnet-0.17/telnet' g++ -O2 -march=k8 -O2 -march=k8 -pipe -fno-rtti -fno-exceptions -Wall -Wno-trigraphs -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE commands.cc -c distcc[23383] ERROR: compile /var/tmp/ccache/commands.tmp.ginger.23379.ii on 192.168.10.101 failed commands.cc: In function `int tn(int, const char**)': commands.cc:1757: error: integer constant is too large for "long" type commands.cc:1757: error: integer constant is too large for "long" type commands.cc:1757: warning: comparison is always false due to limited range of data type commands.cc:1757: warning: comparison is always false due to limited range of data type make[1]: *** [commands.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/netkit-telnetd-0.17-r7/work/netkit-telnet-0.17/telnet' make: *** [telnet.build] Error 2 !!! ERROR: net-misc/netkit-telnetd-0.17-r7 failed. Call stack: ebuild.sh, line 1525: Called dyn_compile ebuild.sh, line 928: Called src_compile netkit-telnetd-0.17-r7.ebuild, line 53: Called die
I'm unable to reproduce this problem. Please attach a patch if such features are needed for your setup.
(In reply to comment #1) > I'm unable to reproduce this problem. Please attach a patch if such features > are needed for your setup. I don't have idea on how to patch this. I reported the bug, but I obviously then compiled it (without distcc).
fixed in netkit-telnetd-0.17-r7.ebuild. patch thanks to KIMURA Masaru <hiyuh@freenode.irc>
Created attachment 104698 [details, diff] patch for cross compilation MCONFIG may use CC and CXX as host compiler to build target object. This patch specified target toolchain, but not sure it can resolve this distcc cross compilation problem.