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.

Project can't build after a rename

Other Parts Discussed in Thread: SYSBIOS, AM3359

Hi,

        I had a running SYS/BIOS project that I was getting ready to check into source control when I renamed the project and two of the files will no longer build because they can't find a include file. Here are the software specifics:

Code Composer Studio  Version: 5.4.0.00091, XDC 3.25.1.65, SYS/BIOS 6.35.2.45

     For both of these files the Console tab shows that during the build, a couple of the include_paths is incorrect even though the path is set correctly in the Project compiler properties. The project was renamed from "AIRtrac_rtos" to "AIRtrac_sysbios". As you can see from the captures below the Console is showing the the include path to be:

--include_path="C:/Users/jxxx/workspace7/AIRtrac_rtos/AIRTrac"

When it should be:

"C:\Users\jxxx\workspace7\AIRtrac_sysbios\AIRtrac"

     I have tried everything I can think of but the same two files (out of 40 or so) continue to have this issue. Any help is appreciated.

John C.

  • Hi John,

    did you also check the File search path under the ARM Linker options?   Did you try a clean and / or reindexing before build?

    Best Regards,

    Lisa

  • Hi Lisa,

                  I've tried the following with no luck:

    • Project Clean rebuild
    • Project Index--> Rebuild
    • File Index-->Freshen All Files
    • File Resource Config--> Reset to Default
    • ARM Linker --> File Search Paths (the incorrect path is only needed for compiling.)

    Any other suggestions?

    Thanks,

         John C.

  • Lisa,

             In poking around the .mk files I found the AIRtrac_sysbios/Debug/AIRtrac/subdir_rules.mk file to have the old directory name used in the include path. I modified this file to use the correct path as was able to get the project to build. The file says I'm not supposed to edit it so could you tell me how to get Code Composer to rebuild it?

    Thanks,

         John C.

  • Hi John,

    ok, you should not have to manually modify the make file if the project settings have been changed or you have rebuilt the project.   I am trying to determine if this is a bug/see if I can reproduce this here.  But first can we please check one option that might be causing this behaviour?

    What is your makefile setting compared to this wiki

    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#Changing_the_make_utility

    Do you have cdt managed make disabled?

    Best Regards,
    Lisa 

  • Hi Lisa,

                   Here is the snip of my main build settings:

    John C.

  • Hi John,

    would you be able to try reproducing this in a non source control environment?  I have been struggling to try to reproduce this here with no luck.  I have tried multiple projects with multiple types of include paths and variables and non are breaking for me when I rename them.

    Best Regards,

    Lisa

  • Hi Lisa,

         I've moved the project to a temporary place and then imported it into a new workspace. It had a include path issue that I tried to fix but I got a "access denied" when Code Composer tried to save the .project file. I closed Code Composer and reopened it and was able to change the include path on the project and it built. I then was using the debugger and when initially trying to debug the project I received a 'Couldn't open file "C:/Users/jcxxxx/workspace_test/AIRtrac_sysbios"', but the debugger ran correctly. I could not find anything wrong with the permissions file (running Windows 7).

        I have seen quite a few access problems with files related to this project after the rename (also with projects imported from the project.) Is there some way for me to check the files in these projects for possible permission problems?

    Thanks,

         John C.

  • Hi John,

    checking the permissions is more of a windows/uac setting.  Normally if you are an administrator on the pc and if you have ccs installed in your user account and in general can create, import and debug projects you should not have permissions issues.

    It could still be the include paths and variables.

    Normally there are two types of errors.  A "file not found" error can be triggered by a problem with build variables and the compiler include options.

    An "unresolved" or "unknown" symbol is more triggered by the linker file search path/library include options.

    Are you renaming in an attempt to create a local copy?  Have you tried/been able to determine whether the export function would preserve enough information for you to use that?

    Best Regards,
    Lisa 

  • Hi Lisa,

         The rename happened only once for the top level project directory and one sub-level directory. After that at various time there were "access" or "permission" issues cropping up. If I look at the original project that got renamed and I do a clean build I see:

    -----------------------Access denied problem #1----------------------------------

    **** Build of configuration Debug for project AIRtrac_sysbios ****

    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: ../airtrac.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_25_01_65/xs" --xdcpath="C:/ti/bios_6_35_02_45/packages;C:/ti/ccsv5/ccs_base;C:/ti/am335x_sysbios_ind_sdk_1.0.0.8/sdk/platform/am335x;C:/ti/uia_1_03_01_08/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p AIRtrac_1 -r debug -c "C:/ti/ccsv5/tools/compiler/tms470_5.0.3" --compileOptions "-g --optimize_with_debug" "../airtrac.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring airtrac.xea8fnv from package/cfg/airtrac_pea8fnv.cfg ...
    generating custom ti.sysbios library makefile ...
    Starting build of library sources ...
    making C:/Users/jconover/workspace7/AIRtrac_sysbios/src/sysbios.aea8fnv ...
    clea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/BIOS.c ...
    asmea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm.asm ...
    asmea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/family/arm/TaskSupport_asm.asm ...
    asmea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/family/arm/exc/Exception_asm.asm ...
    asmea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/family/arm/a8/TimestampProvider_asm.asm ...
    asmea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/family/arm/a8/Mmu_asm.asm ...
    asmea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/family/arm/a8/Cache_asm.asm ...
    asmea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm.s470 ...
    asmea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm_switch.s470 ...
    asmea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/timers/gptimer/Timer_asm.s470 ...
    asmea8fnv C:/ti/bios_6_35_02_45/packages/ti/sysbios/timers/dmtimer/Timer_asm.s470 ...
    area8fnv BIOS.obj arm_IntrinsicsSupport_asm.obj arm_TaskSupport_asm.obj exc_Exception_asm.obj a8_TimestampProvider_asm.obj a8_Mmu_asm.obj a8_Cache_asm.obj intcps_Hwi_asm.obj intcps_Hwi_asm_switch.obj gptimer_Timer_asm.obj dmtimer_Timer_asm.obj ...
    Build of libraries done.
    clea8fnv package/cfg/airtrac_pea8fnv.c ...
    'Finished building: ../airtrac.cfg'
    ' '
            0 file(s) copied.
    Access is denied. <<-----------------------------------------------------------------What is this????
    gmake: [../src/makefile.libs] Error 1 (ignored)
    making ../src/sysbios.aea8fnv ...
    gmake[1]: Nothing to be done for `all'.
    'Building file: ../lwiplib.c'
    'Invoking: ARM Compiler'

    -----------------------Access denied problem #2, later in the build ----------------------------------

    'Building target: AIRtrac_sysbios.out'
    'Invoking: ARM Linker'
    "C:/ti/ccsv5/tools/compiler/tms470_5.0.3/bin/armcl" -mv7A8 --code_state=32 --float_support=VFPv3 --abi=eabi -me -g --gcc --define=am3359 --define=sys_bios_ind_sdk --define=idk_AM335x --define=evmAM335x --define=am335x --diag_warning=225 --display_error_number --diag_wrap=off -z --stack_size=0x800 -m"AIRtrac_sysbios.map" --heap_size=0x800 -i"C:/ti/ccsv5/tools/compiler/tms470_5.0.3/lib" -i"C:/ti/ccsv5/tools/compiler/tms470_5.0.3/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --rom_model -o "AIRtrac_sysbios.out" -l"./configPkg/linker.cmd"  "./AIRtrac/utils.obj" "./AIRtrac/usb_host_msc.obj" "./AIRtrac/usb_host.obj" "./AIRtrac/uartSetup.obj" "./AIRtrac/timers.obj" "./AIRtrac/protocol.obj" "./AIRtrac/pinmux.obj" "./AIRtrac/metrics.obj" "./AIRtrac/lcd_display.obj" "./AIRtrac/keypad.obj" "./AIRtrac/ff.obj" "./AIRtrac/fat_usbmsc.obj" "./AIRtrac/RTC.obj" "./AIRtrac/PuckComm.obj" "./AIRtrac/Modbus.obj" "./AIRtrac/Menu.obj" "./AIRtrac/Flash.obj" "./AIRtrac/FPGA.obj" "./AIRtrac/Ethernet.obj" "./AIRtrac/Display.obj" "./AIRtrac/DMA.obj" "./AIRtrac/Config.obj" "./AIRtrac/CmdResp.obj" "./AIRtrac/AIRtracAlgo.obj" "./SPI_driver/stmicro.obj" "./SPI_driver/spi_flash.obj" "./SPI_driver/omap3_spi.obj" "./sys_arch.obj" "./main.obj" "./lwiplib.obj" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\os_drivers\lib\sys_bios_driver.lib" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\platform\am335x\lib\am335x_platform.lib" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\starterware\binary\armv7a\cgt_ccs\am335x\drivers\drivers.lib" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\starterware\binary\armv7a\cgt_ccs\utils\utils.lib" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\starterware\binary\armv7a\cgt_ccs\am335x\system_config\system.lib" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\starterware\binary\armv7a\cgt_ccs\am335x\evmAM335x\platform\platform.lib" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\starterware\third_party\lwip-1.4.0\lib\lwip_static.lib" -l"C:\ti\AM335X_StarterWare_02_00_00_07\binary\armv7a\cgt_ccs\am335x\usblib\usblib.lib" -l"C:\ti\AM335X_StarterWare_02_00_00_07\binary\armv7a\cgt_ccs\grlib\libgr.lib" -l"rtsv7A8_A_le_n_v3_eabi.lib" -l"C:\ti\CiDRALibs\CiDRAMathLib.lib" -l"libc.a" "../airtrac_sysbios.cmd"
    <Linking>
    'Finished building target: AIRtrac_sysbios.out'
    ' '
    Access is denied. <<--------------------------------Another access issue????
            0 file(s) copied.
    gmake[1]: [../src/makefile.libs] Error 1 (ignored)
    "C:/Users/jconover/workspace7/AIRtrac_sysbios/tiobj2bin.bat" "AIRtrac_sysbios.out" "AIRtrac_sysbios.bin" "C:/ti/ccsv5/tools/compiler/tms470_5.0.3/bin/armofd.exe" "C:/ti/ccsv5/tools/compiler/tms470_5.0.3/bin/armhex.exe" "C:/ti/ccsv5/utils/tiobj2bin/mkhex4bin.exe"
            1 file(s) copied.

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

           Is it possible that when Code Composer renamed the Project, it somehow messed up the permissions on the directory itself?

    Thanks,

          John C.

  • Hi John,

    it is possible, but the problem is I am not able to reproduce this as I wrote.    For me I have tried various projects etc an none broke, none gave me any access denied issues.

    Are you using the program files directory for anything?  No matter what, I do know it has odd permissions.   Are your latest attempts outside of revision control?

    Best Regards,
    Lisa 

  • Hey Lisa,

                    Yes the project is currently out of version control (SourceSafe). I check the top level directory (the project driectory) and it seems to have have a read only attribute:

               I unchecked this attributed, saved it to the directory and all files under the directory and now the build has no "access" problems. The truly bizarre thing is that if I bring up the same directory again, it still has the read only flag on.

    John C.

  • Hi John,

    I looked in my user/workspace directory.   I found the same "read only" however ... still have no issues renaming projects in those workspaces.   I get no breaks, no access denied.  So still can not reproduce this ... and seem to have the same file settings.

    I even retried again package example vs new project vs etc etc.

    Best Regards,
    Lisa 

  • Hey Lisa,

         I appreciate all the help and timely responses. Everything seems to be working correctly but I admit I don't feel confident about the project after so many issues. I will keep an eye on it to see if there are any other problems, hopefully not.

    Thanks again,

         John C.

  • Hi John,

    no worries.  I am just sorry we were not able to get to the bottom of the issue.

    All the best with development.

    Best regards,

    Lisa