Skip to content
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

Compiling i2c library gives string.h error #1

Open
rupin opened this issue Feb 15, 2015 · 1 comment
Open

Compiling i2c library gives string.h error #1

rupin opened this issue Feb 15, 2015 · 1 comment

Comments

@rupin
Copy link

rupin commented Feb 15, 2015

When I added the i2c driver, and ran make, i met with the following error.
/home/pi/esp8266/xtensa-toolchain-build/build-lx106/root/bin/xtensa-lx106-elf-gcc -mlongcalls -I/home/pi/esp8266/esp_iot_sdk_v0.9.3/include -Imyclib -Iinclude -Iuser -O2 -I/home/pi/esp8266/esp_iot_sdk_v0.9.3/include/ i2c/i2c.c user/user_main.c -flto -nostdlib -Wl,--relax -Wl,--gc-sections -L/home/pi/esp8266/esp_iot_sdk_v0.9.3/lib -L/home/pi/esp8266/xtensa-toolchain-build/build-lx106/gcc-4.9.1-elf/xtensa-lx106-elf/libgcc/libgcc.a /home/pi/esp8266/esp_iot_sdk_v0.9.3/lib/liblwip.a /home/pi/esp8266/esp_iot_sdk_v0.9.3/lib/libssl.a /home/pi/esp8266/esp_iot_sdk_v0.9.3/lib/libupgrade.a /home/pi/esp8266/esp_iot_sdk_v0.9.3/lib/libnet80211.a /home/pi/esp8266/esp_iot_sdk_v0.9.3/lib/liblwip.a /home/pi/esp8266/esp_iot_sdk_v0.9.3/lib/libwpa.a /home/pi/esp8266/esp_iot_sdk_v0.9.3/lib/libnet80211.a /home/pi/esp8266/esp_iot_sdk_v0.9.3/lib/libphy.a /home/pi/esp8266/esp_iot_sdk_v0.9.3/lib/libmain.a /home/pi/esp8266/esp_iot_sdk_v0.9.3/lib/libpp.a /home/pi/esp8266/xtensa-toolchain-build/build-lx106/gcc-4.9.1-elf/xtensa-lx106-elf/libgcc/libgcc.a -T /home/pi/esp8266/esp_iot_sdk_v0.9.3/ld/eagle.app.v6.ld -B/home/pi/esp8266/esp_iot_sdk_v0.9.3/lib -o image.elf
In file included from i2c/i2c.c:21:0:
/home/pi/esp8266/esp_iot_sdk_v0.9.3/include/osapi.h:8:20: fatal error: string.h: No such file or directory
#include <string.h>
^
compilation terminated.
user/user_main.c:1:20: fatal error: string.h: No such file or directory
#include <string.h>
^
compilation terminated.
Makefile:49: recipe for target 'image.elf' failed
make: *** [image.elf] Error 1

I am pretty sure my setup is broken, if you do have tips, please let me know.

@AuroraRAS
Copy link

Maybe you should follow these steps from this link:
https://github.com/esp8266/esp8266-wiki/wiki/Toolchain#installing-xtensa-libraries-and-headers

I had a same trouble and I fixed it.

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