Author Topic: No compile example START  (Read 11661 times)

borgmcz

  • Newbie
  • *
  • Posts: 3
No compile example START
« on: February 28, 2016, 12:22:40 am »
Hello,

Unable to resolve even basic example START. Clean install both version 0.9.3 and 0.9.4 and the same problem. Old OS WinXP, Arduino IDE 1.6.7.

Code: [Select]
"C:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\hardware\oak\0.9.3/tools/sdk/include" -c -O2 -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10607 -DARDUINO_ESP8266_OAK -DARDUINO_ARCH_OAK  -DESP8266       "-IC:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\hardware\oak\0.9.3\cores\oak" "-IC:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\hardware\oak\0.9.3\variants\oak" "C:\DOCUME~1\uzivatel\LOCALS~1\Temp\buildee46cfe2ddf299e245a0ca2640eea9cf.tmp\sketch\Start.ino.cpp" -o "nul"
"C:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\hardware\oak\0.9.3/tools/sdk/include" -c -O2 -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10607 -DARDUINO_ESP8266_OAK -DARDUINO_ARCH_OAK  -DESP8266       "-IC:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\hardware\oak\0.9.3\cores\oak" "-IC:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\hardware\oak\0.9.3\variants\oak" "C:\DOCUME~1\uzivatel\LOCALS~1\Temp\buildee46cfe2ddf299e245a0ca2640eea9cf.tmp\sketch\Start.ino.cpp" -o "C:\DOCUME~1\uzivatel\LOCALS~1\Temp\buildee46cfe2ddf299e245a0ca2640eea9cf.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
In file included from c:\documents and settings\uzivatel\local settings\data aplikací\arduino15\packages\digistump\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\cstring:41:0,

                 from C:\Documents and Settings\uzivatel\Local Settings\Data aplikací\Arduino15\packages\digistump\hardware\oak\0.9.3\cores\oak/OakParticle/OakParticle.h:26,

                 from C:\Documents and Settings\uzivatel\Local Settings\Data aplikací\Arduino15\packages\digistump\hardware\oak\0.9.3\cores\oak/Arduino.h:257,

                 from C:\DOCUME~1\uzivatel\LOCALS~1\Temp\buildee46cfe2ddf299e245a0ca2640eea9cf.tmp\sketch\Start.ino.cpp:1:

c:\documents and settings\uzivatel\local settings\data aplikací\arduino15\packages\digistump\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\xtensa-lx106-elf\bits\c++config.h:426:29: fatal error: bits/os_defines.h: No such file or directory

 #include <bits/os_defines.h>

                             ^

compilation terminated.

exit status 1
Error compiling.

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: No compile example START
« Reply #1 on: February 28, 2016, 05:56:28 pm »
If you can, try Arduino IDE 1.6.5, as Erik as commented that there are some issues with Arduino 1.6.6 & 1.6.7, but I haven't run into them myself (and I have stuck with Oak core 0.9.3, so that might be the reason! Otherwise, it sounds like your build core isn't installing / configuring properly, as the compiler is not finding files where it is expecting to.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: No compile example START
« Reply #2 on: March 01, 2016, 12:04:05 am »
I've never seen this issue or heard about it from anyone else, even with 1.6.6 and 1.6.7 - not sure where to start here, but I would certainly suggest trying another computer if you can as this does seem to be an issue with an incomplete installation for some reason

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: No compile example START
« Reply #3 on: March 01, 2016, 02:30:53 am »
Just had another thought after reading Erik's reply - You could download the zip version of Arduino - either 1.6.7 or 1.6.5 (or even both versions), unpack it to its own folder, and create a subfolder called 'portable' (so another folder where there is 'drivers', 'examples', 'hardware', etc). This is then a self-contained version of the Arduino IDE - files, settings and all - that you run by double-clicking on the arduinio.exe file. You would then be able to install the Oak core into this portable version, and see if you get the same problem. If not, it would then indicate that either the core isn't installing properly, or something about the file path is confusing the Arduino IDE.

borgmcz

  • Newbie
  • *
  • Posts: 3
Re: No compile example START
« Reply #4 on: March 01, 2016, 10:03:15 pm »
Thank you for your advice, I tried a clean installation of the first in the different versions of the Arduino and libraries.
The problem seems to be the language version of Windows where the error is probably the Extensa.
See listing:

