[GH-ISSUE #521] fix CI travis , add esp32 #438

Closed
opened 2026-02-28 01:25:17 +03:00 by kerem · 15 comments
Owner

Originally created by @tablatronix on GitHub (Feb 15, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/521

Can someone fix travis in developement branch ?

Originally created by @tablatronix on GitHub (Feb 15, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/521 Can someone fix travis in developement branch ?
kerem 2026-02-28 01:25:17 +03:00
Author
Owner

@tzapu commented on GitHub (Feb 15, 2018):

what's the minimum arduino ide and esp8266 sdk this compiles for now?

cheers

<!-- gh-comment-id:365957603 --> @tzapu commented on GitHub (Feb 15, 2018): what's the minimum arduino ide and esp8266 sdk this compiles for now? cheers
Author
Owner

@tablatronix commented on GitHub (Feb 15, 2018):

I have no idea
I would say when they added C++11

And esp8266 should still be the same, although its bugged as shit before 2.4.0

<!-- gh-comment-id:365959607 --> @tablatronix commented on GitHub (Feb 15, 2018): I have no idea I would say when they added C++11 And esp8266 should still be the same, although its bugged as shit before 2.4.0
Author
Owner

@tzapu commented on GitHub (Feb 15, 2018):

just tried with latest stable and arduino 1.8.5 but it fails miserably with this error


<command-line>:0:7: error: token "{" is not valid in preprocessor expressions
/home/travis/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/core_esp8266_si2c.c:40:5: note: in expansion of macro 'F_CPU'
 #if F_CPU == FCPU80
     ^
/home/travis/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/core_esp8266_si2c.c: In function 'twi_setClock':
<command-line>:0:7: error: token "{" is not valid in preprocessor expressions
/home/travis/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/core_esp8266_si2c.c:47:5: note: in expansion of macro 'F_CPU'
 #if F_CPU == FCPU80
     ^
exit status 1

which i have no idea how to fix

<!-- gh-comment-id:365966393 --> @tzapu commented on GitHub (Feb 15, 2018): just tried with latest stable and arduino 1.8.5 but it fails miserably with this error ``` <command-line>:0:7: error: token "{" is not valid in preprocessor expressions /home/travis/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/core_esp8266_si2c.c:40:5: note: in expansion of macro 'F_CPU' #if F_CPU == FCPU80 ^ /home/travis/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/core_esp8266_si2c.c: In function 'twi_setClock': <command-line>:0:7: error: token "{" is not valid in preprocessor expressions /home/travis/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/core_esp8266_si2c.c:47:5: note: in expansion of macro 'F_CPU' #if F_CPU == FCPU80 ^ exit status 1 ``` which i have no idea how to fix
Author
Owner

@tablatronix commented on GitHub (Feb 15, 2018):

yeah that makes no sense, ill poke around

<!-- gh-comment-id:365972393 --> @tablatronix commented on GitHub (Feb 15, 2018): yeah that makes no sense, ill poke around
Author
Owner

@tablatronix commented on GitHub (Feb 15, 2018):

It looks like the compile string is maybe not replacing vars properly

-DF_CPU={build.f_cpu} <-- is it literally defining F_CPU as {build.f_cpu} ?

from platform..txt recipe

## Compile c++ files
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpreprocessor.flags} {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
<!-- gh-comment-id:366013708 --> @tablatronix commented on GitHub (Feb 15, 2018): It looks like the compile string is maybe not replacing vars properly -DF_CPU={build.f_cpu} <-- is it literally defining F_CPU as `{build.f_cpu}` ? from platform..txt recipe ``` ## Compile c++ files recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpreprocessor.flags} {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}" ```
Author
Owner

@tablatronix commented on GitHub (Feb 15, 2018):

Can you debug the entire command, see if all boards.txt build.conf are missing ?

I don't know anything about travis

<!-- gh-comment-id:366015135 --> @tablatronix commented on GitHub (Feb 15, 2018): Can you debug the entire command, see if all boards.txt build.conf are missing ? I don't know anything about travis
Author
Owner

@tzapu commented on GitHub (Feb 16, 2018):

something wrong with travis now, won t give out any logs :))

<!-- gh-comment-id:366140924 --> @tzapu commented on GitHub (Feb 16, 2018): something wrong with travis now, won t give out any logs :))
Author
Owner

