Go Down

Topic: Problem including library uploaded to the Online Editor (Read 310 times) previous topic - next topic

tko1982

Hello,

I've imported a library to the Online Editor, however when I try to include the library, I get this error message:
Code: [Select]
/tmp/086242753/MenuTest/MenuTest.ino:2:27: fatal error: DS3231_Simple.h: No such file or directory

The library (found here: https://github.com/sleemanj/DS3231_Simple) imported fine, and shows up on the custom tab in the Library's area of the Online Editor.

I've also attached the ZIP file as I imported it to the Online Editor.

Here is the relevant code in my Sketch:

Code: [Select]
// DS3231_Simple - Version: Latest
#include <DS3231_Simple.h>

// LiquidCrystal_I2C - Version: Latest
#include <LiquidCrystal_I2C.h>

// Wire - Version: Latest
#include <Wire.h>


I went through the same process with the LiquidCrystal_I2C.h library, and it is working fine.  Any ideas what I'm doing wrong with the DS3231_Simple.h library?

Edited to add:
OS: Windows 10 64bit
Browser: Firefox 62.0.3 (64-bit)
Board: Uno
Desktop IDE: none

Thank you for your help!

Tom

pert

I imported that library and compiled a sketch that included it and I didn't get any error. However, this problem has been reported by several other people recently.

If you can't find a solution, the workaround would be to use the standard Arduino IDE, which you can download here:
http://www.arduino.cc/en/Main/Software

tko1982

OK, thanks for trying that out!  Did you use the zip that I attached here? Or download from the github link?

I'll try deleting the library and re-importing it, maybe with Chrome this time.

Thanks again!

pert

I used the zip that you attached. I did use Chrome. I normally use Firefox but I have the NoScript extension installed in Firefox and it causes problems with Arduino Web Editor even when it's whitelisted so I can't use Arduino Web Editor in Firefox.

tko1982

I switched to Chrome, deleted the library, re-imported it, re-included it, and I'm still getting the "No such file or directory" error at compile.

Worried that it might be something to do with my sketch, I tried creating a new sketch and including the library; same error persists.

Any other ideas? As mentioned, I know I can work around this by installing the desktop IDE, but it would be nice to be able to get this working on the Online Editor.

Thanks again for your help!

pert

I don't regularly use the Arduino Web Editor so I'm not an expert in troubleshooting it. Someone else with more experience might come along with an answer.

Until then, my advice is to look at the other recent posts in this forum section and perhaps the Chrome App section too:
http://forum.arduino.cc/index.php?board=112.0
to see if anyone else with the spurious "No such file or directory" error has found a solution.

smellai

Thanks for your report @tko1982, we'll try to find out what is happening

tko1982

Thanks for your report @tko1982, we'll try to find out what is happening
Great, thank you! Let me know if I can provide any more information!

matteosuppo

It was an error on our end. It should be solved now. Can you confirm?
http://www.google.it

Zahnweh

My sample library now works as ít should! Looks like the error is fixed.

Thx
Bernd

ballscrewbob

@rhein

Can you include the SHARE link in your next post please.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

dmakris

Hello!
I've imported DHT library in arduino web editor. When I import the library to a scetch, I'm getting the following error:

"....
Using library DHT_Library in folder: /tmp/826760105/custom/DHT_Library (legacy)

lto1: fatal error: bytecode stream generated with LTO version 3.0 instead of the expected 4.1

compilation terminated.

lto-wrapper: fatal error: ./opt/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-gcc returned 1 exit status

compilation terminated.

/home/ubuntu/opt/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld: error: lto-wrapper failed

collect2: error: ld returned 1 exit status

exit status 1
..."

I've attached for You one of the library ZIPs that I imported to the Web Editor Libraries, which works fine in Arduino IDE.
Any ideas to solve that problem please???

ballscrewbob

#12
Oct 30, 2018, 07:21 pm Last Edit: Oct 30, 2018, 07:24 pm by ballscrewbob
Not sure its just your LIB.

LTO (link time optimisation) AFAIK is part of CREATE.

It is also showing on some non DHT libs.
That would indicate a CREATE issue.

EDIT:
Issue passed along to team.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

pert

Hello!
I've imported DHT library in arduino web editor. When I import the library to a scetch, I'm getting the following error:

"....
Using library DHT_Library in folder: /tmp/826760105/custom/DHT_Library (legacy)

lto1: fatal error: bytecode stream generated with LTO version 3.0 instead of the expected 4.1

compilation terminated.

lto-wrapper: fatal error: ./opt/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-gcc returned 1 exit status

compilation terminated.

/home/ubuntu/opt/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld: error: lto-wrapper failed

collect2: error: ld returned 1 exit status

exit status 1
..."

I've attached for You one of the library ZIPs that I imported to the Web Editor Libraries, which works fine in Arduino IDE.
Any ideas to solve that problem please???
This is a different bug from the original one reported in this thread. For further discussion, please use one of the dedicated threads for this specific bug:

Go Up