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

/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/8.4.0/../../../../xtensa-lx106-elf/lib/crt0.o:(.literal+0x0): undefined reference to `main' collect2: error: ld returned 1 exit status make[1]: *** [/Users/xu756/Downloads/hello_world/build/bootloader/bootloader.elf] Error 1 make: *** [/Users/xu756/Downloads/hello_world/build/bootloader/bootloader.bin] Error 2 #1251

Open
xu756 opened this issue Sep 11, 2023 · 1 comment

Comments

@xu756
Copy link

xu756 commented Sep 11, 2023

Have installed following [this guide](xtensa-lx106-elf/lib/crt0.o:(.literal+0x0): undefined reference to `main'). When doing make got the error



# xu756 @ bogon in ~/Downloads/hello_world [17:51:17] 
$ make           
Toolchain path: /Users/xu756/esp/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc
Toolchain version: esp-2020r3-49-gd5524c1
Compiler version: 8.4.0
Python requirements from /Users/xu756/esp/ESP8266_RTOS_SDK/requirements.txt are satisfied.
Building partitions from /Users/xu756/esp/ESP8266_RTOS_SDK/components/partition_table/partitions_singleapp.csv...
CC build/bootloader/main/bootloader_start.o
AR build/bootloader/main/libmain.a
CC build/bootloader/bootloader_support/src/bootloader_clock.o
CC build/bootloader/bootloader_support/src/bootloader_common.o
CC build/bootloader/bootloader_support/src/bootloader_flash.o
CC build/bootloader/bootloader_support/src/bootloader_init.o
CC build/bootloader/bootloader_support/src/bootloader_random.o
CC build/bootloader/bootloader_support/src/bootloader_sha.o
CC build/bootloader/bootloader_support/src/bootloader_utility.o
CC build/bootloader/bootloader_support/src/efuse.o
CC build/bootloader/bootloader_support/src/esp_image_format.o
CC build/bootloader/bootloader_support/src/flash_encrypt.o
CC build/bootloader/bootloader_support/src/flash_partitions.o
CC build/bootloader/bootloader_support/src/flash_qio_mode.o
CC build/bootloader/bootloader_support/src/secure_boot.o
CC build/bootloader/bootloader_support/src/secure_boot_signatures.o
AR build/bootloader/bootloader_support/libbootloader_support.a
CC build/bootloader/spi_flash/src/spi_flash.o
CC build/bootloader/spi_flash/src/spi_flash_raw.o
CC build/bootloader/spi_flash/port/port.o
AR build/bootloader/spi_flash/libspi_flash.a
CC build/bootloader/log/log.o
AR build/bootloader/log/liblog.a
CC build/bootloader/esp8266/source/ets_printf.o
CC build/bootloader/esp8266/source/crc.o
CC build/bootloader/esp8266/source/esp_fast_boot.o
AR build/bootloader/esp8266/libesp8266.a
LD build/bootloader/bootloader.elf
/Users/xu756/esp/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/8.4.0/../../../../xtensa-lx106-elf/bin/ld: /Users/xu756/esp/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/8.4.0/../../../../xtensa-lx106-elf/lib/crt0.o:(.literal+0x0): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[1]: *** [/Users/xu756/Downloads/hello_world/build/bootloader/bootloader.elf] Error 1
make: *** [/Users/xu756/Downloads/hello_world/build/bootloader/bootloader.bin] Error 2

# xu756 @ bogon in ~/Downloads/hello_world [17:51:24] C:2
$ 


macos13.5

@tikhonp
Copy link

tikhonp commented Nov 1, 2024

I have the same problem. Did you figured out a solution?

I'm trying to compile it on MacOS 15.1 with Apple M2 Pro silicone. (Darwin-arm64)

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