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.

Problems building project in CCS for AM437x-EVM

Other Parts Discussed in Thread: OS3

Hi,

I've been trying to build my project on Code Composer Studio (v6.1.3.00034) but I get tons of gmake Error 1 messages, here's a snippet of my build log:

'Building file: C:/Micrium-Classic/Software/uCOS-III/Source/os_sem.c'
'Invoking: GNU Compiler'
"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a9 -mtune=cortex-a9 -march=armv7-a -marm -Dam4378 -I"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -I"C:/Micrium-Classic/Examples/TI/AM437x-EVM/OS3/" -I"C:/Micrium-Classic/Software/uC-CPU/ARM-Cortex-A/GNU" -I"C:/Micrium-Classic/Software/uCOS-III/Ports/ARM-Cortex-A/Generic/GNU" -I"C:/Micrium-Classic/Software/uC-LIB" -I"C:/Micrium-Classic/Software/uC-CPU" -I"C:/Micrium-Classic/Software/uCOS-III/Source" -O0 -Xpreprocessor "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -Xpreprocessor "C:/Micrium-Classic/Examples/TI/AM437x-EVM/OS3/CCS/../" -Xpreprocessor "C:/Micrium-Classic/Examples/TI/AM437x-EVM/OS3/CCS/../../../../../Software/uC-LIB" -Xpreprocessor "C:/Micrium-Classic/Examples/TI/AM437x-EVM/OS3/CCS/../../../../../Software/uC-CPU" -Xpreprocessor "C:/Micrium-Classic/Examples/TI/AM437x-EVM/OS3/CCS/../../../../../Software/uC-CPU/ARM-Cortex-A/GNU" -Xpreprocessor "C:/Micrium-Classic/Examples/TI/AM437x-EVM/OS3/CCS/../../../../../Software/uCOS-III/Source" -Xpreprocessor "C:/Micrium-Classic/Examples/TI/AM437x-EVM/OS3/CCS/../../../../../Software/uCOS-III/Ports/ARM-Cortex-A/Generic/GNU" -g -gdwarf-3 -gstrict-dwarf -Wall -specs="rdimon.specs" -MMD -MP -MF"uCOS-III/Source/os_sem.d" -MT"uCOS-III/Source/os_sem.o" -o"uCOS-III/Source/os_sem.o" "C:/Micrium-Classic/Software/uCOS-III/Source/os_sem.c"
uCOS-III/Source/subdir_rules.mk:77: recipe for target 'uCOS-III/Source/os_sem.o' failed
cc1.exe: fatal error: C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include: No such file or directory
compilation terminated.
gmake: *** [uCOS-III/Source/os_sem.o] Error 1

I'm using the GNU v4.9.3 (Linaro) compiler.

Your help will be greatly appreciated.

Thanks,

Janos

  • Janos,

    That is quite strange, the error seems to indicate that the include folder is missing in the ARM compiler that is part of the CCS installation. I have checked to confirm that this path does exist as my CCS installation. Can you check if you have this folder as part of the ARM compiler just to make sure this isn`t an issue with the ARM compiler installation issue with CCS.

    Regards,
    Rahul
  • Hi Rahul,

    Thank you for your quick reply. I do have "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" on my CCS installation.
  • Janos Magasrevy said:
    -Xpreprocessor "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include"

    The options being passed to -Xpreprocessor do not seem to be valid options. 

    According to the GCC documentation (please see gcc.pdf in the gcc compiler directory \ccsv6\tools\compiler\gcc-arm-none-eabi-4_9-2015q3\share\doc\gcc-arm-none-eabi\pdf\gcc):

    -Xpreprocessor option 

    Pass option as an option to the preprocessor. You can use this to supply system-specific preprocessor options which GCC does not know how to recognize.

    If you want to pass an option that takes an argument, you must use-Xpreprocessor twice, once for the option and once for the argument.  

    To avoid this error, please ensure that valid options are being passed.

  • But isn't all that being passed given the project properties?

  • I am not familiar with this project so cannot comment on how the compiler options were set up and whether they are correct or not. Looking at the error reported though it appears that the option passed to -Xpreprocessor is not valid.

    Is this a known good example project that is expected to build out of the box with GCC (ie did it come with these compiler options already set)?