Code: [Select]
"C:\Documents and Settings\uzivatel\Local Settings\[b]Data aplikacĂ­\[/b]Arduino15\packages\digistump\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\hardware\oak\0.9.3/tools/sdk/include" -c -O2 -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10607 -DARDUINO_ESP8266_OAK -DARDUINO_ARCH_OAK  -DESP8266       "-IC:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\hardware\oak\0.9.3\cores\oak" "-IC:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Arduino15\packages\digistump\hardware\oak\0.9.3\variants\oak" "C:\DOCUME~1\uzivatel\LOCALS~1\Temp\buildee46cfe2ddf299e245a0ca2640eea9cf.tmp\sketch\Start.ino.cpp" -o "C:\DOCUME~1\uzivatel\LOCALS~1\Temp\buildee46cfe2ddf299e245a0ca2640eea9cf.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
In file included from c:\documents and settings\uzivatel\local settings\data aplikací\arduino15\packages\digistump\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\cstring:41:0,


"C:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ­\Ardui...
In file included from c:\documents and settings\uzivatel\local settings\data aplikací\ardu....

Is there a procedure to fix this problem?

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: No compile example START
« Reply #5 on: March 01, 2016, 11:14:50 pm »
oh boy - that would be an issue in the compiler itself, my guess is it is also windows specific, and likely windows XP specific (and perhaps more of a limitation of XP's internationalization then an issue with the compiler) since no one else has reported that here, or that I can find, on any other project using this toolchain to compile (which is alot of projects!). That is a short way of saying - I can't imagine this will be fixed unless it occurs on platforms other than XP, as I don't imagine XP specific patches are going to be trivial or because of that necessarily welcome in the xtensa gcc toolchain

If you see this issue outside of XP please let me know, I'm sorry I don't have a better answer!

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: No compile example START
« Reply #6 on: March 01, 2016, 11:34:11 pm »
Yes, that does look suspect, doesn't it. As things stand, I can't think of anything other than the portable Arduino install, as it would put all the stuff saved in the arduino15 folder in a subfolder of the install, rather than under 'C:\Documents and Settings\uzivatel\Local Settings\Data aplikacĂ'.

I can't decent guide to link here, but maybe the steps 1 and 3 of this instructable may be of use as a reference : http://www.instructables.com/id/Portable-installation-guide-of-Arduino-IDE-v165-fo/

Basically:

1) Download the "Windows: ZIP file for non admin install" from https://www.arduino.cc/en/Main/Software
2) Right click on the downloaded zip file, and choose "Extact All...", and follow the wizard prompts.
3) You should then have an open folder that contains arduino-1.6.7 (if you download 1.6.7). open that folder
4) In the folder that has 'dist', 'drivers', 'examples', etc, create a folder called 'portable'.
5) Run that downloaded copy of the Arduinio IDE by double-clicking on the arduino.exe icon in that folder.
6) Add 'http://digistump.com/package_digistump_index.json' to the 'Additional board manager URLs' preferences section, and install the Oak core again via the Boards Manager
7) Once that is done, see if you can compile even an empty sketch (with just setup and loop) without any errors. If so, it should work from then onwards!
8) You can move that 'arduino-1.6.7' folder anywhere you want to - it is a completely self-contained copy of the Arduino IDE, suitable for copying onto a flash drive, etc so you can take it anyware!

Hope that helps.

peabo

  • Newbie
  • *
  • Posts: 8
Re: No compile example START
« Reply #7 on: March 02, 2016, 01:35:39 am »
Hi there,

I have the same issue which pfeerick has been helping out with:-

https://digistump.com/board/index.php/topic,2041.msg9181.html#msg9181

This however is  occuring on a laptop running on a window 7.

It is definitely an installation issue as i have managed to install Arduino V1.6.7 and the Oak board manager, and the OakCLI Config.json on another identical laptop running the same OS. I also successfully managed to get it all working on my Desktop PC as well which is also running Window 7.

With the suspect lap top i totally ( i think) removed all trace of a any Arduino and Oak/digistump and did a fresh install but the "xtensa-lx106" compile problem persists.

Hope this sheds some light on things.

Cheers

Dan

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: No compile example START
« Reply #8 on: March 02, 2016, 02:42:09 am »
Your problem is similar Dan, but not quite the same. This one is related to the compiler not being able to find it's header files - ie. "bits/os_defines.h: No such file or directory", and may be related to the internationalisation (or lack thereof) in Windows XP, as borgmcz spotted that the paths are being listed differently at different stages of the compile process. In yours, it looks like the compiler wasn't being properly installed, or there are permissions issues.

As far as the OakCLI config.json issue, if the OakCLI isn't creating it, that again sounds a bit like a permissions issue. Does it create the oak folder in %appdata% if you right click it and do a 'Run as Administrator'?

borgmcz

  • Newbie
  • *
  • Posts: 3
Re: No compile example START
« Reply #9 on: March 02, 2016, 12:03:27 pm »
Hello, thank you very much for the advice. Portable installation was the right solution, now I can compile. Now I do not carry OAK plate, but on the weekend try to transfer via OTA.

Thanks again for your help.