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

Unable to compile with the latest unofficial SDK #4

Open
e-dredon opened this issue Jun 13, 2015 · 3 comments
Open

Unable to compile with the latest unofficial SDK #4

e-dredon opened this issue Jun 13, 2015 · 3 comments

Comments

@e-dredon
Copy link

Hello.

I'm in trouble compiling with the 2.0.6 Unofficial SDK / Eclipse LUNA 4.4.1
the first error is reported on Adafruit_ILI9341_fast_as.h:41
os_random(); has redundant occurance. I just commented the line.
//int os_random();
then i get another fatal error in user_main.cpp:66
os_update_cpu_frequency was not declared in this scope;
I don't know where and how to declare the function.

Some help would be greatly appreciated.

Best regards,

@Sermus
Copy link
Owner

Sermus commented Jun 13, 2015

Just comment it as well

Andrey.
Sent from my mobile device.
13 июня 2015 г. 9:31 пользователь "e-dredon" [email protected]
написал:

Hello.

I'm in trouble compiling with the 2.0.6 Unofficial SDK / Eclipse LUNA 4.4.1
the first error is reported on Adafruit_ILI9341_fast_as.h:41
os_random(); has redundant occurance. I just commented the line.
//int os_random();
then i get another fatal error in user_main.cpp:66
os_update_cpu_frequency was not declared in this scope;
I don't know where and how to declare the function.

Some help would be greatly appreciated.

Best regards,


Reply to this email directly or view it on GitHub
#4.

@e-dredon
Copy link
Author

Thanks for your fast answer... Ok so I just commented the line 65 in user_main.cpp
Then I got some more issues.

c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: cannot open linker script file c:/Espressif/ESP8266_SDK/ld/eagle.app.v6.cpp.ld: Invalid argument
C:/Espressif/examples/ESP8266_Adafruit_ILI9341/Makefile:220: recipe for target 'build/app.out' failed
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe: *** [build/app.out] Error 1

It seems the makefile has to be modifed in line 149
LD_SCRIPT = eagle.app.v6.cpp.ld
if i'm not mistaken the filename has changed in the latest SDK.
LD_SCRIPT = eagle.app.v6.ld

Check...

But i'm now facing to those errors :

c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: build/app.out section .text' will not fit in regioniram1_0_seg'
c:/Espressif/ESP8266_SDK/lib\libmain.a(app_main.o): In function user_uart_wait_tx_fifo_empty': (.irom0.text+0x340): undefined reference touser_rf_pre_init'
c:/Espressif/ESP8266_SDK/lib\libmain.a(app_main.o): In function user_uart_wait_tx_fifo_empty': (.irom0.text+0x458): undefined reference touser_rf_pre_init'
build/app_app.a(routines.o): In function operator delete[](void*)': routines.cpp:(.text+0x4c): undefined reference to__init_array_start'
routines.cpp:(.text+0x50): undefined reference to `__init_array_end'
collect2.exe: error: ld returned 1 exit status
C:/Espressif/examples/ESP8266_Adafruit_ILI9341/Makefile:220: recipe for target 'build/app.out' failed
mingw32-make.exe: *** [build/app.out] Error 1

Finally i just changed the SDK_BASE to revert to the 095 and it compiles properly.
SDK_BASE ?= c:/Espressif/ESP8266_SDK_095

Hope you will work on a fix for the latest SDK. It's far beyond my current C/++ skills...

@rith87
Copy link

rith87 commented Jul 24, 2015

I hit the two errors from routines.o. You might want to check out http://www.esp8266.com/viewtopic.php?f=9&t=478 on how to work around those errors.

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

3 participants