Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Can't compile with newest RTOS SDK (1.4.5) #4

Open
eeyrw opened this issue Oct 17, 2016 · 0 comments
Open

Can't compile with newest RTOS SDK (1.4.5) #4

eeyrw opened this issue Oct 17, 2016 · 0 comments

Comments

@eeyrw
Copy link

eeyrw commented Oct 17, 2016

make[1]: Leaving directory `/mnt/Share/esp8266_iot_platform/libesphttpd'
xtensa-lx106-elf-gcc user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a upgrade/.output/eagle/debug/lib/libupgrade.a -o .output/eagle/debug/image/eagle.app.v6.out
/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find crt1-sim.o: No such file or directory
/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find _vectors.o: No such file or directory
/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lsim
/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lhandlers-sim
collect2: error: ld returned 1 exit status
make: *** [.output/eagle/debug/image/eagle.app.v6.out] Error 1

I have modified my makefile to solve the -lmXXXX link problem:

LINKFLAGS_eagle.app.v6 =
-L$(SDK_PATH)/lib
-Wl,--gc-sections
-nostdlib
-T$(LD_FILE)
-Wl,--no-check-sections
-u call_user_start
-Wl,-static
-Wl,--start-group
-lgcc
-lhal
-lphy
-lpp
-lnet80211
-lcrypto
-lwpa
-lmain
-lfreertos
-llwip
-lssl
-ljson
-lsmartconfig
-lpwm
-L./libesphttpd
-lesphttpd
-lwebpages-espfs
$(DEP_LIBS_eagle.app.v6)
-Wl,--end-group
-lmirom \

@eeyrw eeyrw changed the title Can't compile with newest RTOS SDK Can't compile with newest RTOS SDK (1.4.5) Oct 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant