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.

RTOS/PROCESSOR-SDK-AM57X: GCC 7.3.1 issue

Part Number: PROCESSOR-SDK-AM57X
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello.

I'm using AM572x IDK board and want to use some C++ in my Cortex A15 core project.

When I insert an algorithm library in my cpp file, I saw 21 compilation errors instead of 0. I'm using GCC 7.3.1 compiler, which comes with SDK 05.03.00.07

If I set GCC compiler to 7.2.1 version, it looks good & all was compiled successfully.

But I need to use SDK provided compiler only in my projects.

What do I need to fix that bug?

A test project to reproduce that bug: idk_am572x_a15_empty_test.zip

My environment: Windows 10 Pro x64 with release 1803  with CCS 9.0.1 and TI-RTOS SDK 05.03.00.07

With regards,
Alex

P.S. I see in default project settings, that SYS/BIOS include path sets before GCC include path & SYS/BIOS really use old  (GCC 7.2.1) header files, that differ in new (GCC 7.3.1) compiler folder

  • Hi,

    This has been assigned to a TI engineer, but please note that feedback may be delayed due to holidays in the USA.

  • Alex,

    We are able to reproduce the issue that you are reporting here with the C++ based BIOS project. the error appears to be originating from SYSBIOS native ARM GCC library  and not originating from the SDK components. I am posting the log for you to confirm that you are seeing the same failure as well as for our TI RTOS and compiler team to look at and comment:

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/build_5F00_gcc7.3.1_5F00_rtos

    I will loop in the experts to comment on this 

    Regards,

    Rahul

  • Hello Rahul,

    Yes, you are right. I have a similar error log:

    **** Build of configuration Debug for project idk_am572x_a15_empty_test ****
    
    "D:\\ti\\ccs901\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../app.cfg"
    Invoking: XDCtools
    "D:/ti/ccs901/xdctools_3_55_00_11_core/xs" --xdcpath="D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X -r release -c "D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update" "../app.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app.xa15fg from package/cfg/app_pa15fg.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making D:/labs/work/ti-support/idk_am572x_a15_empty_test/src/sysbios/sysbios.aa15fg ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/gic/Hwi_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Cache_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Mmu_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/TimestampProvider_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/systimer/Timer_asm_gnu.asm ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/BIOS.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/TaskSupport.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Clock.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Idle.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Intrinsics.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Queue.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Semaphore.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Swi.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Task.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Cache.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Core.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi_stack.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi_startup.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/gic/Hwi.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/exc/Exception.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/gates/GateHwi.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/gates/GateMutex.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Core.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Cache.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Mmu.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/TimestampProvider.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/systimer/Timer.c ...
    ara15fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o gic_Hwi_asm_gnu.o exc_Exception_asm_gnu.o a15_Cache_asm_gnu.o a15_Mmu_asm_gnu.o a15_TimestampProvider_asm_gnu.o systimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Task.o hal_Cache.o hal_Core.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o gic_Hwi.o exc_Exception.o gates_GateHwi.o gates_GateMutex.o a15_Core.o a15_Cache.o a15_Mmu.o a15_TimestampProvider.o systimer_Timer.o ...
    Build of libraries done.
    cla15fg package/cfg/app_pa15fg.c ...
    Finished building: "../app.cfg"
     
            1 file(s) copied.
    making ../src/sysbios/sysbios.aa15fg ...
    gmake[1]: Nothing to be done for 'all'.
    Building file: "../test.cpp"
    Invoking: GNU Compiler
    "D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -I"D:/labs/work/ti-support/idk_am572x_a15_empty_test" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/posix/gcc" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"test.d" -MT"test.o"   -fno-threadsafe-statics @"configPkg/compiler.opt" -o"test.o" "../test.cpp"
    subdir_rules.mk:30: recipe for target 'test.o' failed
    In file included from d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\stdlib.h:18:0,
                     from d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\c++\7.3.1\cstdlib:75,
                     from d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\c++\7.3.1\bits\stl_algo.h:59,
                     from d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\c++\7.3.1\algorithm:62,
                     from ../test.cpp:1:
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:168:8: error: '_VOID' does not name a type
     extern _VOID   _EXFUN(__sinit,(struct _reent *));
            ^~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:195:3: error: '_PTR' does not name a type
       _PTR _cookie; /* cookie passed to io functions */
       ^~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:197:36: error: '_read' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                        ^~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:197:43: error: expected identifier before '(' token
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                               ^
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:197:61: error: '_PTR' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                                                 ^~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:199:36: error: '_write' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                        ^~~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:199:44: error: expected identifier before '(' token
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                                ^
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:199:62: error: '_PTR' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                                                  ^~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:202:20: error: '_seek' has not been declared
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                        ^~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:202:27: error: expected identifier before '(' token
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                               ^
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:202:45: error: '_PTR' has not been declared
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                                                 ^~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:203:16: error: '_close' has not been declared
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                    ^~~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:203:24: error: expected identifier before '(' token
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                            ^
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:203:42: error: '_PTR' has not been declared
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                                              ^~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:394:17: error: '__cleanup' has not been declared
       void _EXFNPTR(__cleanup, (struct _reent *));
                     ^~~~~~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:394:28: error: expected identifier before '(' token
       void _EXFNPTR(__cleanup, (struct _reent *));
                                ^
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:776:30: error: expected initializer before '_global_impure_ptr'
     extern struct _reent *_CONST _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
                                  ^~~~~~~~~~~~~~~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:778:21: error: expected initializer before '_PARAMS'
     void _reclaim_reent _PARAMS ((struct _reent *));
                         ^~~~~~~
    gmake: *** [test.o] Error 1
    Building file: "../main.c"
    Invoking: GNU Compiler
    "D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -I"D:/labs/work/ti-support/idk_am572x_a15_empty_test" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/posix/gcc" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main.d" -MT"main.o" -std=c99 @"configPkg/compiler.opt" -o"main.o" "../main.c"
    Finished building: "../main.c"
     
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

    With regards,
    Alex

  • Hello Alex,

    Sorry for the delay.

    In CCS, you can add custom compile settings per source file (do this by right clicking the source in the Project Explorer). Could you re-order the search path directories for test.cpp such that:

    -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include"

    occurs before

    -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano"


    After which, I anticipate your application may fail to link to main.c unless you add "-lstdc++" to your link line.

    Thanks,
    Derrick

  • Hello, Derrick

    Derrick Williams said:

    In CCS, you can add custom compile settings per source file (do this by right clicking the source in the Project Explorer). Could you re-order the search path directories for test.cpp such that:

    -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include"

    occurs before

    -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano"

    I'm doing that and errors were not disappeared. Here you can find my new build log and changed project:

    **** Build of configuration Debug for project idk_am572x_a15_empty_test ****
    
    "D:\\ti\\ccs901\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../app.cfg"
    Invoking: XDCtools
    "D:/ti/ccs901/xdctools_3_55_00_11_core/xs" --xdcpath="D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X -r release -c "D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update" "../app.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app.xa15fg from package/cfg/app_pa15fg.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making D:/labs/work/ti-support/idk_am572x_a15_empty_test/src/sysbios/sysbios.aa15fg ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/gic/Hwi_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Cache_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Mmu_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/TimestampProvider_asm_gnu.asm ...
    asma15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/systimer/Timer_asm_gnu.asm ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/BIOS.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/TaskSupport.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Clock.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Idle.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Intrinsics.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Queue.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Semaphore.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Swi.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Task.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Cache.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Core.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi_stack.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi_startup.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/gic/Hwi.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/exc/Exception.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/gates/GateHwi.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/gates/GateMutex.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Core.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Cache.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Mmu.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/TimestampProvider.c ...
    cla15fg D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/systimer/Timer.c ...
    ara15fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o gic_Hwi_asm_gnu.o exc_Exception_asm_gnu.o a15_Cache_asm_gnu.o a15_Mmu_asm_gnu.o a15_TimestampProvider_asm_gnu.o systimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Task.o hal_Cache.o hal_Core.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o gic_Hwi.o exc_Exception.o gates_GateHwi.o gates_GateMutex.o a15_Core.o a15_Cache.o a15_Mmu.o a15_TimestampProvider.o systimer_Timer.o ...
    Build of libraries done.
    cla15fg package/cfg/app_pa15fg.c ...
    Finished building: "../app.cfg"
     
            1 file(s) copied.
    making ../src/sysbios/sysbios.aa15fg ...
    gmake[1]: Nothing to be done for 'all'.
    Building file: "../test.cpp"
    Invoking: GNU Compiler
    "D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -I"D:/labs/work/ti-support/idk_am572x_a15_empty_test" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/posix/gcc" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"test.d" -MT"test.d"   -fno-threadsafe-statics @"configPkg/compiler.opt" -o"test.o" "../test.cpp"
    subdir_rules.mk:30: recipe for target 'test.o' failed
    In file included from d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\stdlib.h:18:0,
                     from d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\c++\7.3.1\cstdlib:75,
                     from d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\c++\7.3.1\bits\stl_algo.h:59,
                     from d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\c++\7.3.1\algorithm:62,
                     from ../test.cpp:1:
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:168:8: error: '_VOID' does not name a type
     extern _VOID   _EXFUN(__sinit,(struct _reent *));
            ^~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:195:3: error: '_PTR' does not name a type
       _PTR _cookie; /* cookie passed to io functions */
       ^~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:197:36: error: '_read' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                        ^~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:197:43: error: expected identifier before '(' token
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                               ^
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:197:61: error: '_PTR' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                                                 ^~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:199:36: error: '_write' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                        ^~~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:199:44: error: expected identifier before '(' token
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                                ^
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:199:62: error: '_PTR' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                                                  ^~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:202:20: error: '_seek' has not been declared
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                        ^~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:202:27: error: expected identifier before '(' token
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                               ^
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:202:45: error: '_PTR' has not been declared
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                                                 ^~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:203:16: error: '_close' has not been declared
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                    ^~~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:203:24: error: expected identifier before '(' token
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                            ^
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:203:42: error: '_PTR' has not been declared
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                                              ^~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:394:17: error: '__cleanup' has not been declared
       void _EXFNPTR(__cleanup, (struct _reent *));
                     ^~~~~~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:394:28: error: expected identifier before '(' token
       void _EXFNPTR(__cleanup, (struct _reent *));
                                ^
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:776:30: error: expected initializer before '_global_impure_ptr'
     extern struct _reent *_CONST _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
                                  ^~~~~~~~~~~~~~~~~~
    d:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\bios_6_75_02_00\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\reent.h:778:21: error: expected initializer before '_PARAMS'
     void _reclaim_reent _PARAMS ((struct _reent *));
                         ^~~~~~~
    gmake: *** [test.o] Error 1
    Building file: "../main.c"
    Invoking: GNU Compiler
    "D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -I"D:/labs/work/ti-support/idk_am572x_a15_empty_test" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/ti/posix/gcc" -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main.d" -MT"main.o" -std=c99 @"configPkg/compiler.opt" -o"main.o" "../main.c"
    Finished building: "../main.c"
     
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    
    idk_am572x_a15_empty_test_v2.zip

    As you can see in log file and project, I moved ${CG_TOOL_INCLUDE_PATH} on the top for test.cpp and that was not changed the situation.

    With regards,
    Alex

  • Hi Alex,

    Could you replace:

    -I"D:/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Windows-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano"

    with

    -I"D:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include/newlib-nano"


    The files in /bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include are are from gnu-mcu-eclipse-arm-none-eabi-gcc-7.2.1 and are out of sync with gnu-mcu-eclipse-arm-none-eabi-gcc-7.3.1. The local copies are utilized by SYS/BIOS to rebuild the GNU rts libraries with re-entrant support.

    Derrick

  • Hello Derrick

    As you can see in my previous post, I replaced all as you write (you can see that in my v2 log file).

    Also, I tried to remove -I"D:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include/newlib-nano" from include path for test.cpp file. That was not changed the situation. v3 log version was attached (sorry, but only with build log on Linux)

    **** Build of configuration Debug for project idk_am572x_a15_empty_test ****
    
    /home/alex/ti/ccs810/ccsv8/utils/bin/gmake -k -j 4 all -O 
     
    Building file: "../app.cfg"
    Invoking: XDCtools
    "/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/xdctools_3_51_01_18_core/xs" --xdcpath="/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X -r release -c "/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update" "../app.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app.xa15fg from package/cfg/app_pa15fg.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making /home/alex/PrjNew/RA/ti-support/gcc_cpp_issue/idk_am572x_a15_empty_test/src/sysbios/sysbios.aa15fg ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/gic/Hwi_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Cache_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Mmu_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/TimestampProvider_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/systimer/Timer_asm_gnu.asm ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/BIOS.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/TaskSupport.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Clock.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Idle.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Intrinsics.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Queue.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Semaphore.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Swi.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Task.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Cache.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Core.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi_stack.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi_startup.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/gic/Hwi.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/exc/Exception.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/gates/GateHwi.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/gates/GateMutex.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Core.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Cache.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Mmu.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/TimestampProvider.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/systimer/Timer.c ...
    ara15fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o gic_Hwi_asm_gnu.o exc_Exception_asm_gnu.o a15_Cache_asm_gnu.o a15_Mmu_asm_gnu.o a15_TimestampProvider_asm_gnu.o systimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Task.o hal_Cache.o hal_Core.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o gic_Hwi.o exc_Exception.o gates_GateHwi.o gates_GateMutex.o a15_Core.o a15_Cache.o a15_Mmu.o a15_TimestampProvider.o systimer_Timer.o ...
    Build of libraries done.
    cla15fg package/cfg/app_pa15fg.c ...
    Finished building: "../app.cfg"
     
    making ../src/sysbios/sysbios.aa15fg ...
    gmake[1]: Nothing to be done for 'all'.
    Building file: "../main.c"
    Invoking: GNU Compiler
    "/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -I"/home/alex/PrjNew/RA/ti-support/gcc_cpp_issue/idk_am572x_a15_empty_test" -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/posix/gcc" -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main.d" -MT"main.o" -std=c99 @"configPkg/compiler.opt" -o"main.o" "../main.c"
    Finished building: "../main.c"
     
    Building file: "../test.cpp"
    Invoking: GNU Compiler
    "/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include" -I"/home/alex/PrjNew/RA/ti-support/gcc_cpp_issue/idk_am572x_a15_empty_test" -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/posix/gcc" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"test.d" -MT"test.d"   -fno-threadsafe-statics @"configPkg/compiler.opt" -o"test.o" "../test.cpp"
    subdir_rules.mk:28: recipe for target 'test.o' failed
    In file included from /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/stdlib.h:18:0,
                     from /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/c++/7.3.1/cstdlib:75,
                     from /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/c++/7.3.1/bits/stl_algo.h:59,
                     from /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/c++/7.3.1/algorithm:62,
                     from ../test.cpp:1:
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:168:8: error: '_VOID' does not name a type
     extern _VOID   _EXFUN(__sinit,(struct _reent *));
            ^~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:195:3: error: '_PTR' does not name a type
       _PTR _cookie; /* cookie passed to io functions */
       ^~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:197:36: error: '_read' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                        ^~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:197:43: error: expected identifier before '(' token
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                               ^
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:197:61: error: '_PTR' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                                                 ^~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:199:36: error: '_write' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                        ^~~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:199:44: error: expected identifier before '(' token
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                                ^
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:199:62: error: '_PTR' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                                                  ^~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:202:20: error: '_seek' has not been declared
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                        ^~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:202:27: error: expected identifier before '(' token
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                               ^
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:202:45: error: '_PTR' has not been declared
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                                                 ^~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:203:16: error: '_close' has not been declared
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                    ^~~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:203:24: error: expected identifier before '(' token
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                            ^
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:203:42: error: '_PTR' has not been declared
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                                              ^~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:394:17: error: '__cleanup' has not been declared
       void _EXFNPTR(__cleanup, (struct _reent *));
                     ^~~~~~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:394:28: error: expected identifier before '(' token
       void _EXFNPTR(__cleanup, (struct _reent *));
                                ^
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:776:30: error: expected initializer before '_global_impure_ptr'
     extern struct _reent *_CONST _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
                                  ^~~~~~~~~~~~~~~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:778:21: error: expected initializer before '_PARAMS'
     void _reclaim_reent _PARAMS ((struct _reent *));
                         ^~~~~~~
    gmake: *** [test.o] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

    Please, see my log files again. You can see all of my include path changes in them.

    With regards,
    Alex

  • Hi Alex,

    Based on your log file, I see you have removed the following from the include path for test.cpp:

     -I".../bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano"

    however, I don't see the following on the include path:

    -I"D:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\newlib-nano"

    Additionally, after making these changes, you will need to delete the generated (Debug|Release) folder. This contains a generated makefile (subdir_rules.mk). Based on your build_v3.log, the subdir_rules.mk is using a stale search path.

    Derrick

  • Hello Derrick

    As you say, I manually removed all generated folders (Debug|Release|src|.settings). You can see project folder screenshot here:

    Then I rebuilt my project and get that log file:

    **** Build of configuration Debug for project idk_am572x_a15_empty_test ****
    
    /home/alex/ti/ccs810/ccsv8/utils/bin/gmake -k -j 4 all -O 
     
    Building file: "../app.cfg"
    Invoking: XDCtools
    "/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/xdctools_3_51_01_18_core/xs" --xdcpath="/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X -r release -c "/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update" "../app.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app.xa15fg from package/cfg/app_pa15fg.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making /home/alex/PrjNew/RA/ti-support/gcc_cpp_issue/idk_am572x_a15_empty_test/src/sysbios/sysbios.aa15fg ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/gic/Hwi_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Cache_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Mmu_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/TimestampProvider_asm_gnu.asm ...
    asma15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/systimer/Timer_asm_gnu.asm ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/BIOS.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/TaskSupport.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Clock.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Idle.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Intrinsics.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Queue.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Semaphore.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Swi.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/knl/Task.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Cache.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Core.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi_stack.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi_startup.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/gic/Hwi.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/exc/Exception.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/gates/GateHwi.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/gates/GateMutex.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Core.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Cache.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/Mmu.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/TimestampProvider.c ...
    cla15fg /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/sysbios/family/arm/systimer/Timer.c ...
    ara15fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o gic_Hwi_asm_gnu.o exc_Exception_asm_gnu.o a15_Cache_asm_gnu.o a15_Mmu_asm_gnu.o a15_TimestampProvider_asm_gnu.o systimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Task.o hal_Cache.o hal_Core.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o gic_Hwi.o exc_Exception.o gates_GateHwi.o gates_GateMutex.o a15_Core.o a15_Cache.o a15_Mmu.o a15_TimestampProvider.o systimer_Timer.o ...
    Build of libraries done.
    cla15fg package/cfg/app_pa15fg.c ...
    Finished building: "../app.cfg"
     
    Building file: "../main.c"
    Invoking: GNU Compiler
    "/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -I"/home/alex/PrjNew/RA/ti-support/gcc_cpp_issue/idk_am572x_a15_empty_test" -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/posix/gcc" -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main.d" -MT"main.o" -std=c99 @"configPkg/compiler.opt" -o"main.o" "../main.c"
    Finished building: "../main.c"
     
    Building file: "../test.cpp"
    Invoking: GNU Compiler
    "/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include" -I"/home/alex/PrjNew/RA/ti-support/gcc_cpp_issue/idk_am572x_a15_empty_test" -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/posix/gcc" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"test.d" -MT"test.d"   -fno-threadsafe-statics @"configPkg/compiler.opt" -o"test.o" "../test.cpp"
    subdir_rules.mk:28: recipe for target 'test.o' failed
    In file included from /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/stdlib.h:18:0,
                     from /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/c++/7.3.1/cstdlib:75,
                     from /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/c++/7.3.1/bits/stl_algo.h:59,
                     from /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/c++/7.3.1/algorithm:62,
                     from ../test.cpp:1:
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:168:8: error: '_VOID' does not name a type
     extern _VOID   _EXFUN(__sinit,(struct _reent *));
            ^~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:195:3: error: '_PTR' does not name a type
       _PTR _cookie; /* cookie passed to io functions */
       ^~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:197:36: error: '_read' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                        ^~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:197:43: error: expected identifier before '(' token
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                               ^
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:197:61: error: '_PTR' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
                                                                 ^~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:199:36: error: '_write' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                        ^~~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:199:44: error: expected identifier before '(' token
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                                ^
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:199:62: error: '_PTR' has not been declared
       _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
                                                                  ^~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:202:20: error: '_seek' has not been declared
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                        ^~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:202:27: error: expected identifier before '(' token
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                               ^
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:202:45: error: '_PTR' has not been declared
       _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
                                                 ^~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:203:16: error: '_close' has not been declared
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                    ^~~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:203:24: error: expected identifier before '(' token
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                            ^
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:203:42: error: '_PTR' has not been declared
       int _EXFNPTR(_close, (struct _reent *, _PTR));
                                              ^~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:394:17: error: '__cleanup' has not been declared
       void _EXFNPTR(__cleanup, (struct _reent *));
                     ^~~~~~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:394:28: error: expected identifier before '(' token
       void _EXFNPTR(__cleanup, (struct _reent *));
                                ^
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:776:30: error: expected initializer before '_global_impure_ptr'
     extern struct _reent *_CONST _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
                                  ^~~~~~~~~~~~~~~~~~
    /home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/gnu/targets/arm//libs/install-native/arm-none-eabi/include/sys/reent.h:778:21: error: expected initializer before '_PARAMS'
     void _reclaim_reent _PARAMS ((struct _reent *));
                         ^~~~~~~
    gmake: *** [test.o] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

    Next, I go to the project folder again and see those files:

    As you can see in the log file, nothing was changed.

    I attach the project archive again to help you in reproducing that bug:

    idk_am572x_a15_empty_test_v4.zip

    With regards,
    Alex

  • Alex,
     
    Based on this line from your log build_v4.log:

    "/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include" -I"/home/alex/PrjNew/RA/ti-support/gcc_cpp_issue/idk_am572x_a15_empty_test" -I"/home/alex/ti/ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-Linux-x86-Install/bios_6_75_02_00/packages/ti/posix/gcc" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"test.d" -MT"test.d" -fno-threadsafe-statics @"configPkg/compiler.opt" -o"test.o" "../test.cpp"

    You are still missing:

    I"D:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\newlib-nano"

    Are you sure you explicitly added it to your project settings?

    Not quite sure why  -I".../bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" is still being found.

    Derrick

  • Hello Derrick

    As you say in your previous post, I manually removed that line for test.cpp file.

    But it still exists in the project.

    Please, reproduce that bug yourself and try to fix it.

    I think it will help to resolve the problem faster.

    With regards,
    Alex

    P.S. And, please, release new TI-RTOS SDK (06.00) with GCC headers from SDK provided compiler.

  • Alex,

    CCS appears to be using the include path despite it being removed. I will follow up with the CCS team.

    I still recommend you add  I"D:\ti\ti-processor-sdk-rtos-am57xx-evm-05.03.00.07-windows-x86-install\gcc-arm-none-eabi-7-2018-q2-update\arm-none-eabi\include\newlib-nano" to your include path.

    As a work-around to the wrong include path still being found, I recommend you:

    1. Navigate to /bios_6_75_02_00/packages/gnu\targets/arm/libs/install-native/arm-none-eabi
    2. Rename the "include" folder to "include_orig".

    Note that you will still link with the RTS libraries provided in /bios_6_75_02_00/packages/gnu\targets/arm/libs/install-native/arm-none-eabi/lib/hard. These libraries have been rebuilt with re-entrant RTS.

    If you require re-entrant RTS with the GCC v7.3.1 tools, you will need to rebuild those libraries and update your linker include search path.

    I have filed a ticket with the SYSBIOS team to move to GCC v7.3.1.

    Derrick

  • Alex,

    Have you tried this suggested work around?

    Derrick

  • Hello Derrick

    Sorry for a long answer.

    Nowadays, I don't have time to rebuild SYS/BIOS kernel for GCC 7.3.1 myself.

    I forced to use GCC 7.2.1 because of compilation error, that I described at the beginning. I need to use reentrant library too, ideally with full newlib version (without nano).

    I will wait for your BIOS port to GCC 7.3.1 version (or newer) and mark your answer as resolving.

    With regards,
    Alex