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.

Compiler/TMS320F28075: lnk2000 fatal error: source line too long

Part Number: TMS320F28075

Tool/software: TI C/C++ Compiler

Hi,

we are developing an application for the TMS320F28075 using the C2000 in Version 15.12.4. We have applied some changes to our OBJ-file structure and now I am getting the following error message when linking with lnk2000:

<PATH_TO_OBJS>/obj_files.lkf, line 83: fatal error: source line too long

In fact there is a pretty long line. Is there a way to changes the maximum length of line in a lkf-file for lnk2000? I could not find any documentation about that.

Best regards,

Stefan

  • I have an idea.  But I am not confident about it.  It would help if I could see the problem line.  Please attach the file obj_files.lkf to your next post.  So, the forum will accept it, add the file extension .txt to it.  If you don't want to submit the entire file, then copy just line 83 into a text file, and attach that.

    Thanks and regards,

    -George

  • Hi George,

    thanks for your reply. I have appended a file with the problematic line. I have scrambled the path a bit, but the length is the same.

    obj_files.txt
    --define=OBJ_PATH=X:\RQPTYRCY\XSR\YSYQTQPSIC_MPXUlAQ_9_7\SASXBPX\CPXY\XSR\ARCUYSS\_PBT\_PBT__APK_II__SURYQBODOPS__XYZ_II__QYAL_HW_12345 

    Additionally I will check if this line is really necessary for the linker.

  • Unfortunately, I cannot find a way to make this work.  I'm afraid you have no choice but to change parts of that long directory path so that it is shorter.

    The linker should handle path names that are supported by the host system.  I filed the entry CODEGEN-5905 in the SDOWP system to have this investigated.  You are welcome to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George