triffid / FiveD_on_Arduino

Rewrite of reprap mendel firmware
http://forums.reprap.org/read.php?147,33082
GNU General Public License v2.0
30 stars 12 forks source link

Problems compiling ... #1

Closed BodgeIt closed 14 years ago

BodgeIt commented 14 years ago

Hi Just been trying to compile your code and get the following errors (using make)

CC mendel.o CC serial.o CC dda.o CC gcode.o CC timer.o CC clock.o CC temp.o CC sermsg.o CC dda_queue.o CC watchdog.o CC debug.o CC sersendf.o LINK mendel.elf OBJCOPY mendel.hex OBJDUMP mendel.lst SYM mendel.sym 0 [main] perl 1784 open_stackdumpfile: Dumping stack trace to perl.exe.stackdump SIZE Atmega168 Atmega328p bin/sh: objdump: command not found 0 [main] perl 4012 open_stackdumpfile: Dumping stack trace to perl.exe.stackdump ake: *\ [size] Error 5

Stackdump gives

MSYS-1.0.12 Build:2010-02-05 01:08 Exception: STATUS_ACCESS_VIOLATION at eip=68008DAA eax=300A5360 ebx=305926EC ecx=00020CCC edx=00000770 esi=00000000 edi=305900D4 ebp=0023FED0 esp=0023FEAC program=d:\Program Files\Git\bin\perl.exe cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023 Stack trace: Frame Function Args 0023FED0 68008DAA (305900D4, 00000770, 00000003, 680044EA) 0023FF20 6800466B (00003F6F, 805584A0, 0023FF60, 00401EF0) 0023FF40 68004C5F (00401068, 30064AD1, 00E7A5E8, 89E7A570) 0023FF60 68004C98 (00000000, 00000000, 80544EDC, 00000000) 0023FF90 00401DB8 (00401068, 00000001, 00000006, B20EAD04) 0023FFC0 0040103D (30064AD1, 300A92EC, 7FFDE000, 80544C7D) 0023FFF0 7C817077 (00401000, 00000000, 78746341, 00000020) End of stack trace

Any ideas as to why this is happening?

Help geatly appreciated as your code looks cool.

Bodgeit

BodgeIt commented 14 years ago

Also tried compiling with Arduino 17 and getting the following error ...

o: In function main': E:\usrTmp\build37869.tmp/Mendel.cpp:9: multiple definition ofmain'

o:E:\usrTmp\build37869.tmp/mendel.c:142: first defined here

Really puzzled! Bodgeit

Traumflug commented 14 years ago

objdump: command not found

You should either fix that or remove "size" in the "all" target.

BodgeIt commented 14 years ago

Cheers ... removed size from all and still got problem when I got to .sym file build bit. So the objdump in this section and now get

CC mendel.o CC serial.o CC dda.o CC gcode.o CC timer.o CC clock.o CC temp.o CC sermsg.o CC dda_queue.o CC watchdog.o CC debug.o CC sersendf.o LINK mendel.elf OBJCOPY mendel.hex OBJDUMP mendel.lst SYM mendel.sym 0 [main] perl 192 open_stackdumpfile: Dumping stack trace to perl.exe.stackdump make: *\ [mendel.sym] Error 5

Note only one instead of two previously!

Traumflug commented 14 years ago

Your perl somehow has the habit to dump core for no reason ... you can comment out the very last line in the Makefile as well.

BodgeIt commented 14 years ago

Aha ... success! As a matter of interest what version of perl are you using? Thanks a million for your help.

Traumflug commented 14 years ago

On Mac OS X 5.8.6, on Ubuntu 5.10.1

triffid commented 14 years ago

hi, I fixed an error in the makefile where it assumed objdump existed instead of using ARCH-objdump.. not sure what's going on with your perl though, sounds like a compiler problem. are you using activeperl or a cygwin one or something else?

BodgeIt commented 14 years ago

hi, Not sure we were using activeperl, $ perl -v command gave v5.8.8. I don't remember active perl was kept at V5.3.6. to compile work source. Midge instaled cygwin recently which could have changed things as she was atempting to compile the makerbot V2 firmware with it).

We had a play at changing the defines for the CPU pins to the reprap motherboard ATMega644p but have failed in our translation method ~ bit more reading required

Iv not had time to re pull your source down yet so not tried the new Make file yet.Midge has an open studio next weekend so we will be busy preparing for that this week. We will give it a try if we get a chance. Thanks for taking the time to look into this problem.