This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Beginning

how do I fix this?

lc -lgcc -ldrivers -lutils -lplatform -lmmcsd -lc -lgcc
C:\tools\linaro\bin\arm-none-eabi-ld.exe: cannot find -lc
C:\tools\linaro\bin\arm-none-eabi-ld.exe: cannot find -lgcc
C:\tools\linaro\bin\arm-none-eabi-ld.exe: cannot find -lc
C:\tools\linaro\bin\arm-none-eabi-ld.exe: cannot find -lgcc

  • Can you provide more details? What is the package, for which processor, etc.

  • I am using beaglebone black.

    Trying to do this;

    Setting Up The Tool Chain

    Windows/Cygwin Linaro arm-none-eabi (command line): 
    1. If a Windows host is used, then Cygwin needs to be installed for gcc build. 
    2. Application makefiles invoke library makefiles internally. 
    3. PATH environment variable should contain the path of the compiler/tool chain. 
    4. LIB_PATH DOS shell environment variable points to the Linaro installation: Ex: LIB_PATH=C:\tools\Linaro. 
    5. "set CYGPATH=cygpath" to convert Windows native style filenames to POSIX style file names. Not doing this might lead to linker errors while trying to find libc path. 
    6. Ensure that the Linaro installation path does not contain any white space 

    this is the output;

    /cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone
    $ make
    make[1]: Entering directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/platform'
    make[1]: Nothing to be done for 'all'.
    make[1]: Leaving directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/platform'
    make[1]: Entering directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/bootloader'
    make TARGET_MODE=debug lib
    make[2]: Entering directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/bootloader'
    make[3]: Entering directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/drivers'
    make[3]: 'debug' is up to date.
    make[3]: Leaving directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/drivers'
    make[3]: Entering directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/platform'
    make[3]: 'debug' is up to date.
    make[3]: Leaving directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/platform'
    make[3]: Entering directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/utils'
    make[3]: 'debug' is up to date.
    make[3]: Leaving directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/utils'
    make[3]: Entering directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/mmcsdlib'
    make[3]: 'debug' is up to date.
    make[3]: Leaving directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/mmcsdlib'
    make[2]: Leaving directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/bootloader'
    make TARGET_MODE=Debug bin
    make[2]: Entering directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/bootloader'
    arm-none-eabi-gcc -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -c -g -mlong-calls -fdata-sections -funsigned-char -ffunction-sections -Wall -I../../../../../..//include -I../../../../../..//include/hw -I../../../../../..//include/armv7a -I../../../../../..//include/armv7a/am335x -I../../../../../..//grlib/include -I../../../../../..//usblib/include -I../../../../../..//ipclite/include -I../../../../../..//nandlib/include -I../../../../../..//mmcsdlib/include -I../../../../../..//bootloader/include -I../../../../../../third_party/fatfs/src -I../../../../../..//norlib/include -I"/cygdrive/c/tools/linaro/include" -Dgcc -Dam335x -Dbeaglebone -D SUPPORT_UNALIGNED -D MMCSD -DUARTCONSOLE -D MMCSD -D am335x -I../../../../../../bootloader/include -I../../../../../../bootloader//include/armv7a/am335x ../../../../../../bootloader//src/bl_hsmmcsd.c ../../../../../..//third_party/fatfs/src/ff.c ../../../../../..//third_party/fatfs/port/fat_mmcsd.c ../../../../../../bootloader/src/bl_main.c ../../../../../../bootloader//src/bl_copy.c ../../../../../../bootloader/src/armv7a/gcc/*.S ../../../../../..//system_config/armv7a/cache.c ../../../../../..//system_config/armv7a/mmu.c ../../../../../..//system_config/armv7a/gcc/cp15.S ../../../../../..//system_config/armv7a/am335x/device.c ../../../../../../bootloader/src/armv7a/am335x/bl_platform.c
    arm-none-eabi-ld -e Entry -u Entry -u __aeabi_uidiv -u __aeabi_idiv --gc-sections -L"/cygdrive/c/tools/linaro/arm-none-eabi/lib/" -L"/cygdrive/c/tools/linaro/lib/gcc/arm-none-eabi/4.7.3/" -L../../../../../..//binary/armv7a/gcc/am335x/drivers/Debug -L../../../../../..//binary/armv7a/gcc/am335x/beaglebone/platform/Debug -L../../../../../..//binary/armv7a/gcc/am335x/system_config/Debug -L../../../../../..//binary/armv7a/gcc/am335x/ipclite/Debug -L../../../../../..//binary/armv7a/gcc/utils/Debug -L../../../../../..//binary/armv7a/gcc/am335x/usblib/Debug -L../../../../../..//binary/armv7a/gcc/grlib/Debug -L../../../../../..//binary/armv7a/gcc/nandlib/Debug -L../../../../../..//binary/armv7a/gcc/mmcsdlib/Debug -L/Debug -o Debug_MMCSD/boot.out -Map Debug_MMCSD/boot.map \
    Debug_MMCSD/*.o* --defsym BOOT_START_ADDR=0x402F0400 -T boot.lds -lc -lgcc -ldrivers -lutils -lplatform -lmmcsd -lc -lgcc -ldrivers -lutils -lplatform -lmmcsd
    C:\tools\linaro\bin\arm-none-eabi-ld.exe: cannot find -lc
    C:\tools\linaro\bin\arm-none-eabi-ld.exe: cannot find -lgcc
    C:\tools\linaro\bin\arm-none-eabi-ld.exe: cannot find -lc
    C:\tools\linaro\bin\arm-none-eabi-ld.exe: cannot find -lgcc
    makefile:139: recipe for target 'bin' failed
    make[2]: *** [bin] Error 1
    make[2]: Leaving directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/bootloader'
    makefile:121: recipe for target 'debug' failed
    make[1]: *** [debug] Error 2
    make[1]: Leaving directory '/cygdrive/c/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/bootloader'
    makefile:72: recipe for target 'all' failed
    make: *** [all] Error 2

    Thank You

  • I'm moving this to the StarterWare forum.

    Best regards,
    Miroslav

  • Hi Ray,

    You are facing the issues because the make file is not able to locate the toolchain files. Please set the environment variables PATH and LIB_PATH to point correctly to toolchain installations.

    The link below gives an example path variable settings, set your PATH variables suitably according to the location where the toolchain is installed.

    http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Environment_Setup#GCC.C2.A0from_Command_Line_in.C2.A0Linux.2FCygwin

    Regards

    Anant Pai