Skip to content

Using build_opt.h with IDE 2.0 Beta 5 fails verification #1387

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
Daedelos opened this issue May 8, 2021 · 1 comment
Closed

Using build_opt.h with IDE 2.0 Beta 5 fails verification #1387

Daedelos opened this issue May 8, 2021 · 1 comment
Labels
arduino compatibility invalid This doesn't seem right

Comments

@Daedelos
Copy link

Daedelos commented May 8, 2021

Attempting to Verify using IDE 2.0 Beta 5 with build_opt.h in sketch folder results in:

arm-none-eabi-g++: error: #line: No such file or directory
arm-none-eabi-g++: error: 1: No such file or directory
Compilation error: Error: 2 UNKNOWN: exit status 1

IDE 1.18.3 with the same sketch & build_opt.h verifies without error

To Reproduce
Install IDE 2.0 Beta 5
place a build_opt.h file containing the line -DHAL_CRC_MODULE_ENABLED
attempt to verify

Expected behavior
Verification as in IDE 1.18.3

Desktop (please complete the following information):

  • Windows 10 x64 Pro
  • Arduino IDE version 2.0 Beta 5
  • STM32 core version: 2.0.0
  • Upload method: n/a

Board (please complete the following information):
Generic STM32F1 series

@Daedelos Daedelos changed the title Using build_opt.h with IDE 2.0 Beta 5 fails Using build_opt.h with IDE 2.0 Beta 5 fails verification May 8, 2021
@fpistm fpistm added arduino compatibility invalid This doesn't seem right labels May 10, 2021
@fpistm
Copy link
Member

fpistm commented May 10, 2021

Hi @Daedelos
Yes I confirm there is an issue.
But this is not related to the core but to the Arduino IDE Beta which does not properly managed .h file.
It seems it try to convert the .h file like an ino file.

#line 1 "c:\\Users\\<username>\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2021410-37444-aykylf.uyhtw\\sketch_may10a\\build_opt.h"
-DHAL_CRC_MODULE_ENABLED

I've opened an issue to the Arduino IDE GitHub repo: arduino/arduino-ide#363

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arduino compatibility invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants