Skip to content

compiler trouble #4604

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
5chufti opened this issue Apr 4, 2018 · 7 comments
Closed

compiler trouble #4604

5chufti opened this issue Apr 4, 2018 · 7 comments

Comments

@5chufti
Copy link
Contributor

5chufti commented Apr 4, 2018

Basic Infos

  • [x ] This issue complies with the issue POLICY doc.
  • [ x] I have read the documentation at readthedocs and the issue is not addressed there.
  • [ x] I have tested that the issue is present in current master branch (aka latest git).
  • [ x] I have searched the issue tracker for a similar issue.
  • [ x] If there is a stack dump, I have decoded it.
  • [ x] I have filled out all fields below.

Platform

  • Hardware: [none]
  • Core Version: [latest git]
  • Development Env: [Arduino IDE 1.8.5]
  • Operating System: [Windows]

Settings in IDE

  • Module: [Generic ESP8266 Module]
  • Flash Mode: [qio]
  • Flash Size: [1MB]
  • lwip Variant: [v2 Lower Memory]
  • Reset Method: [ck]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [SERIAL]
  • Upload Speed: [other] (serial upload only)
  • warnings: [all]

Problem Description

  1. lots of
    <command-line>:0:23: warning: ISO C99 requires whitespace after the macro name [enabled by default]
    during compile of core components

  2. after "Done compiling" without any changes whatsoever just hitting "compile" button again brings
    Build options changed, rebuilding all
    maybe related to 1)?

MCVE Sketch

void setup() {

}

void loop() {

}

yes, just an empty sketch is fastest and easiest to demonstrate

@d-a-v
Copy link
Collaborator

d-a-v commented Apr 4, 2018

Can you by chance make a copy-paste of the gcc command line with its error ?
you can get it by enabling some option in IDE's preference menu

About the always rebuilding problem, I had it too, not tried to debug the IDE, and was finally solved by @whyameye's findings in #3911.

@5chufti
Copy link
Contributor Author

5chufti commented Apr 4, 2018

Hi,
unfortunately IDE 1.9ß closes on me at the startup w/o any further notice, so no luck there.
But it seems that these problems are due to my setup as I don't have it on my second machine.
Sadly this is the only setup that allows me to use various versions in parallel ...
so closing this issue as all works well if setup according to standard.

@5chufti 5chufti closed this as completed Apr 4, 2018
@5chufti 5chufti reopened this Apr 4, 2018
@5chufti
Copy link
Contributor Author

5chufti commented Apr 4, 2018

Hi,
looking closer, it is the setup described as "Using git version" I just use the path like hardware/espressif/esp8266_git (or_241 etc) and modify the platform.txt (name=ESP8266_git) but this shouldn't make such difference?

@d-a-v
Copy link
Collaborator

d-a-v commented Apr 4, 2018

I personally use symbolic links without messing with conf files.

@5chufti
Copy link
Contributor Author

5chufti commented Apr 4, 2018

here is one of the "offending" commandlines
Compiling core... cmd.exe /c mkdir C:\Users\me\AppData\Local\Temp\arduino_build_561890\core & (echo #define ARDUINO_ESP8266_GIT_VER 0x00000000 & echo #define ARDUINO_ESP8266_GIT_DESC win-2.5.0 ) > C:\Users\me\AppData\Local\Temp\arduino_build_561890\core\core_version.h "C:\Users\me\arduino\hardware\espressif\esp8266_2.5.0/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\me\arduino\hardware\espressif\esp8266_2.5.0/tools/sdk/include" "-IC:\Users\me\arduino\hardware\espressif\esp8266_2.5.0/tools/sdk/lwip2/include" "-IC:\Users\me\arduino\hardware\espressif\esp8266_2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\me\AppData\Local\Temp\arduino_build_561890/core" -c -g -x assembler-with-cpp -MMD -mlongcalls -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10806 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266_2.5.0 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\me\arduino\hardware\espressif\esp8266_2.5.0\cores\esp8266" "-IC:\Users\me\arduino\hardware\espressif\esp8266_2.5.0\variants\generic" "C:\Users\me\arduino\hardware\espressif\esp8266_2.5.0\cores\esp8266\cont.S" -o "C:\Users\me\AppData\Local\Temp\arduino_build_561890\core\cont.S.o" <command-line>:0:23: warning: missing whitespace after the macro name [enabled by default]

Changing the platform.txt is not "messing with conf files", it only changes the caption in boards menu.

Edit:
the "warning" problem is the same (for 2.3.0, 2.4.1, git) even with regular install (via board manager) ....
core 2.3.0, 2.4.1 do not show the "rebuild" problem on IDE 1.8.6, only the git version...

@d-a-v
Copy link
Collaborator

d-a-v commented Apr 4, 2018

Hard to guess.
There is this unknown define to me -DARDUINO_ARCH_ESP8266_2.5.0 which seems wrong with these dots.
...
I think this comes from your changes for {build_arch} in platform.txt: no other chars than alphanum and _ are allowed in it (since it comes to be part of a define).

@5chufti
Copy link
Contributor Author

5chufti commented Apr 4, 2018

Hi d-a-v,
your my man! It didn't like the "-" nor the "." so I changed the path to esp8266_241, now it works like a charm.
thank you very much for making my esp and arduino experience more joyfull again!

@5chufti 5chufti closed this as completed Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants