Compiler not adding preprocessor definitions from boards.txt in docker container #2520
Open
3 tasks done
Labels
type: imperfection
Perceived defect in any part of project
Describe the problem
I'm attempting to compile a program with the CLI via docker, but I'm getting errors because it isn't populating the preprocessor definitions from boards.txt.
The specific error is a byproduct of that, but in case someone is searching for it later, the error:
USB_VID was not declared in this scope
fromcores/arduino/USBCore.cpp
I see the following when running the exact same command in and out of docker, note all the definitions from boards.txt when outside of docker.
(Only the first command is shown and line breaks added for clarity)
In docker
Out of docker
To reproduce
Dockerfile:
Expected behavior
I expect
USB_VID
,USB_PID
,USB_MANUFACTURER
, andUSB_PRODUCT
to be populated into the build chain from boards.txtArduino CLI version
nightly-20240131 Commit: 205a6a5 Date: 2024-01-31T01:26:52Z
Operating system
Linux
Operating system version
6.5.0-14-generic #14~22.04.1-Ubuntu
Additional context
Issue checklist
The text was updated successfully, but these errors were encountered: