Skip to content

Eclipse Sloeber - cannot build using 3.1.0 on system without arduino IDE installed; because pre-build needs preferences.txt #8810

Closed
@jantje

Description

@jantje

While investigating #8803 Sloeber/arduino-eclipse-plugin#1547 , and Sloeber/arduino-eclipse-plugin#1546 I found that the prebuild command needs a preferences.txt file (see logs below).
If the user is on a system that has Sloeber or any other third party IDE installed but has no Arduino IDE (Like on a build server) this preferences.txt will not be found.
Apparently when the py script fails to do a workaround for the Arduino IDE the copy command of the build.opt is not executed resulting in a build failure.

Can you remove the dependency on the preferences.txt?

Thanks
Jantje

Failure during Sloeber Build https://github.com/Sloeber/arduino-eclipse-plugin/actions/runs/3924285135/jobs/6708444570#step:4:2500

Failure during regression testing on windows

18:41:57 **** Incremental Build of configuration Release for project issue1047_Board_Names_Can_Be_used_as_Strings ****
"e:\\platform\\arduinoPlugin\\tools\\make\\make" all 
e:/platform/arduinoPlugin/tools/make/make --no-print-directory pre-build
"e:\platform\arduinoPlugin\packages\esp8266\tools\python3\3.7.2-post1/python3" -I "e:\platform\arduinoPlugin\packages\esp8266\hardware\esp8266\3.1.1/tools/mkbuildoptglobals.py" "e:\platform" 10812 "L:\test\junit-workspace\issue1047_Board_Names_Can_Be_used_as_Strings\Release" "L:\test\junit-workspace\issue1047_Board_Names_Can_Be_used_as_Strings\Release/core/build.opt" "L:\test\junit-workspace\issue1047_Board_Names_Can_Be_used_as_Strings/issue1047_Board_Names_Can_Be_used_as_Strings.globals.h" "e:/platform/arduinoPlugin/packages/esp8266/hardware/esp8266/3.1.1/cores/esp8266/CommonHFile.h" 

*** File preferences.txt not found on Windows

*** 'preferences.txt' file missing from well known locations.
make[1]: [makefile:134: pre-build] Error 1 (ignored)
' '
e:/platform/arduinoPlugin/tools/make/make --no-print-directory main-build
'Building file: ..\sloeber.ino.cpp'
'Starting C++ compile'
"e:\platform\arduinoPlugin\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 "@L:\test\junit-workspace\issue1047_Board_Names_Can_Be_used_as_Strings\Release/core/build.opt" "-Ie:\platform\arduinoPlugin\packages\esp8266\hardware\esp8266\3.1.1/tools/sdk/include" "-Ie:\platform\arduinoPlugin\packages\esp8266\hardware\esp8266\3.1.1/tools/sdk/lwip2/include" "-Ie:\platform\arduinoPlugin\packages\esp8266\hardware\esp8266\3.1.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IL:\test\junit-workspace\issue1047_Board_Names_Can_Be_used_as_Strings\Release/core" -c "@e:\platform\arduinoPlugin\packages\esp8266\hardware\esp8266\3.1.1/tools/warnings/none-g++"  -Os -g -free -fipa-pta -Werror=return-type -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions  -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000  -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0   -DARDUINO=10812 -DARDUINO_ESP8266_NODEMCU_ESP12 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU_ESP12\"" -DARDUINO_BOARD_ID=""  -DFLASHMODE_QIO   -I"E:\platform\arduinoPlugin\packages\esp8266\hardware\esp8266\3.1.1\cores\esp8266" -I"E:\platform\arduinoPlugin\packages\esp8266\hardware\esp8266\3.1.1\variants\nodemcu" -MMD -MP -MF"sloeber.ino.cpp.d" -MT"sloeber.ino.cpp.o" -D__IN_ECLIPSE__=1 "..\sloeber.ino.cpp" -o "sloeber.ino.cpp.o"
xtensa-lx106-elf-g++: error: L:\test\junit-workspace\issue1047_Board_Names_Can_Be_used_as_Strings\Release/core/build.opt: No such file or directory
make[1]: *** [subdir.mk:20: sloeber.ino.cpp.o] Error 1
make: *** [makefile:90: all] Error 2
"e:/platform/arduinoPlugin/tools/make/make all" terminated with exit code 2. Build might be incomplete.

18:41:58 Build Failed. 3 errors, 0 warnings. (took 1s.284ms)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions