Go Down

Topic: Error compiling for board Sanguino (Read 2985 times) previous topic - next topic

56Triker

Newbie - delima have a Arduino Uno 1.8.5 and am attempting to upgrade a Creality 3D V1.1.2 melsi board for a Creality CR-10 3D printer . Have moved the Sanguino zipped folder all over my computer. Get this error " Error compiling for board Sanguino" in all configurations. Have been Googling and Face booking for 2 days with no avail. Using a Windows 10 Home. At the limit of my knowledge.
https://github.com/Lauszus/Sanguino is the zip file

I hope someone understands my delima.
TIA RJ

spycatcher2k

Quote
am attempting to upgrade a Creality 3D V1.1.2 melsi board for a Creality CR-10 3D printer
But this is the ARDUINO forum (Hint is in the address bar) - We don't do support for commercial products here! (Hint Hint).
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

pert

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

DO NOT post it as a PDF. Why would you do that? Nobody wants to download and open your PDF just to see if we can help you for free. If you ever need to post something that exceeds that forum's 9000 character limit then do so as a .txt file.

56Triker

#3
Jun 24, 2018, 06:41 pm Last Edit: Jun 24, 2018, 06:45 pm by 56Triker
spycatcher2k Why this attitude when it is an arduino UNO that is giving me the error. What you don't read any better than I?

pert: Thank You I attempted to understand the protocols, just not sure what this "  USING CODE TAGS (</> button on the toolbar ". Does this mean the whole error  (4 pages or just the end?)

Example < Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
Using library U8glib at version 1.19.1 in folder: C:\Users\rjm\Documents\Arduino\libraries\U8glib
exit status 1
#error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
Specified folder/zip file does not contain a valid library
>

pert

pert: Thank You I attempted to understand the protocols, just not sure what this "  USING CODE TAGS (</> button on the toolbar ". Does this mean the whole error  (4 pages or just the end?)
Well, at least you could have used code tags either way...

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
Using library U8glib at version 1.19.1 in folder: C:\Users\rjm\Documents\Arduino\libraries\U8glib
exit status 1
#error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
The error seems pretty clear to me. You have Tools > Board > Arduino/Genuino Uno selected but the code is written for Sanguino. So select Tools > Board > Sanguino.

56Triker

Still don't understand code tagging, that you are looking for, Please include an example.
I have Sanguino selected in the C:\Users\rjm\Documents\Arduino\libraries\Sanguino-master ang get this error.
Arduino: 1.6.13 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\rjm\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\rjm\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\rjm\Documents\Arduino\libraries -fqbn=Sanguino:avr:sanguino:cpu=atmega1284p -vid-pid=0X2341_0X0043 -ide-version=10613 -build-path C:\Users\rjm\AppData\Local\Temp\arduino_build_582320 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avrdude.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.arduinoOTA.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -verbose C:\Users\rjm\Documents\Arduino\Sketch\_18-6-25_Marlin\_18-6-25_Marlin.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\rjm\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\rjm\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\rjm\Documents\Arduino\libraries -fqbn=Sanguino:avr:sanguino:cpu=atmega1284p -vid-pid=0X2341_0X0043 -ide-version=10613 -build-path C:\Users\rjm\AppData\Local\Temp\arduino_build_582320 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avrdude.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.arduinoOTA.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -verbose C:\Users\rjm\Documents\Arduino\Sketch\_18-6-25_Marlin\_18-6-25_Marlin.ino
Using board 'sanguino' from platform in folder: C:\Users\rjm\AppData\Local\Arduino15\packages\Sanguino\hardware\avr\1.0.2
Using core 'arduino' from platform in folder: C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21
Detecting libraries used...
C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR   "-IC:\Users\rjm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\rjm\AppData\Local\Arduino15\packages\Sanguino\hardware\avr\1.0.2\variants\sanguino" "C:\Users\rjm\AppData\Local\Temp\arduino_build_582320\sketch\_18-6-25_Marlin.ino.cpp" -o "nul"
C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR   "-IC:\Users\rjm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\rjm\AppData\Local\Arduino15\packages\Sanguino\hardware\avr\1.0.2\variants\sanguino" "C:\Users\rjm\AppData\Local\Temp\arduino_build_582320\sketch\_18-6-25_Marlin.ino.cpp" -o "C:\Users\rjm\AppData\Local\Temp\arduino_build_582320\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\Users\rjm\Documents\Arduino\Sketch\_18-6-25_Marlin\_18-6-25_Marlin.ino:44:101: fatal error: U8glib.h: No such file or directory

     #include <U8glib.h> // library for graphics LCD by Oli Kraus (https://code.google.com/p/u8glib/)

compilation terminated.

exit status 1
Error compiling for board Sanguino.


pert

Still don't understand code tagging, that you are looking for, Please include an example.
This is how your output would have looked if you used code tags:
Code: [Select]
Arduino: 1.6.13 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\rjm\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\rjm\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\rjm\Documents\Arduino\libraries -fqbn=Sanguino:avr:sanguino:cpu=atmega1284p -vid-pid=0X2341_0X0043 -ide-version=10613 -build-path C:\Users\rjm\AppData\Local\Temp\arduino_build_582320 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avrdude.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.arduinoOTA.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -verbose C:\Users\rjm\Documents\Arduino\Sketch\_18-6-25_Marlin\_18-6-25_Marlin.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\rjm\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\rjm\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\rjm\Documents\Arduino\libraries -fqbn=Sanguino:avr:sanguino:cpu=atmega1284p -vid-pid=0X2341_0X0043 -ide-version=10613 -build-path C:\Users\rjm\AppData\Local\Temp\arduino_build_582320 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avrdude.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.arduinoOTA.path=C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -verbose C:\Users\rjm\Documents\Arduino\Sketch\_18-6-25_Marlin\_18-6-25_Marlin.ino
Using board 'sanguino' from platform in folder: C:\Users\rjm\AppData\Local\Arduino15\packages\Sanguino\hardware\avr\1.0.2
Using core 'arduino' from platform in folder: C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21
Detecting libraries used...
C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR   "-IC:\Users\rjm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\rjm\AppData\Local\Arduino15\packages\Sanguino\hardware\avr\1.0.2\variants\sanguino" "C:\Users\rjm\AppData\Local\Temp\arduino_build_582320\sketch\_18-6-25_Marlin.ino.cpp" -o "nul"
C:\Users\rjm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR   "-IC:\Users\rjm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\rjm\AppData\Local\Arduino15\packages\Sanguino\hardware\avr\1.0.2\variants\sanguino" "C:\Users\rjm\AppData\Local\Temp\arduino_build_582320\sketch\_18-6-25_Marlin.ino.cpp" -o "C:\Users\rjm\AppData\Local\Temp\arduino_build_582320\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\Users\rjm\Documents\Arduino\Sketch\_18-6-25_Marlin\_18-6-25_Marlin.ino:44:101: fatal error: U8glib.h: No such file or directory

     #include <U8glib.h> // library for graphics LCD by Oli Kraus (https://code.google.com/p/u8glib/)

compilation terminated.

exit status 1
Error compiling for board Sanguino.

If your browser doesn't show the posting toolbar then you can just manually add the code tags:
[code]text to be put in code tags here[/code]

C:\Users\rjm\Documents\Arduino\Sketch\_18-6-25_Marlin\_18-6-25_Marlin.ino:44:101: fatal error: U8glib.h: No such file or directory

     #include <U8glib.h> // library for graphics LCD by Oli Kraus (https://code.google.com/p/u8glib/)
When you see a "No such file or directory" error it almost always means you need to install the library that contains the missing file.

Often the code you're compiling will come with documentation (either a comment or separate document) that tells you where to get the library dependencies.

In other cases the author of the code will not have been so kind and you'll need to go on a hunt for the missing library.

A good place to start is the Arduino IDE's Library Manager:
  • Sketch > Include Library > Manage Libraries...
  • In the "Filter your search..." box, type some keywords you have gleaned from the missing file name.
  • Scroll through the results for the right library. Click on it.
  • Click "Install".
  • Wait for installation to finish.
  • Click "Close".
  • Try compiling your code again.


If you have no luck in Library Manager then load up your favorite search engine and do a search for the missing filename. You will often get multiple results. If you have a lot of results you might add "arduino" as an additional search keyword. I will usually prefer results on github.com since that is where most Arduino libraries are hosted and downloading from there is fast and easy. In some cases there will be multiple libraries that contain the given filename and you'll need to do some evaluation to determine which seems the most appropriate, then try it out. After downloading the library you found you'll need to install it. This requires a different process than the Library Manager installation. You will find instructions here:

PHUZZYthecat

<Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

C:\Users\Nat McVeigh\Documents\Arduino\libraries\U8glib\src\clib\u8g_font.c: In function 'u8g_font_get_word':

C:\Users\Nat McVeigh\Documents\Arduino\libraries\U8glib\src\clib\u8g_font.c:104:1: internal compiler error: Segmentation fault

 }

 ^

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> for instructions.

lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/windowsapps/arduinollc.arduinoide_1.8.19.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Sanguino.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
>

pert

<Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

C:\Users\Nat McVeigh\Documents\Arduino\libraries\U8glib\src\clib\u8g_font.c: In function 'u8g_font_get_word':

C:\Users\Nat McVeigh\Documents\Arduino\libraries\U8glib\src\clib\u8g_font.c:104:1: internal compiler error: Segmentation fault

 }

 ^

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> for instructions.

lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/windowsapps/arduinollc.arduinoide_1.8.19.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Sanguino.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
>
This bug is specific to the 5.4.0-atmel3.6.1-arduino2 version of avr-gcc used by Arduino AVR Boards 1.6.22 and newer. It has been reported here:
https://github.com/arduino/Arduino/issues/7949

Here's the traditional workaround:
  • Tools > Board > Boards Manager
  • Wait for downloads to finish.
  • When you move the mouse pointer over "Arduino AVR Boards", you will see a "Select version" dropdown menu appear. Select "1.6.21".
  • Click "Install".
  • Wait for installation to finish.
  • Click "Close".

Due to a bug, this workaround doesn't work with Arduino IDE 1.8.6, but it will work with any other version of the Arduino IDE.

If you have File > Preferences > Check for updates on startup checked, the Arduino IDE may occasionally notify you that a new version of Arduino AVR Boards is available, you'll need to refrain from updating back to the new Arduino AVR Boards version, otherwise you'll be back to seeing the segmentation fault error again.


Alternate workaround:
One of the Arduino developers recently worked on this and claims to have fixed it. There is a special beta testing hardware package you can install via the Arduino IDE's Boards Manager that has the fix:
  • (In the Arduino IDE) File > Preferences
  • In the "Additional Boards Manager URLs" field, enter: http://downloads.arduino.cc/packages/package_avr_7.3.0_index.json
  • If you already have an additional Boards Manager URL in that field, you can separate multiple URLs with commas or click the button on the right side of the field to open a dialog that allows you to add each on its own line.
  • Click "OK"
  • Tools > Board > Boards Manager
  • Wait for the downloads to finish
  • Click on "Arduino AVR Boards by Arduino"
  • Click the "Update" button.
  • Wait for the update to finish.
  • Click "Close".

Go Up