I got a Windows XP pc here with cygwin on it ofcourse and after a lot of tweaking and doing and using the cross-tools.bz2 presented here i got distcc running at it, but.....
I get this weird error when compiling from my gentoo-box:
Code: Select all
gcc -fno-strict-aliasing -DNDEBUG -O3 -march=athlon -funroll-loops -pipe -fPIC -DALL_STATIC=1 -Ic/i386 -I/usr/include/python2.3 -c c/psyco.c -o build/temp.linux-i686-2.3/c/psyco.o
cc1: warning: -fPIC ignored for target (all code is position independent)
gcc -pthread -shared -O3 -march=athlon -funroll-loops -pipe build/temp.linux-i686-2.3/c/psyco.o -o build/lib.linux-i686-2.3/psyco/_psyco.so
build/temp.linux-i686-2.3/c/psyco.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
distcc[28006] ERROR: compile (null) on localhost failed
error: command 'gcc' failed with exit status 1
!!! ERROR: dev-python/psyco-1.2 failed.
!!! Function distutils_src_compile, Line 38, Exitcode 1
!!! compilation failed
The "cc1" it mentions here is the compiler from Cygwin.... but it seems like that one cant compile the .o file...
I tried this with multiple emerges (centericq for example) and it all gives the same error. With distcc disabled or with this host removed from my distcc/hosts list it does work so the problem is with the compiler at cygwin.
I retrieved the latest file from:
ftp://ftp.dympna.com/pub/cross-linux-latest.tar.bz2 and put that one in: /usr/local/cross-linux.
I created the necessary exports and created the service using
Code: Select all
cygrunsrv.exe -I distcc -d "CYGWIN Distcc" -e "CYGWIN=ntsec tty" -p /usr/local/bin/distccd.sh
Looks to me i did everything right but i must have forgotten something....
Anyone got a clue?
[edit]
Hmm.... The windows box doesnt seem to be the problem.... it appears to be a problem on my gentoo box. Cuz my laptop compiles wonderful using the windows-pc as a distcc-dump. Gonna try and debug my gentoo-box then
Another [edit]: Recompiled distcc and the problem seems to be gone.
The problem was apparantely caused by starting a second emerge next to the one already distcc'ing... That kinda b0rked my distcc :/
[/edit]