atishd12345 / optiboot

Automatically exported from code.google.com/p/optiboot
0 stars 0 forks source link

Make on windows - ld crashes? #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
0. Download optiboot-v5.0a.zip and copy the optiboot contents over the same old 
content in the arduino ide setup. Start cmd.exe and cd to the folder.
machine 1. Use win7 64 bits, omake atmega1284p
machine 2. Use win2003 server, omake atmega1284p

What is the expected output? What do you see instead?
machine 1. There is a window popping up "ld.exe has crashed"...
machine 2. I get "make: *** [optiboot_atmega1284p.elf] Error 1 (and not much 
more of any info why this happened)

What version of the product are you using? On what operating system?
optiboot-v5.0a.zip downloaded from this site. 

Please provide any additional information below.
The zip-file seems to contain some older file than the one in the arduino 1.0.5 
ide when asked about overwriting the files. 

Original issue reported on code.google.com by anders.h...@videocent.com on 9 Jun 2013 at 11:03

GoogleCodeExporter commented 9 years ago
I also get a ld.exe crash on Win8-64, Arduino ide 1.0.5

Original comment by zmaster....@gmail.com on 2 Oct 2013 at 8:15

GoogleCodeExporter commented 9 years ago
Same here "ld.exe has stopped working" on Win8Pro-64, Arduino ide 1.0.5r2. The 
build target does not matter (tried 328, 644, 1284)

Original comment by Paco.Lec...@gmail.com on 5 Jun 2014 at 6:27

GoogleCodeExporter commented 9 years ago
With the version 6 change, this seems to happen less often, but I still don't 
know why it's crashing ld.  Omitting the "-Wl,--relax" linker option seems to 
prevent the crash, but I think that's needed to do some of the size 
optimizations on some platforms.

Original comment by wes...@gmail.com on 28 Jun 2014 at 9:16

GoogleCodeExporter commented 9 years ago
I completely forgot about this issue, so here is what i did in the meantime to 
fix it - as far as i remember.

I replaced ld.exe with a newever version (probably from the latest WinAVR 
toolchain). I was then able to compile it without problems.
I don't know which version Arduino IDE is using at the moment, here are the 
versions reported by the broken ld.exe and the working ld.exe for your 
reference:

C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\bin>ld_old -v
GNU ld (WinAVR 20081205) 2.19

C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\bin>ld -v
GNU ld (WinAVR 20100110) 2.19

Original comment by zmaster....@gmail.com on 28 Jun 2014 at 10:52

GoogleCodeExporter commented 9 years ago
For me this seems like something that should be fixed upstream (or maybe even 
has already been fixed). "-Wl,--relax" is a valid option, so I don't see what 
we can do about it at the level of optiboot.

Original comment by johnpatc...@googlemail.com on 17 Aug 2014 at 10:55