Problems compiling uisp-20050207-m168

Today I have made attempts to get Arduino working on my Xubuntu 7.10 system. Arduino is running, but since I have just bought a Diecimila, I need to compile a patched uisp version. This is where I run into an error that I don't understand. This is what I get when trying to compile (sorry for flooding):

Making all in src
make[1]: Entering directory `/home/mlcy/uisp-20050207-m168/src'
make  all-am
make[2]: Entering directory `/home/mlcy/uisp-20050207-m168/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT Avr.o -MD -MP -MF ".deps/Avr.Tpo" \
        -c -o Avr.o `test -f 'Avr.C' || echo './'`Avr.C; \
      then mv -f ".deps/Avr.Tpo" ".deps/Avr.Po"; \
      else rm -f ".deps/Avr.Tpo"; exit 1; \
      fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT AvrAtmel.o -MD -MP -MF ".deps/AvrAtmel.Tpo" \
        -c -o AvrAtmel.o `test -f 'AvrAtmel.C' || echo './'`AvrAtmel.C; \
      then mv -f ".deps/AvrAtmel.Tpo" ".deps/AvrAtmel.Po"; \
      else rm -f ".deps/AvrAtmel.Tpo"; exit 1; \
      fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT AvrDummy.o -MD -MP -MF ".deps/AvrDummy.Tpo" \
        -c -o AvrDummy.o `test -f 'AvrDummy.C' || echo './'`AvrDummy.C; \
      then mv -f ".deps/AvrDummy.Tpo" ".deps/AvrDummy.Po"; \
      else rm -f ".deps/AvrDummy.Tpo"; exit 1; \
      fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT DAPA.o -MD -MP -MF ".deps/DAPA.Tpo" \
        -c -o DAPA.o `test -f 'DAPA.C' || echo './'`DAPA.C; \
      then mv -f ".deps/DAPA.Tpo" ".deps/DAPA.Po"; \
      else rm -f ".deps/DAPA.Tpo"; exit 1; \
      fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT Main.o -MD -MP -MF ".deps/Main.Tpo" \
        -c -o Main.o `test -f 'Main.C' || echo './'`Main.C; \
      then mv -f ".deps/Main.Tpo" ".deps/Main.Po"; \
      else rm -f ".deps/Main.Tpo"; exit 1; \
      fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT MotIntl.o -MD -MP -MF ".deps/MotIntl.Tpo" \
        -c -o MotIntl.o `test -f 'MotIntl.C' || echo './'`MotIntl.C; \
      then mv -f ".deps/MotIntl.Tpo" ".deps/MotIntl.Po"; \
      else rm -f ".deps/MotIntl.Tpo"; exit 1; \
      fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT Serial.o -MD -MP -MF ".deps/Serial.Tpo" \
        -c -o Serial.o `test -f 'Serial.C' || echo './'`Serial.C; \
      then mv -f ".deps/Serial.Tpo" ".deps/Serial.Po"; \
      else rm -f ".deps/Serial.Tpo"; exit 1; \
      fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT Stk500.o -MD -MP -MF ".deps/Stk500.Tpo" \
        -c -o Stk500.o `test -f 'Stk500.C' || echo './'`Stk500.C; \
      then mv -f ".deps/Stk500.Tpo" ".deps/Stk500.Po"; \
      else rm -f ".deps/Stk500.Tpo"; exit 1; \
      fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT Terminal.o -MD -MP -MF ".deps/Terminal.Tpo" \
        -c -o Terminal.o `test -f 'Terminal.C' || echo './'`Terminal.C; \
      then mv -f ".deps/Terminal.Tpo" ".deps/Terminal.Po"; \
      else rm -f ".deps/Terminal.Tpo"; exit 1; \
      fi
g++ -Wall -Werror -g -O2   -o uisp  Avr.o AvrAtmel.o AvrDummy.o DAPA.o Main.o MotIntl.o Serial.o Stk500.o Terminal.o cygwinp.o  
make[2]: Leaving directory `/home/mlcy/uisp-20050207-m168/src'
make[1]: Leaving directory `/home/mlcy/uisp-20050207-m168/src'

Seems the error message was not included when writing output to file. This is what i get in terminal when trying again:

Making all in src
make[1]: Entering directory `/home/mlcy/uisp-20050207-m168/src'
make  all-am
make[2]: Entering directory `/home/mlcy/uisp-20050207-m168/src'
g++ -Wall -Werror -g -O2   -o uisp  Avr.o AvrAtmel.o AvrDummy.o DAPA.o Main.o MotIntl.o Serial.o Stk500.o Terminal.o cygwinp.o  
cygwinp.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[2]: *** [uisp] Error 1
make[2]: Leaving directory `/home/mlcy/uisp-20050207-m168/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mlcy/uisp-20050207-m168/src'
make: *** [all-recursive] Error 1

In the uisp install file there is a clue to inlcude the -DNO_DIRECT_IO switch in the Makefile if having trouble with compilation, but I don't understand where it goes. Tried it after CFLAG.

Im quite an unexperienced linux user and I would hate to go back to Windows in order to work with my new Arduino.

Thank you for any help.

I have now found this post, saying I don't need UISP. And, alas, i don't.

Actually, those instructions are a bit out of date. The newer versions of the Arduino use avrdude, not uisp. There's a compiled binary included in the Arduino 0010 for Linux download. Does that work? If not, try compiling the avrdude source, hopefully it will work better than uisp did.

I have a red LED pacing steadily on pin 13. The linux binary worked excellent. Well, at least after I switched to a 32-bit OS.