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

avr-gcc: error: language -assembler-with-cpp not recognized #126

Open
GoogleCodeExporter opened this issue Jun 3, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Download Arduino IDE nightly
2. Install arduino-tiny hardware
3. Install BasicSerial library 
(http://nerdralph.blogspot.ca/2013/12/writing-avr-assembler-code-with-arduino.ht
ml)
4. Add BasicSerial to minimal sketch.
5. Verify

What is the expected output? 

BasicSerial library will compile.


What do you see instead?

/home/colinmc/Desktop/arduino-nightly/hardware/tools/avr/bin/avr-g++ -c -g -Os 
-w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=attiny2313 
-DF_CPU=1000000L -DARDUINO=10600 -DARDUINO_AVR_ATTINY2313AT1 -DARDUINO_ARCH_AVR 
-I/home/colinmc/Arduino/hardware/tiny/avr/cores/tiny 
-I/home/colinmc/Arduino/libraries/BasicSerial 
/tmp/build3549687536994922447.tmp/sketch_jan22a.cpp -o 
/tmp/build3549687536994922447.tmp/sketch_jan22a.cpp.o 
/home/colinmc/Desktop/arduino-nightly/hardware/tools/avr/bin/avr-gcc -c -g -x 
-assembler-with-cpp -mmcu=attiny2313 -DF_CPU=1000000L -DARDUINO=10600 
-DARDUINO_AVR_ATTINY2313AT1 -DARDUINO_ARCH_AVR 
-I/home/colinmc/Arduino/hardware/tiny/avr/cores/tiny 
-I/home/colinmc/Arduino/libraries/BasicSerial 
-I/home/colinmc/Arduino/libraries/BasicSerial/utility 
/home/colinmc/Arduino/libraries/BasicSerial/BasicSerial.S -o 
/tmp/build3549687536994922447.tmp/BasicSerial/BasicSerial.S.o 
avr-gcc: error: language -assembler-with-cpp not recognized
avr-gcc: error: language -assembler-with-cpp not recognized

What version of the product are you using? On what operating system?

Arduino 1.6 nightly build 22 Jan 2015
Ubuntu 14.04
arduino-tiny-0150-0020.zip

Please provide any additional information below.

Tried adding "-x" to arduino-tiny's platform.txt, does not help.
Compiling with other boards (ATMEGA328 for example) works fine. Only fails to 
compile on any board supported by arduino-tiny.

Original issue reported on code.google.com by [email protected] on 22 Jan 2015 at 4:48

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

No branches or pull requests

1 participant