[Resolved] Error - Generating function prototypes

I am i bit lost where to look, since info in the error is quite limited.
Could someone please give some guidance. Thanks!

Board: MKR1000
IDE: 1.8.0
Sketch: Example sketch WIFI101 - WiFiWebServer

Verbose print out:

Arduino: 1.8.0 (Windows 7), Board: "Arduino/Genuino MKR1000"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\AS051574\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\AS051574\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\AS051574\Documents\Arduino\libraries -fqbn=arduino:samd:mkr1000 -vid-pid=0X2341_0X824E -ide-version=10800 -build-path C:\Users\AS051574\AppData\Local\Temp\arduino_build_34614 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino8 -prefs=runtime.tools.openocd.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0 -prefs=runtime.tools.bossac.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -verbose C:\Users\AS051574\Documents\Arduino\omat\mkr1000webserver20160110\mkr1000webserver20160110.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\AS051574\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\AS051574\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\AS051574\Documents\Arduino\libraries -fqbn=arduino:samd:mkr1000 -vid-pid=0X2341_0X824E -ide-version=10800 -build-path C:\Users\AS051574\AppData\Local\Temp\arduino_build_34614 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino8 -prefs=runtime.tools.openocd.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0 -prefs=runtime.tools.bossac.path=C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -verbose C:\Users\AS051574\Documents\Arduino\omat\mkr1000webserver20160110\mkr1000webserver20160110.ino
Using board 'mkr1000' from platform in folder: C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11
Using core 'arduino' from platform in folder: C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11
Detecting libraries used...
"C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10800 -DARDUINO_SAMD_MKR1000 -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x824e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Genuino MKR1000"' "-IC:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\variants\mkr1000" "C:\Users\AS051574\AppData\Local\Temp\arduino_build_34614\sketch\mkr1000webserver20160110.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10800 -DARDUINO_SAMD_MKR1000 -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x824e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Genuino MKR1000"' "-IC:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\AS051574\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\variants\mkr1000" "C:\Users\AS051574\AppData\Local\Temp\arduino_build_34614\sketch\mkr1000webserver20160110.ino.cpp" -o "C:\Users\AS051574\AppData\Local\Temp\arduino_build_34614\preproc\ctags_target_for_gcc_minus_e.cpp"
exit status 1
Error compiling for board Arduino/Genuino MKR1000.

Error compiling for board Arduino/Genuino MKR1000.

Well, it's obvious that the code is all whacked out. Good luck fixing the problem, since you didn't bother posting the code that generates the error.

OK code is bad... Should I assume that all examples are not tested? I did not attach code since it is example from Arduino IDE without any changes.

Should I assume that all examples are not tested?

No. But, that does NOT mean that all of them have been tested on every Arduino variant.

I did not attach code since it is example from Arduino IDE without any changes.

Is the example appropriate for your Arduino variant? Regardless, that is not an excuse for not posting the code that you have questions about.

The first thing to test is whether the code compiles for some other board.

Thanks for the hint to try to compile with different board! Compile was OK with nano board.
Problem still is that IDE does not provide much info where to look with error in first post.

Code attached

mkr1000webserver20160110.ino (3.87 KB)

WiFi101 library

This library allows you to use the Arduino WiFi Shield 101 and the MKR1000 board.

Considering the circumstances it's entirely reasonable to suspect a bug here. Can you try a fresh install of Arduino (1.8.1) in a separate directory and see if the problem persists. I tried to replicate your issue but WiFiWebServer compiles fine to a MKR1000 target for me.

Just for fun Im trying Arduino 1.8.0, Arduino SAMD Boards V1.6.11, WiFi101 Library 0.12.0. The WiFiWebServer example from the WiFi101 library compiled without error.

A bunch of people have had IDE problems, including IDE crashes and bizarre compile errors, when they install a new version of the IDE. At least some of those problems seem to be caused by incompatible executables and preference files that the IDE saves outside the IDE installation directory. Perhaps that is what is causing your particular problem. In such cases it appears that the fix is to delete or rename the old "Arduino15" directory and re-install the new IDE.

On Mac OS X:
/Users/(username)/Library/Arduino15 (a.k.a. ~/Library/Arduino15)
(Note: The 'Library' folder is greyed out in Finder. The folder can't be opened with a double-click. To browse the contents of 'Library', ctrl-click on it and select "Open in New Tab" from the pop-up menu.)

On Windows delete or rename both:
Arduino IDE 1.6.5r5 and previous: C:\Users(username)\AppData\Roaming\Arduino15
Arduino IDE 1.6.6 and later: C:\Users(username)\AppData\Local\Arduino15

On Linux:
/home/(username)/.arduino15 (a.k.a. ~/.arduino15)
(Note: file/folder names starting with '.' are not normally shown in directory listings. Use 'ls -a' to get a directory listing that includes the hidden files.)

Yesterday I was working with my "office" computer. Win 7 and I used IDE 1.8.0 with results above.
In the evening I tested for fun my private win 10 pc with IDE 1.8.1 from Windows store and it compiles MKR1000 with same examples.

So from my point of view this is resolved, but I can make bug report if resonable.