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.

Executable Not generating for Ti Arm Clang Compiler 1.3.0.LTS because of linker Error

Hello Team,

we are trying to use TI_Arm_Clang_Compiler_1.3.0.LTS  windows version for building ti-processor-sdk-rtos-j721e-evm-08_05_00_11 MCAL on our environment

we are getting linking error as mentioned below

"C:/Projects/mcal_02_00_00_06/ti-cgt-armllvm_1.3.0.LTS/bin\\tiarmlnk" "-IC:/Projects/mcal_02_00_00_06/ti-cgt-armllvm_1.3.0.LTS\\lib" -o C:/work/workspace/ACP-8.8.7_ARM_TDA4VMCR5_ti/test_base/Compile/IN/Adc_ComTest_1/output/bin/ARM_TDA4VMCR5_Adc_ComTest_1.elf --search_path=@C:/work/workspace/ACP-8.8.7_ARM_TDA4VMCR5_ti/test_base/Compile/IN/Adc_ComTest_1/output/make/lnk.inc "C:/work/workspace/ACP-8.8.7_ARM_TDA4VMCR5_ti/test_base/Compile/IN/Adc_ComTest_1\\output\\generated\\TDA4XEVM-ticgt.ldscript" --map_file=C:/work/workspace/ACP-8.8.7_ARM_TDA4VMCR5_ti/test_base/Compile/IN/Adc_ComTest_1/output/bin/ARM_TDA4VMCR5_Adc_ComTest_1.map --start-group -llibc++.a -llibc++abi.a -llibc.a -llibsys.a -llibsysbm.a -llibclang_rt.builtins.a -llibclang_rt.profile.a --end-group
fatal error: no input files
tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)

currently we are using below syntax in our make file


tiarmclang.exe  -Xlinker --search_path=@$(LNK_INC) -v -Wl,$(GET_LOC_FILE) -o $@ -Wl,--map_file=$(MAPFILE)\


where LNK_INC contains all linker options., paths of external object files that need to be linked and also paths of libraries(.a) files that needs to be linked.

GET_LOC_FILE contains the path of linker descriptive file

MAPFILE is map file creation location and name

 

Please let us know, what change needs to be done to resolve this error and generate the map file and executable file accoringly

Regards,

Pradeep R

  • I cannot test to be sure, but I'm confident this is close ...

    tiarmclang.exe -v -o $@ -Wl,$(LNK_INC),$(GET_LOC_FILE),--map_file=$(MAPFILE)

    To understand why I don't use -Xlinker, and why the -Wl option is written that way, please see the Passing Options to the Linker part of the tiarmclang online documentation.

    The reason you see the diagnostic ...

    fatal error: no input files

    ... is that no object files are seen as an input.  I presume the object files are specified in the text files under the variables $(LNK_INC) or $(GET_LOC_FILE).

    Please let me know if this suggestion resolves the problem.

    Thanks and regards,

    -George