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.

"subdir_vars.mk:67: *** missing separator. Stop." Huh?

Guru 15580 points

Folks,

 Version: 5.1.0.09000 / C5515 compiler TI v4.40

Can someone help me decipher this cryptic  error message (who the heck writes these error messages anyway)?

**** Build of configuration Debug for project C5515 Audio Filter ****

C:\ti\ccsv5\utils\bin\gmake -k all
subdir_vars.mk:67: *** missing separator. Stop.

**** Build Finished ****

  • ....and here's the compiler command (new lines added for clarity)

    -v5515 
    --memory_model=large -g
    --include_path="C:/ti/ccsv5/tools/compiler/c5500/include"
    --include_path="C:/Users/Mike/TI Workspaces/Documentation/C55xx/USBSTK5515/usbstk5515_BSL_RevA (1)/usbstk5515_v1/include"
    --include_path="C:/Users/Mike/TI Workspaces/AMX5515/C5515 Audio Filter/inc"
    --define=C55X
    --display_error_number
    --diag_warning=225
    --ptrdiff_size=16

  • MikeH said:

    C:\ti\ccsv5\utils\bin\gmake -k all
    subdir_vars.mk:67: *** missing separator. Stop.

    This is an error generated due to syntax errors in the makefile. It is not coming from the compiler. 
    What is at line 67 of the makefile? Was this a CCSv4 project that you imported into CCSv5?

    There is another thread that talks about the "missing separator" error: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/109767.aspx
    Could you try some of the suggestions posted there and also try importing into a new workspace to see if that helps?

  • Aarti,

    Thanks for the feedback. I am working on an imported project, but I believe the problem has something to do with my renaming a few .asm files. I am trying to get rid of the .asm files by writing new .c code. So I renamed 4 .asm files in order to temporarily delete them from the project. This causes the makefile to show the following, starting at line 67:

    null./aic_test_i2c.asm.pp \
    ./i2s_register.asm.pp

    null"aic_test_i2c.asm.pp" \
    "i2s_register.asm.pp"

    null./aic_test_i2c.asm.null \
    ./i2s_register.asm.null

    null"aic_test_i2c.asm.null" \
    "i2s_register.asm.null"

    Why is the makefile still looking for these .asm files? How should I fix this?
  • Aarti,

    I re-renamed the .asm files back to their original file names and the error went away.  I'd call this a bug....

  • Mike,

    Could you share the good and bad makefiles? In the meantime, I'll see if I can reproduce this myself. Was there something particular you renamed the .asm files to or it didn't really matter?

  • Aarti,

    AartiG said:
    Was there something particular you renamed the .asm files to or it didn't really matter?

    I renamed them filename.asm.old.

    AartiG said:
    Could you share the good and bad makefiles?

    I can't seem to recreate the same issue. However, here is the currently "good" makefile. However, as you will see below, there are now other issues.

    2402.subdir_vars_good.zip

    In an effort to get rid of the problem, I moved the offending .asm files to another directory. The program would then continue to build. However, I now run into the following problems.

    **** Build of configuration Debug for project C5515 Audio Filter ****

    C:\ti\ccsv5\utils\bin\gmake -k all
    'Building file: ../fir.asm'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv5/tools/compiler/c5500/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv5/tools/compiler/c5500/include" --include_path="C:/Users/Mike/TI Workspaces/Documentation/C55xx/USBSTK5515/usbstk5515_BSL_RevA (1)/usbstk5515_v1/include" --include_path="C:/Users/Mike/TI Workspaces/AMX5515/C5515 Audio Filter/inc" --define=C55X --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=mnemonic --preproc_with_compile --preproc_dependency="fir.pp" "../fir.asm"
    ERROR! : Cannot open source file 17: No such file or directory

    >> Compilation failure
    gmake: *** [fir.obj] Error 1
    'Building file: ../main.c'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv5/tools/compiler/c5500/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv5/tools/compiler/c5500/include" --include_path="C:/Users/Mike/TI Workspaces/Documentation/C55xx/USBSTK5515/usbstk5515_BSL_RevA (1)/usbstk5515_v1/include" --include_path="C:/Users/Mike/TI Workspaces/AMX5515/C5515 Audio Filter/inc" --define=C55X --display_error_number --diag_warning=225 --ptrdiff_size=16 --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR! at line 1039:
    [E9999]
    Syntax Error
    BIT (ST1, #ST1_INTM) = #0

    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR! at line 1039:
    [E9999]
    Invalid instructionsyntax, Xmem or Ymem expected
    BIT (ST1, #ST1_INTM) = #0

    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR! at line 1039:
    [E9999]
    Invalid mnemonic specified
    BIT (ST1, #ST1_INTM) = #0

    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR! at line 1039:
    [E9999]
    Invalid mnemonic specified
    BIT (ST1, #ST1_INTM) = #0

    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR! at line 1080:
    [E9999]
    Syntax Error
    BIT (ST1, #ST1_INTM) = #1

    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR! at line 1080:
    [E9999]
    Invalid instructionsyntax, Xmem or Ymem expected
    BIT (ST1, #ST1_INTM) = #1

    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR! at line 1080:
    [E9999]
    Invalid mnemonic specified
    BIT (ST1, #ST1_INTM) = #1

    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR! at line 1080:
    [E9999]
    Invalid mnemonic specified
    BIT (ST1, #ST1_INTM) = #1

    8 Assembly Errors, No Assembly Warnings

    Errors in Source - Assembler Aborted

    >> Compilation failure

    >> Compilation failure
    gmake: *** [main.obj] Error 1
    'Building file: ../vector.asm'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv5/tools/compiler/c5500/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv5/tools/compiler/c5500/include" --include_path="C:/Users/Mike/TI Workspaces/Documentation/C55xx/USBSTK5515/usbstk5515_BSL_RevA (1)/usbstk5515_v1/include" --include_path="C:/Users/Mike/TI Workspaces/AMX5515/C5515 Audio Filter/inc" --define=C55X --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=mnemonic --preproc_with_compile --preproc_dependency="vector.pp" "../vector.asm"
    ERROR! : Cannot open source file 17: No such file or directory

    >> Compilation failure
    gmake: *** [vector.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    It appears as tho the compiler is looking for a pp file for vector.asm and fir.asm that does not exist. Can you give me any insight into this issue?
  • It appears that the website folks have still not  fixed the "quote" rendering errors. Here is a copy of the build console output.

    2476.build_console.txt
    **** Build of configuration Debug for project C5515 Audio Filter ****
    
    C:\ti\ccsv5\utils\bin\gmake -k all 
    'Building file: ../fir.asm'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv5/tools/compiler/c5500/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv5/tools/compiler/c5500/include" --include_path="C:/Users/Mike/TI Workspaces/Documentation/C55xx/USBSTK5515/usbstk5515_BSL_RevA (1)/usbstk5515_v1/include" --include_path="C:/Users/Mike/TI Workspaces/AMX5515/C5515 Audio Filter/inc" --define=C55X --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=mnemonic --preproc_with_compile --preproc_dependency="fir.pp"  "../fir.asm"
    ERROR!  : Cannot open source file 17: No such file or directory
    
    >> Compilation failure
    gmake: *** [fir.obj] Error 1
    'Building file: ../main.c'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv5/tools/compiler/c5500/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv5/tools/compiler/c5500/include" --include_path="C:/Users/Mike/TI Workspaces/Documentation/C55xx/USBSTK5515/usbstk5515_BSL_RevA (1)/usbstk5515_v1/include" --include_path="C:/Users/Mike/TI Workspaces/AMX5515/C5515 Audio Filter/inc" --define=C55X --display_error_number --diag_warning=225 --ptrdiff_size=16 --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR!   at line 1039:
     [E9999]
             Syntax Error
    	 BIT (ST1, #ST1_INTM) = #0
    
    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR!   at line 1039:
     [E9999]
             Invalid instructionsyntax, Xmem or Ymem expected
    	 BIT (ST1, #ST1_INTM) = #0
    
    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR!   at line 1039:
     [E9999]
             Invalid mnemonic specified
    	 BIT (ST1, #ST1_INTM) = #0
    
    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR!   at line 1039:
     [E9999]
             Invalid mnemonic specified
    	 BIT (ST1, #ST1_INTM) = #0
    
    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR!   at line 1080:
     [E9999]
             Syntax Error
    	 BIT (ST1, #ST1_INTM) = #1
    
    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR!   at line 1080:
     [E9999]
             Invalid instructionsyntax, Xmem or Ymem expected
    	 BIT (ST1, #ST1_INTM) = #1
    
    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR!   at line 1080:
     [E9999]
             Invalid mnemonic specified
    	 BIT (ST1, #ST1_INTM) = #1
    
    "C:\Users\Mike\AppData\Local\Temp\0644812", ERROR!   at line 1080:
     [E9999]
             Invalid mnemonic specified
    	 BIT (ST1, #ST1_INTM) = #1
    
    8 Assembly Errors, No Assembly Warnings
    
    Errors in Source - Assembler Aborted
    
    >> Compilation failure
    
    >> Compilation failure
    gmake: *** [main.obj] Error 1
    'Building file: ../vector.asm'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv5/tools/compiler/c5500/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv5/tools/compiler/c5500/include" --include_path="C:/Users/Mike/TI Workspaces/Documentation/C55xx/USBSTK5515/usbstk5515_BSL_RevA (1)/usbstk5515_v1/include" --include_path="C:/Users/Mike/TI Workspaces/AMX5515/C5515 Audio Filter/inc" --define=C55X --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=mnemonic --preproc_with_compile --preproc_dependency="vector.pp"  "../vector.asm"
    ERROR!  : Cannot open source file 17: No such file or directory
    
    >> Compilation failure
    gmake: *** [vector.obj] Error 1
    gmake: Target `all' not remade because of errors.
    
    **** Build Finished ****
    

  • MikeH said:

    I renamed them filename.asm.old.

    I haven't been able to reproduce this yet. If you are willing to share your project and steps you followed that would really help us figure out of there is a bug here.

    MikeH said:

    In an effort to get rid of the problem, I moved the offending .asm files to another directory. The program would then continue to build. However, I now run into the following problems.

    Were these .asm files in the same folder as the project (ie) "added" to the project, or "linked" to the project from a different location? When you moved them did you move them out of the project folder? From the build console it looks like it is still expecting fir.asm and vector.asm as source files for the project. After moving the files did you do a Clean Project before Build Project?

  • AartiG said:
    If you are willing to share your project and steps you followed that would really help us figure out of there is a bug here.

    Projects attached.

    7506.MikeH-project.zip

    AartiG said:
    Were these .asm files in the same folder as the project (ie) "added" to the project, or "linked" to the project from a different location?

    Added.

    AartiG said:
    When you moved them did you move them out of the project folder?

    I created a new folder inside the project folder and excluded it from the build.

    AartiG said:
    After moving the files did you do a Clean Project before Build Project?

    I have tried Clean and Build several times.

  • Mike,

    Thanks for providing the project. Here is what I did to try to reproduce the issue:

    The project files as provided did not have fir.asm and vector.asm excluded from build. The icons in the project view show that they have build specific options but not that they were excluded from build.

    So I imported the project into CCS 5.1 and first built it as-is. This reproduced the errors you reported - (ie) "Cannot open source file" for fir.asm and vector.asm, which should not have happened since the files were in the project folder.

    I then created a folder within the project folder and moved these two files into the folder. I then set the folder to be excluded from build. After that building the project did not attempt to build these two files. I did however get errors on main.c and aic3204.c for not finding usbstk5515.h but that is unrelated to this issue.

    Then I removed the "exclude from build" so I would've expected the files to be re-built, however the "cannot open source file" error reappeared. So there is definitely an issue in the way the imported proejct is being modified. It looks like if you delete those .asm files and then re-add them to the project, then it finds and builds them ok. So hopefully that is an acceptable work around. Also creating the project from sratch in CCS 5.1 would likely work fine, although is not the ideal solution.

    I can also reproduce the "missing separator" gmake error when the .asm files are renamed.

    I will file a bug report for these issue and update this thread with the bug #.

  • Mike,

    I submitted 2 bugs:  SDSCM00042959 for the "missing separator" error and SDSCM00042960 for the "cannot open source file" error.

  • See here: e2e.ti.com/.../2144447
    Brighton says it is an extra space in one of the #include directives between the quotes or <>.
    Fixed it for me.
    Mark.