@tablatronix commented on GitHub (Mar 9, 2018):

whats the status on this ?
Did esp32 ever get added also?

<!-- gh-comment-id:371960615 --> @tablatronix commented on GitHub (Mar 9, 2018): whats the status on this ? Did esp32 ever get added also?
Author
Owner

@tablatronix commented on GitHub (Mar 21, 2018):

fixed spiffs esp32 examples
7279333a17

<!-- gh-comment-id:374929054 --> @tablatronix commented on GitHub (Mar 21, 2018): fixed spiffs esp32 examples 7279333a179f13e62b6592701ea36a3d87bee79d
Author
Owner

@tablatronix commented on GitHub (Feb 24, 2019):

why the f** is travis failing, what does it mean
this makes no sense, it complains about cpu freq memory, debug level, wtf, how are they invalid options ?

Error: FlashSize: Invalid option for board "generic"
The command "arduino --board esp8266:esp8266:generic:CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=4M1M,led=2,LwIPVariant=v2mss536,Debug=Serial,DebugLevel=CORE --save-prefs" exited with 3.
<!-- gh-comment-id:466787341 --> @tablatronix commented on GitHub (Feb 24, 2019): why the f** is travis failing, what does it mean this makes no sense, it complains about cpu freq memory, debug level, wtf, how are they invalid options ? ``` Error: FlashSize: Invalid option for board "generic" The command "arduino --board esp8266:esp8266:generic:CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=4M1M,led=2,LwIPVariant=v2mss536,Debug=Serial,DebugLevel=CORE --save-prefs" exited with 3. ```
Author
Owner

@liebman commented on GitHub (Feb 24, 2019):

Looks like that was renamed to 'eesz' in boards.txt in current git version. EDIT: wait esp32. NM - ACTUALY yea esp8266 - it was renamed.

<!-- gh-comment-id:466806085 --> @liebman commented on GitHub (Feb 24, 2019): Looks like that was renamed to 'eesz' in boards.txt in current git version. EDIT: wait esp32. NM - ACTUALY yea esp8266 - it was renamed.
Author
Owner

@tablatronix commented on GitHub (Feb 25, 2019):

Error: 40: Invalid option for "eesz" option for board "generic"
The command "arduino --board esp8266:esp8266:generic:xtal=80,CrystalFreq=26,eesz=40,FlashMode=qio,FlashSize=4M1M,led=2,LwIPVariant=v2mss536,Debug=Serial,DebugLevel=CORE --save-prefs" exited with 3.
<!-- gh-comment-id:467064842 --> @tablatronix commented on GitHub (Feb 25, 2019): ``` Error: 40: Invalid option for "eesz" option for board "generic" The command "arduino --board esp8266:esp8266:generic:xtal=80,CrystalFreq=26,eesz=40,FlashMode=qio,FlashSize=4M1M,led=2,LwIPVariant=v2mss536,Debug=Serial,DebugLevel=CORE --save-prefs" exited with 3. ```
Author
Owner

@tablatronix commented on GitHub (Feb 25, 2019):

shrug no idea what the deal is

<!-- gh-comment-id:467065018 --> @tablatronix commented on GitHub (Feb 25, 2019): shrug no idea what the deal is
Author
Owner

@tablatronix commented on GitHub (May 7, 2019):

https://github.com/esp8266/Arduino/issues/5572

ughh

github.com/esp8266/Arduino@cc0bfa04d4

<!-- gh-comment-id:490076710 --> @tablatronix commented on GitHub (May 7, 2019): https://github.com/esp8266/Arduino/issues/5572 ughh https://github.com/esp8266/Arduino/commit/cc0bfa04d401810ed3f5d7d01be6e88b9011997f
Author
Owner

@tablatronix commented on GitHub (Sep 17, 2021):

travis is deprecated

<!-- gh-comment-id:922065861 --> @tablatronix commented on GitHub (Sep 17, 2021): travis is deprecated
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#438
No description provided.