Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
inseo-oh opened this issue Dec 7, 2013 · 10 comments
Open

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

inseo-oh opened this issue Dec 7, 2013 · 10 comments

Comments

@inseo-oh
Copy link

inseo-oh commented Dec 7, 2013

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
Copy link
Contributor

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

@inseo-oh
Copy link
Author

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

@kylegordon
Copy link
Contributor

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
Copy link
Author

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
Copy link

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
Copy link

roylines commented Feb 3, 2014

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
Copy link

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
Copy link

xenris commented Jun 5, 2014

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
Copy link

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
Copy link

+1 ^ great fix @furious-luke thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants