r44083
Member
Пытаюсь собрать проект из примеров к Mongoose для ESP8266.
Во время линковки получаю кучу ошибок. Похоже что все они связаны с stdlib.
Вот часть лога билда проекта, где начинается линковка:
Makefile прикреплён к теме.
Что может к этому приводить?
Во время линковки получаю кучу ошибок. Похоже что все они связаны с stdlib.
Вот часть лога билда проекта, где начинается линковка:
Код:
...
- linking...
xtensa-lx106-elf-gcc -Teagle.app.v6.ld -Lsrc/hal/ESP8266_SDK/lib -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lcirom -lcrypto -lespconn -lespnow -lfreertos -lgcc -ljson -llwip -lmain -lnet80211 -lnopoll -lphy -lpp -lpwm -lspiffs -lssc -lwpa -lwps -lhal -Wl,--end-group -Wl,-Map="out/lst/ESP8266-rtos-hal.map",--cref out/obj/main.o out/obj/macros.o out/obj/drv_di.o out/obj/xprintf.o out/obj/esp_libc.o out/obj/mongoose.o out/obj/hal_gpio.o out/obj/hal_systick.o out/obj/hal_tim.o -o out/bin/ESP8266-rtos-hal.elf
f:/soft/1-ready/sublimetext/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/5.1.0/../../../../xtensa-lx106-elf/bin/ld.exe: out/bin/ESP8266-rtos-hal.elf section `.text' will not fit in region `iram1_0_seg'
out/obj/mongoose.o: In function `blk0':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1226: undefined reference to `__moddi3'
out/obj/mongoose.o: In function `c_itoa':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1510: undefined reference to `__moddi3'
out/obj/mongoose.o: In function `parse_uri_component':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:4809: undefined reference to `__ctype_ptr__'
out/obj/mongoose.o: In function `mg_socket_if_get_conn_addr':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:3768: undefined reference to `snprintf'
out/obj/mongoose.o: In function `mg_hexdump_n':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9370: undefined reference to `snprintf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9372: undefined reference to `snprintf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9373: undefined reference to `snprintf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9380: undefined reference to `snprintf'
out/obj/mongoose.o:F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9383: more undefined references to `snprintf' follow
out/obj/mongoose.o: In function `mg_open_listening_socket':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:3266: undefined reference to `fprintf'
out/obj/mongoose.o: In function `mg_socket_if_remove_conn':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:3266: undefined reference to `fprintf'
out/obj/mongoose.o: In function `mg_tun_if_connect_udp':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:3266: undefined reference to `vfprintf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:3266: undefined reference to `fputc'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:3266: undefined reference to `fflush'
out/obj/mongoose.o: In function `cs_log_print_prefix':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:300: undefined reference to `vfprintf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:301: undefined reference to `fputc'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:309: undefined reference to `fflush'
out/obj/mongoose.o: In function `cs_base64_encode':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:458: undefined reference to `fputc'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:458: undefined reference to `fputc'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:458: undefined reference to `fputc'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:459: undefined reference to `fputc'
out/obj/mongoose.o: In function `cs_fprint_base64':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:474: undefined reference to `fputc'
out/obj/mongoose.o: In function `cs_base64_decode':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:530: undefined reference to `gettimeofday'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:531: undefined reference to `gettimeofday'
out/obj/mongoose.o: In function `MD5_Final':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:977: undefined reference to `__assert_func'
out/obj/mongoose.o: In function `mbuf_resize':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1050: undefined reference to `__assert_func'
out/obj/mongoose.o: In function `mbuf_trim':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1059: undefined reference to `__assert_func'
out/obj/mongoose.o: In function `cs_to_hex':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1754: undefined reference to `sscanf'
out/obj/mongoose.o: In function `cs_md5':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:992: undefined reference to `sscanf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1001: undefined reference to `sscanf'
out/obj/mongoose.o: In function `cs_from_hex':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1775: undefined reference to `sscanf'
out/obj/mongoose.o: In function `mg_ncasecmp':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1804: undefined reference to `sscanf'
out/obj/mongoose.o: In function `mg_vcasecmp':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1148: undefined reference to `vsnprintf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1154: undefined reference to `vsnprintf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:1154: undefined reference to `vsnprintf'
out/obj/mongoose.o: In function `mg_parse_address':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:2367: undefined reference to `vsnprintf'
out/obj/mongoose.o: In function `mg_url_decode':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:6396: undefined reference to `snprintf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:6397: undefined reference to `sscanf'
out/obj/mongoose.o: In function `mg_http_parse_header':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:6518: undefined reference to `strdup'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:6524: undefined reference to `strdup'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:6522: undefined reference to `atoi'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:6542: undefined reference to `strtoll'
out/obj/mongoose.o: In function `mg_get_http_basic_auth':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:6545: undefined reference to `atoi'
out/obj/mongoose.o: In function `mg_parse_multipart':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:7776: undefined reference to `strtoll'
out/obj/mongoose.o: In function `mg_register_http_endpoint':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:7806: undefined reference to `snprintf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:7812: undefined reference to `snprintf'
out/obj/mongoose.o: In function `mg_skip':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9211: undefined reference to `fputs'
out/obj/mongoose.o: In function `mg_parse_http':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:5282: undefined reference to `fputs'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:5295: undefined reference to `fclose'
out/obj/mongoose.o: In function `mg_http_parse_headers':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:5247: undefined reference to `fprintf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:5250: undefined reference to `fputs'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:5261: undefined reference to `fclose'
out/obj/mongoose.o: In function `mg_call':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:2030: undefined reference to `__assert_func'
out/obj/mongoose.o: In function `mg_if_poll':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:2087: undefined reference to `strerror'
out/obj/mongoose.o: In function `mg_mgr_free':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:2208: undefined reference to `strerror'
out/obj/mongoose.o: In function `mg_mgr_handle_conn':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:3514: undefined reference to `snprintf'
out/obj/mongoose.o: In function `mg_socket_if_poll':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:3649: undefined reference to `rand'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:3678: undefined reference to `rand'
out/obj/mongoose.o: In function `mg_printf_html_escape':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:6497: undefined reference to `sscanf'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:6505: undefined reference to `sscanf'
out/obj/mongoose.o: In function `mg_ws_handler':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9058: undefined reference to `__assert_func'
out/obj/mongoose.o: In function `mg_match_prefix_n':
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9494: undefined reference to `rand'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9498: undefined reference to `rand'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9498: undefined reference to `rand'
F:\simple_hal\ESP8266-rtos-hal/src/extra-lib/mongoose/mongoose.c:9501: undefined reference to `rand'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [out/bin/ESP8266-rtos-hal.elf] Error 1
make[1]: Leaving directory `F:/simple_hal/ESP8266-rtos-hal'
make: *** [all] Error 2
[Finished in 8.1s with exit code 2]
Makefile прикреплён к теме.
Что может к этому приводить?
Вложения
-
8 KB Просмотры: 6