Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132867 - netkit-telnetd fails to compile using crosscompiled distcc
Summary: netkit-telnetd fails to compile using crosscompiled distcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: solar (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-10 00:41 UTC by Maxxer
Modified: 2012-12-12 12:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for cross compilation (netkit-telnetd-0.17-r7-cross.patch,703 bytes, patch)
2006-12-24 18:01 UTC, hiyuh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maxxer 2006-05-10 00:41:00 UTC
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
Comment 1 solar (RETIRED) gentoo-dev 2006-05-31 14:39:01 UTC
I'm unable to reproduce this problem. Please attach a patch if such features are needed for your setup.
Comment 2 Maxxer 2006-06-01 00:03:07 UTC
(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).
Comment 3 solar (RETIRED) gentoo-dev 2006-12-24 17:58:05 UTC
fixed in netkit-telnetd-0.17-r7.ebuild. patch thanks to  KIMURA Masaru <hiyuh@freenode.irc>
Comment 4 hiyuh 2006-12-24 18:01:41 UTC
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.