Skip to content

1.6.4 avr-g++: error: {compiler.warning_flags}: No such file or directory #3028

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

Closed
mschlenker opened this issue Apr 24, 2015 · 8 comments
Closed
Assignees
Labels
Component: Core Related to the code for the standard Arduino API Type: Bug

Comments

@mschlenker
Copy link
Contributor

This happened after updating the toolchain to 1.6.4. Ubuntu 14.10, 64 bit:

/home/mattias/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++ -c -g -Os {compiler.warning_flags} -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10603 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/mattias/.arduino15/packages/arduino/hardware/avr/1.6.4/cores/arduino -I/home/mattias/.arduino15/packages/arduino/hardware/avr/1.6.4/variants/standard /tmp/build3147555964145188522.tmp/sketch_apr24c.cpp -o /tmp/build3147555964145188522.tmp/sketch_apr24c.cpp.o 
avr-g++: error: {compiler.warning_flags}: No such file or directory
Fehler beim Kompilieren.

Code used was the bare minimum, board Arduino Uno:

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

When deleting the hardware/avr in /home/mattias/.arduino15, everything works again. Is the problem due to my local setup or a bug in the updated toolchain?

Update, this weird hack seems to have fixed it ($HOME/.arduino15/packages/arduino/hardware/avr/1.6.4/platform.txt), I might check later for a proper fix.

# AVR compile variables
# ---------------------

compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
@matthijskooijman
Copy link
Collaborator

What is the hack exactly? You added the compiler.warning_flags=-w line I think?

@ffissore, so apparently the core 1.6.4 is not actually usable at all without also upgrading the IDE. The fix suggested above would work as a backward compatibility thing, though if we add it, it should be clearly marked as such. Alternatively, releasing the 1.6.4 IDE and then marking the 1.6.4 core as needing the 1.6.4 IDE might be better (do we even have a way to mark this dependency now?)

@mschlenker
Copy link
Contributor Author

@matthijskooijman Yes, I added compiler.warning_flags=-w without further checking where this variable should get set. I assumed this might or might not get overwritten by the IDE so not causing too much harm.

@matthijskooijman
Copy link
Collaborator

@mschlenker, the code in current git (which would be IDE 1.6.4) sets the compiler.warning_flags automatically, depending on preferences. Since this code isn't in 1.6.3 yet, your compile is breaking.

@mschlenker
Copy link
Contributor Author

@matthijskooijman This sounds reasonanble, but why is the toolchain released independently than?

@matthijskooijman
Copy link
Collaborator

@mschlenker, for quicker and easier updates, I presume, but @ffissore knows more :-)

@ffissore
Copy link
Contributor

My mistake

@mschlenker
Copy link
Contributor Author

@ffissore Shit happens. It might make sense to pull back the 1.6.4 toolchain update, release it with a fixed platform.txt as 1.6.4.1 and then bring the complete update of IDE and toolchain as 1.6.5. This way no one has to manually delete the 1.6.4 toolchain.

@ffissore
Copy link
Contributor

I chose 1.6.5 since to adhere to semver. AVR core released. Please upgrade

@ffissore ffissore added Component: Core Related to the code for the standard Arduino API Type: Bug labels Apr 24, 2015
@ffissore ffissore self-assigned this Apr 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Core Related to the code for the standard Arduino API Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants