From f9d0a1bf3597f42cc79a978e30a4a431d29dabac Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Thu, 4 Jun 2015 19:53:48 +0200 Subject: [PATCH] Configtool: work around a ld.exe problem. See committed comment for details. This is related to issue #158. --- configtool/build.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configtool/build.py b/configtool/build.py index 2fe5db8..1ca72c4 100644 --- a/configtool/build.py +++ b/configtool/build.py @@ -228,6 +228,14 @@ class Build(wx.Dialog): self.script = [] cmdpath = ScriptTools(self.settings).figureCommandPath("avr-gcc") + # This is ugly: + # Work around a problem of avr-ld.exe coming with Arduino 1.6.4 for + # Windows. Without this it always drops this error message: + # collect2.exe: error: ld returned 5 exit status 255 + # Just enabling verbose messages allows ld.exe to complete without failure. + if platform == "win32": + cmdpath += " -Wl,-V" + ofiles = ["\"" + join(self.root, "build", f) + "\"" for f in os.listdir(join(self.root, "build")) if isfile(join(self.root, "build", f)) and f.endswith(".o")]