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.

Can't build after PC reboot. Error in xdc.mak:235

CCS 4.2.1.00004

I am getting the following build error from xdc.mak but this file is generated automatically. Project was building fine. I followed instructions in a quickstart guide to set XDCROOT in the PC environment variables to get ROV working. Started PC the next day and was unable to build. What environment variable needs to be set?

**** Build of configuration Debug for project Stellaris_Boot ****

 

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

'Building file: ../Boot.cfg'

'Invoking: XDCtools'

"C:/Program Files/Texas Instruments/xdctools_3_20_08_88/xs" --xdcpath="C:/Program Files/Texas Instruments/bios_6_30_03_46/packages;C:/Program Files/Texas Instruments/ipc_1_21_02_23/packages;C:/Documents and Settings/bkorosi/myRepository/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p myBoard2965 -r whole_program -c "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/TMS470 Code Generation Tools 4.6.4" "../Boot.cfg"

C:/Program Files/Texas Instruments/xdctools_3_20_08_88\packages\xdc\bld\xdc.mak:235: *** can't find specified XDCROOT: . Stop.

js: "C:/Program Files/Texas Instruments/xdctools_3_20_08_88/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

gmake: *** [configPkg/compiler.opt] Error 1

gmake: Target `all' not remade because of errors.

Build complete for project Stellaris_Boot

 

  • Robert,

    You don't list your values for XDCROOT, but it appears to me you might have aproblem with '/' versus '\'.

    I believe that all directories referenced in XDCPATH and XDCROOT must use forward slashes (/) as separators instead of the Windows-standard backslash (\).

    For more information about this, see: http://rtsc.eclipse.org/docs-tip/Managing_the_Package_Path.

    Dave

  • I am using CCS 4.2.1.00004.
    Path to xdctools is
    C:\Program Files\Texas Instruments\xdctools_3_20_08_88

    In my System Properties - Environment Variables I have the following:

    Under user variables I have
    variable XDCROOT and value C:\Program Files\Texas Instruments\xdctools_3_20_08_88

    Under System Variables I have
    variable Path starting with %XDCROOT%; ...

    Please check my syntax. I am unfamiliar with it.
    Should I be setting something in the Code Composer IDE for my project?

    The error from the IDE console window follows:

    C:/Program Files/Texas Instruments/xdctools_3_20_08_88\packages\xdc\bld\xdc.mak:235: *** can't find specified XDCROOT: . Stop.

    js: "C:/Program Files/Texas Instruments/xdctools_3_20_08_88/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

    gmake: *** [configPkg/compiler.opt] Error 1

    gmake: Target `all' not remade because of errors.

    Thanks for your help.

    Bob

  • I want to update my attempts since I have tried a few things and have not gotten a reply.

    I changed my Windows Environment Variables to match a coworker whose projects build.

    Under System Variables I created a new one:

    XDCROOT with value

    C:/Program Files/Texas Instruments/xdctools_3_20_08_88 (Paying attention to slash type in the path).

    In the User Variables I added %XDCROOT% to the beginning of the Path variable.

    I logged off and back on to guarantee this changes takes effect. (Did not build. Same errors as above).

    I have once again gone back to the basic Hello program from the SYS/BIOS generic examples. It also give the same error.

    I also noticed that another error occurs before this but the window is cleared quickly. Here is a screen capture:

     

    5355.Hello Build error.TIF

  • Robert,
    the error message in the attached file is expected and is a result of CCS trying to clean the files you haven't built yet. I am trying to replicate your XDCROOT error, but I can't for now. The error message indicates that your XDCROOT is set to ".". Have you ever set XDCROOT to "."?

  • Robert Korosi said:

    I also noticed that another error occurs before this but the window is cleared quickly. Here is a screen capture:

     

    5355.Hello Build error.TIF

    Unfortunately  the errors in the screen shot are "normal"; the Windows del command always outputs an error when you try to delete a file that does not exist.  The files won't exist if you try to clean a project twice.  Windows never figured out that "rm -f" was useful.

  • No I don't know where XDCROOT could be set to "."
    I did notice that the slashes in the error are of type "/" until the packages directory and then they reverse to "\".
    Is that a a problem and if so which one is correct and where is this set?
    See the bottom of this post where I describe how my Windows environment variables are set.

    The original error message follows:

    **** Build of configuration Debug for project HelloAgain ****

     

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

    'Building file: ../hello.cfg'

    'Invoking: XDCtools'

    "C:/Program Files/Texas Instruments/xdctools_3_20_08_88/xs" --xdcpath="C:/Program Files/Texas Instruments/bios_6_30_03_46/packages;C:/Program Files/Texas Instruments/ipc_1_21_02_23/packages;C:/Documents and Settings/bkorosi/myRepository/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p myBoard2965 -r whole_program -c "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/TMS470 Code Generation Tools 4.6.4" "../hello.cfg"

    C:/Program Files/Texas Instruments/xdctools_3_20_08_88\packages\xdc\bld\xdc.mak:235: *** can't find specified XDCROOT: . Stop.

    js: "C:/Program Files/Texas Instruments/xdctools_3_20_08_88/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

    gmake: *** [configPkg/compiler.opt] Error 1

    gmake: Target `all' not remade because of errors.

    Build complete for project HelloAgain

    ------------------------------------------------------------------------------------------------------------------------------------------

    In a previous post I wrote:

    I want to update my attempts since I have tried a few things and have not gotten a reply.

    I changed my Windows Environment Variables to match a coworker whose projects build.

    Under System Variables I created a new one:

    XDCROOT with value

    C:/Program Files/Texas Instruments/xdctools_3_20_08_88 (Paying attention to slash type in the path).

    In the User Variables I added %XDCROOT% to the beginning of the Path variable.

    I logged off and back on to guarantee this changes takes effect. (Did not build. Same errors as above).

    I have once again gone back to the basic Hello program from the SYS/BIOS generic examples. It also give the same error.

     

  • Robert,
    I still can't replicate the problem you are seeing. However, it seems that the value of XDCROOT variable in your environment doesn't affect the value of XDCROOT inside the configuro build. configuro runs gmake and XDCROOT is set on the gmake command line, which means that the environment variable is overwritten.

    I have a couple more questions to try to find some clues. Do you have any other XDCtools installation? Can you rename any such directory temporarily just to be sure that some files from that other installation are not finding their way into the build.
    In your project directory, do you have a Debug or Release directory with the subdirectory configPkg in it? Is there a file .xdcenv.mak in configPkg, and if there is, what is being assigned to XDCROOT in that file?

    As for slashes in the error coming from xdc.mak, I think it's caused by gmake being supplied the option -f with the file name with mixed slashes. That's most likely not the cause of the problem.

    If you don't mind helping me with debugging, I attached a file xdc.mak, which you can add to your XDCtools 3.20.08.88 installation. Go to xdctools_3_20_08_88\packages\xdc\bld, rename the original xdc.mak, and add the one I am attaching. Run the basic Hello example and please let me know what's the output. The file is in a zip file because the forum won't accept make files as attachments.
    8358.xdc.zip

    Thanks

  • Sasha,
    Thanks for looking into my problem. My answers to your questions are in red.

    Robert,

    I still can't replicate the problem you are seeing. However, it seems that the value of XDCROOT variable in your environment doesn't affect the value of XDCROOT inside the configuro build. configuro runs gmake and XDCROOT is set on the gmake command line, which means that the environment variable is overwritten.

    I have a couple more questions to try to find some clues. Do you have any other XDCtools installation?

    Yes. xdctools_3_20_03_63 Can you rename any such directory temporarily just to be sure that some files from that other installation are not finding their way into the build. Renamed. This did not help.

    In your project directory, do you have a Debug or Release directory with the subdirectory configPkg in it? Is there a file .xdcenv.mak in configPkg, and if there is, what is being assigned to XDCROOT in that file?

    I have configPkg directory by no xdcenv.mak.

    As for slashes in the error coming from xdc.mak, I think it's caused by gmake being supplied the option -f with the file name with mixed slashes. That's most likely not the cause of the problem.

    If you don't mind helping me with debugging, I attached a file xdc.mak, which you can add to your XDCtools 3.20.08.88 installation. Go to xdctools_3_20_08_88\packages\xdc\bld, rename the original xdc.mak, and add the one I am attaching. Run the basic Hello example and please let me know what's the output. The file is in a zip file because the forum won't accept make files as attachments.

    Output:

    **** Build of configuration Debug for project HelloAgain ****

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

    'Building file: ../hello.cfg'

    'Invoking: XDCtools'

    "C:/Program Files/Texas Instruments/xdctools_3_20_08_88/xs" --xdcpath="C:/Program Files/Texas Instruments/bios_6_30_03_46/packages;C:/Program Files/Texas Instruments/ipc_1_21_02_23/packages;C:/Documents and Settings/bkorosi/myRepository/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p myBoard2965 -r whole_program -c "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/TMS470 Code Generation Tools 4.6.4" "../hello.cfg"

    command line

    1. C:/Program Files/Texas Instruments/xdctools_3_20_08_88

    2. C:/Program Files/Texas Instruments/xdctools_3_20_08_88

    3. C:/Program Files/Texas Instruments/xdctools_3_20_08_88

    4.

    C:/Program Files/Texas Instruments/xdctools_3_20_08_88\packages\xdc\bld\xdc.mak:239: *** can't find specified XDCROOT: . Stop.

    js: "C:/Program Files/Texas Instruments/xdctools_3_20_08_88/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

    gmake: *** [configPkg/compiler.opt] Error 1

    gmake: Target `all' not remade because of errors.

    Build complete for project HelloAgain

  • Update on attempts to fix the problem:

    I uninstalled xdctools_3_20_08_88. Deleted all references to xdctools from my Windows environment variables.

    Reinstalled 3.20.08.88 using the CCS upate manager in Help.

    Build error concerning XDCROOT is gone. Hello project using XDCTools builds.