You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 from cores/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
FQBN: adafruit:avr:itsybitsy32u4_5V
Using board 'itsybitsy32u4_5V' from platform in folder: /arduino/data/packages/adafruit/hardware/avr/1.4.15
Using core 'arduino' from platform in folder: /arduino/data/packages/arduino/hardware/avr/1.8.6
Detecting libraries used...
/arduino/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=16000000L -DARDUINO=10607
-DARDUINO_AVR_ITSYBITSY32U4_5V -DARDUINO_ARCH_AVR
-I/arduino/data/packages/arduino/hardware/avr/1.8.6/cores/
arduino -I/arduino/data/packages/adafruit/hardware/avr/1.4.15/variants/itsybitsy32u4 /tmp/arduino/sketches/25FEAC7B78438B08E47BECDAC46A201D/sketch/itsy-serial.ino.cpp
-o /dev/null
Out of docker
FQBN: adafruit:avr:itsybitsy32u4_5V
Using board 'itsybitsy32u4_5V' from platform in folder: /home/foobar/.arduino15/packages/adafruit/hardware/avr/1.4.15
Using core 'arduino' from platform in folder: /home/foobar/.arduino15/packages/arduino/hardware/avr/1.8.6
Detecting libraries used...
/home/foobar/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=16000000L -DARDUINO=10607
-DARDUINO_AVR_ITSYBITSY32U4_5V -DARDUINO_ARCH_AVR
-DUSB_VID=0x239A -DUSB_PID=0x800E
-DUSB_MANUFACTURER="Adafruit"
-DUSB_PRODUCT="ItsyBitsy 32u4 5V 16MHz"
-I/home/foobar/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino
-I/home/foobar/.arduino15/packages/adafruit/hardware/avr/1.4.15/variants/itsybitsy32u4 /tmp/arduino/sketches/5DD7AD486AC39BA7E1BDA250FDC110C8/sketch/itsy-serial.ino.cpp
-o /dev/null
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: