Tool/software: TI C/C++ Compiler
Hello
I have the problem to build a main project including some libraries and one of them (pf_drv_dm6435xp_eabi) is program-level optimized and have a file with another build option.
If I build the release main project under CCS6 and the build setting for the libraries in workspace are debug, the build fails with a linker error. But the dependencies of the libraries in the main project are fixed to release, and it build release and not debug.
If I switch the library (pf_drv_dm6435xp_eabi) to release and rebuild it, the full main project builds well. Strange!
The problem why it fails in the first step is, that the compiler compiles 2 files in program-level optimized library. That’s ok! But the linker works wrong. It builds the first file and links it always to the second file. So the definition of functions are doubled in the library and the linker of the main project calls an error.
In the second step of rebuild this file is not linked to the second object file. Why? Do you know the problem? Can you help me?
My problem is, that our Jenkins calls the build process by command line and runs into an error. I haven’t a chance for a rebuild on it. I can build a release version on Jenkins.
The Linker message at the end of the main build is:
error #10056: symbol "GpioFraming_waitBegin" redefined: first defined in "C:/Jenkins-Slave/workspace/RnD/FA/IVC/DSP_PROJECTS/PXV_SIL_BRANCHE/ext/PF_DRV_DM643X/lib/pf_drv_dm643x_64XP_EABI_CCS5.lib<psp_gpio_framing_noopt.obj>"; redefined in "C:/Jenkins-Slave/workspace/RnD/FA/IVC/DSP_PROJECTS/PXV_SIL_BRANCHE/ext/PF_DRV_DM643X/lib/pf_drv_dm643x_64XP_EABI_CCS5.lib<dda_vpfe.obj>" error #10056: symbol "GpioFraming_asyncEnd" redefined: first defined in "C:/Jenkins-Slave/workspace/RnD/FA/IVC/DSP_PROJECTS/PXV_SIL_BRANCHE/ext/PF_DRV_DM643X/lib/pf_drv_dm643x_64XP_EABI_CCS5.lib<psp_gpio_framing_noopt.obj>"; redefined in "C:/Jenkins-Slave/workspace/RnD/FA/IVC/DSP_PROJECTS/PXV_SIL_BRANCHE/ext/PF_DRV_DM643X/lib/pf_drv_dm643x_64XP_EABI_CCS5.lib<dda_vpfe.obj>" error #10056: symbol "GpioFraming_asyncBegin" redefined: first defined in "C:/Jenkins-Slave/workspace/RnD/FA/IVC/DSP_PROJECTS/PXV_SIL_BRANCHE/ext/PF_DRV_DM643X/lib/pf_drv_dm643x_64XP_EABI_CCS5.lib<psp_gpio_framing_noopt.obj>"; redefined in "C:/Jenkins-Slave/workspace/RnD/FA/IVC/DSP_PROJECTS/PXV_SIL_BRANCHE/ext/PF_DRV_DM643X/lib/pf_drv_dm643x_64XP_EABI_CCS5.lib<dda_vpfe.obj>" error #10056: symbol "GpioFraming_waitEnd" redefined: first defined in "C:/Jenkins-Slave/workspace/RnD/FA/IVC/DSP_PROJECTS/PXV_SIL_BRANCHE/ext/PF_DRV_DM643X/lib/pf_drv_dm643x_64XP_EABI_CCS5.lib<psp_gpio_framing_noopt.obj>"; redefined in "C:/Jenkins-Slave/workspace/RnD/FA/IVC/DSP_PROJECTS/PXV_SIL_BRANCHE/ext/PF_DRV_DM643X/lib/pf_drv_dm643x_64XP_EABI_CCS5.lib<dda_vpfe.obj>"
These are my software versions:
CCS6: 6.1.2.00015
TI-Compiler: 7.4.17
Best regards,
Thomas
