suapapa / arscons

!! DEPRECATED !! scons script for Arduino sketch
75 stars 21 forks source link

build\core.a: No such file or directory #24

Open inseo-oh opened 10 years ago

inseo-oh commented 10 years ago

When I try scons ARDUINO_PORT=COM5 ARDUINO_BOARD=atmega328 ARDUINO_VER=1.0.1 ARDUINO_HOME=C:\Arduino upload

I get these messages;;; fnCompressCore(["build\core.a"], ["build\core\WInterrupts.o", "build\core\wiring .o", "build\core\wiring_analog.o", "build\core\wiring_digital.o", "build\core\wi ring_pulse.o", "build\core\wiring_shift.o", "build\core\CDC.o", "build\core\Hard wareSerial.o", "build\core\HID.o", "build\core\IPAddress.o", "build\core\new.o", "build\core\Print.o", "build\core\Stream.o", "build\core\Tone.o", "build\core\U SBCore.o", "build\core\WMath.o", "build\core\WString.o"]) C:\Arduino\hardware/tools/avr/bin\avr-gcc -mmcu=atmega328p -Os -Wl,--gc-sections -o sketch.elf build\sketch.o build\lib_00\LiquidCrystal\LiquidCrystal.o build\l ib_00\NS_LCD_01\NS_LCD.o build\core.a -lm avr-gcc: build\core.a: No such file or directory scons: *\ [sketch.elf] Error 1 scons: building terminated because of errors.

why build\core.a dosen't exists?

jeroendoggen commented 10 years ago

Have you installed the Arduino IDE? Is it located at "C:\Arduino"? If so, is it version 1.0.1?

inseo-oh commented 10 years ago

It was 1.0.5;;;; I will try it later... It also works on 1.0.5?

kylegordon commented 10 years ago

I'm on Ubuntu 13.10 and unfortunately get the same error with recent builds of Arscons. It happens with Arduino 1.0.1 and 1.0.5. It would appear that the entry on line 404 might be to blame

kyleg@wmlp1000:~/src/arscons$ find /home/kyleg/Applications/arduino-1.0.5/ -iname "core." /home/kyleg/Applications/arduino-1.0.5/lib/core.jar kyleg@wmlp1000:~/src/arscons$ find . -iname "core." kyleg@wmlp1000:~/src/arscons$ scons ARDUINO_BOARD=uno ARDUINO_HOME=/home/kyleg/Applications/arduino-1.0.5/ scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build/local build fnCompressCore(["build/core.a"], ["build/core/wiring_pulse.o", "build/core/Print.o", "build/core/wiring_shift.o", "build/core/IPAddress.o", "build/core/Tone.o", "build/core/WMath.o", "build/core/USBCore.o", "build/core/Stream.o", "build/core/WString.o", "build/core/HardwareSerial.o", "build/core/wiring_digital.o", "build/core/WInterrupts.o", "build/core/wiring.o", "build/core/new.o", "build/core/CDC.o", "build/core/wiring_analog.o", "build/core/HID.o"]) scons: *\ [build/core.a] No such file or directory scons: building terminated because of errors. kyleg@wmlp1000:~/src/arscons$

inseo-oh commented 10 years ago

I tried on windows... but it failed because "build/core.a" not exists. But on my Raspberry Pi(OS: Raspbian).. It works well..(I tried on /dev/ttyS0)

szebenyib commented 10 years ago

HI! Just experienced the same. Installed scons, then changed AVR_HOME to /usr/bin. That solved a previous error message, however I am now stuck with this. scons: *\ [build/core.a] No such file or directory Can you please advise what to correct? I am using Arduino 1.0.5 @ ARCH Linux

roylines commented 10 years ago

I have the same issue. Installed on 64 arch, set AVR_HOME to /usr/bin, then I get: scons: *\ [build/core.a] No such file or directory

MadnessASAP commented 10 years ago

I had the same issue, resolved it by adding a trailing forward slash to AVR_HOME option, i.e. AVR_HOME="/usr/bin/" not AVR_HOME="/usr/bin".

xenris commented 10 years ago

In case anyone is still looking here: This problem was caused by commit bb20696. To go back to a working version you need to checkout v1.0.0 (ca36aee).

furious-luke commented 10 years ago

Not sure if this is still an issue (although I did get the same error just now), but I think the source of the problem is that SConstruct is unable to locate the arduino "ar" utility. I found I could correct it by replacing this line:

   run([AVR_BIN_PREFIX + 'ar', 'rcs', str(target[0]), file])

with this:

   run([AVR_BIN_PREFIX + 'avr/bin/avr-ar', 'rcs', str(target[0]), file])
jtmarmon commented 9 years ago

+1 ^ great fix @furious-luke thanks