#error freertos.h must be included before timer.h

Apologies that you had a bad experience. Let me give it a try and get back to you.

I assume you are building the FreeRTOS/Demo/PIC32MZ_MPLAB project. I just built it using the MPLabX IDE and it build successfully for me. Here is the build output:

make -f nbproject/Makefile-PIC32MZ2048_SK.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/workplace/FreeRTOS/FreeRTOS/Demo/PIC32MZ_MPLAB/RTOSDemo.X'
make  -f nbproject/Makefile-PIC32MZ2048_SK.mk dist/PIC32MZ2048_SK/production/RTOSDemo.X.production.hex
make[2]: Entering directory 'C:/workplace/FreeRTOS/FreeRTOS/Demo/PIC32MZ_MPLAB/RTOSDemo.X'
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/GenQTest.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/GenQTest.o ../../Common/Minimal/GenQTest.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/QPeek.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/QPeek.o ../../Common/Minimal/QPeek.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/blocktim.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/blocktim.o ../../Common/Minimal/blocktim.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/flash_timer.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/flash_timer.o ../../Common/Minimal/flash_timer.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/semtest.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/semtest.o ../../Common/Minimal/semtest.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/IntQueue.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/IntQueue.o ../../Common/Minimal/IntQueue.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/QueueOverwrite.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/QueueOverwrite.o ../../Common/Minimal/QueueOverwrite.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/QueueSet.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/QueueSet.o ../../Common/Minimal/QueueSet.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/countsem.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/countsem.o ../../Common/Minimal/countsem.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/dynamic.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/dynamic.o ../../Common/Minimal/dynamic.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/recmutex.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/recmutex.o ../../Common/Minimal/recmutex.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1163846883/EventGroupsDemo.o.d" -o build/PIC32MZ2048_SK/production/_ext/1163846883/EventGroupsDemo.o ../../Common/Minimal/EventGroupsDemo.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/449926602/queue.o.d" -o build/PIC32MZ2048_SK/production/_ext/449926602/queue.o ../../../Source/queue.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/449926602/tasks.o.d" -o build/PIC32MZ2048_SK/production/_ext/449926602/tasks.o ../../../Source/tasks.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/449926602/list.o.d" -o build/PIC32MZ2048_SK/production/_ext/449926602/list.o ../../../Source/list.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/449926602/timers.o.d" -o build/PIC32MZ2048_SK/production/_ext/449926602/timers.o ../../../Source/timers.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/332309698/port.o.d" -o build/PIC32MZ2048_SK/production/_ext/332309698/port.o ../../../Source/portable/MPLAB/PIC32MZ/port.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1884096877/heap_4.o.d" -o build/PIC32MZ2048_SK/production/_ext/1884096877/heap_4.o ../../../Source/portable/MemMang/heap_4.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/main.o.d" -o build/PIC32MZ2048_SK/production/_ext/1472/main.o ../main.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"   -c -mprocessor=32MZ2048ECH144  -MMD -MF "build/PIC32MZ2048_SK/production/_ext/332309698/port_asm.o.d"  -o build/PIC32MZ2048_SK/production/_ext/332309698/port_asm.o ../../../Source/portable/MPLAB/PIC32MZ/port_asm.S  -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc  -Wa,--defsym=__MPLAB_BUILD=1,-MD="build/PIC32MZ2048_SK/production/_ext/332309698/port_asm.o.asm.d",--gdwarf-2 -I../../../Source/portable/MPLAB/PIC32MZ -I../ -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/809743516/ParTest.o.d" -o build/PIC32MZ2048_SK/production/_ext/809743516/ParTest.o ../ParTest/ParTest.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/449926602/event_groups.o.d" -o build/PIC32MZ2048_SK/production/_ext/449926602/event_groups.o ../../../Source/event_groups.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/main_blinky.o.d" -o build/PIC32MZ2048_SK/production/_ext/1472/main_blinky.o ../main_blinky.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/ConfigPerformance.o.d" -o build/PIC32MZ2048_SK/production/_ext/1472/ConfigPerformance.o ../ConfigPerformance.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/IntQueueTimer.o.d" -o build/PIC32MZ2048_SK/production/_ext/1472/IntQueueTimer.o ../IntQueueTimer.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/main_full.o.d" -o build/PIC32MZ2048_SK/production/_ext/1472/main_full.o ../main_full.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"   -c -mprocessor=32MZ2048ECH144  -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/RegisterTestTasks.o.d"  -o build/PIC32MZ2048_SK/production/_ext/1472/RegisterTestTasks.o ../RegisterTestTasks.S  -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc  -Wa,--defsym=__MPLAB_BUILD=1,-MD="build/PIC32MZ2048_SK/production/_ext/1472/RegisterTestTasks.o.asm.d",--gdwarf-2 -I../../../Source/portable/MPLAB/PIC32MZ -I../ -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/timertest.o.d" -o build/PIC32MZ2048_SK/production/_ext/1472/timertest.o ../timertest.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"   -c -mprocessor=32MZ2048ECH144  -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/IntQueueTimer_isr.o.d"  -o build/PIC32MZ2048_SK/production/_ext/1472/IntQueueTimer_isr.o ../IntQueueTimer_isr.S  -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc  -Wa,--defsym=__MPLAB_BUILD=1,-MD="build/PIC32MZ2048_SK/production/_ext/1472/IntQueueTimer_isr.o.asm.d",--gdwarf-2 -I../../../Source/portable/MPLAB/PIC32MZ -I../ -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"   -c -mprocessor=32MZ2048ECH144  -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/timertest_isr.o.d"  -o build/PIC32MZ2048_SK/production/_ext/1472/timertest_isr.o ../timertest_isr.S  -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc  -Wa,--defsym=__MPLAB_BUILD=1,-MD="build/PIC32MZ2048_SK/production/_ext/1472/timertest_isr.o.asm.d",--gdwarf-2 -I../../../Source/portable/MPLAB/PIC32MZ -I../ -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/ISRTriggeredTask.o.d" -o build/PIC32MZ2048_SK/production/_ext/1472/ISRTriggeredTask.o ../ISRTriggeredTask.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"    -g -x c -c -mprocessor=32MZ2048ECH144  -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC32MZ" -I"../../Common/include" -I"../" -Wall -MP -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/flop_mz.o.d" -o build/PIC32MZ2048_SK/production/_ext/1472/flop_mz.o ../flop_mz.c    -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wall -Wextra -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"  
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"   -c -mprocessor=32MZ2048ECH144  -MMD -MF "build/PIC32MZ2048_SK/production/_ext/1472/ISRTriggeredTask_isr.o.d"  -o build/PIC32MZ2048_SK/production/_ext/1472/ISRTriggeredTask_isr.o ../ISRTriggeredTask_isr.S  -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc  -Wa,--defsym=__MPLAB_BUILD=1,-MD="build/PIC32MZ2048_SK/production/_ext/1472/ISRTriggeredTask_isr.o.asm.d",--gdwarf-2 -I../../../Source/portable/MPLAB/PIC32MZ -I../ -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"
"C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe"   -mprocessor=32MZ2048ECH144  -o dist/PIC32MZ2048_SK/production/RTOSDemo.X.production.elf build/PIC32MZ2048_SK/production/_ext/1163846883/GenQTest.o build/PIC32MZ2048_SK/production/_ext/1163846883/QPeek.o build/PIC32MZ2048_SK/production/_ext/1163846883/blocktim.o build/PIC32MZ2048_SK/production/_ext/1163846883/flash_timer.o build/PIC32MZ2048_SK/production/_ext/1163846883/semtest.o build/PIC32MZ2048_SK/production/_ext/1163846883/IntQueue.o build/PIC32MZ2048_SK/production/_ext/1163846883/QueueOverwrite.o build/PIC32MZ2048_SK/production/_ext/1163846883/QueueSet.o build/PIC32MZ2048_SK/production/_ext/1163846883/countsem.o build/PIC32MZ2048_SK/production/_ext/1163846883/dynamic.o build/PIC32MZ2048_SK/production/_ext/1163846883/recmutex.o build/PIC32MZ2048_SK/production/_ext/1163846883/EventGroupsDemo.o build/PIC32MZ2048_SK/production/_ext/449926602/queue.o build/PIC32MZ2048_SK/production/_ext/449926602/tasks.o build/PIC32MZ2048_SK/production/_ext/449926602/list.o build/PIC32MZ2048_SK/production/_ext/449926602/timers.o build/PIC32MZ2048_SK/production/_ext/332309698/port.o build/PIC32MZ2048_SK/production/_ext/332309698/port_asm.o build/PIC32MZ2048_SK/production/_ext/1884096877/heap_4.o build/PIC32MZ2048_SK/production/_ext/449926602/event_groups.o build/PIC32MZ2048_SK/production/_ext/1472/main.o build/PIC32MZ2048_SK/production/_ext/809743516/ParTest.o build/PIC32MZ2048_SK/production/_ext/1472/main_blinky.o build/PIC32MZ2048_SK/production/_ext/1472/ConfigPerformance.o build/PIC32MZ2048_SK/production/_ext/1472/main_full.o build/PIC32MZ2048_SK/production/_ext/1472/RegisterTestTasks.o build/PIC32MZ2048_SK/production/_ext/1472/IntQueueTimer.o build/PIC32MZ2048_SK/production/_ext/1472/IntQueueTimer_isr.o build/PIC32MZ2048_SK/production/_ext/1472/timertest.o build/PIC32MZ2048_SK/production/_ext/1472/timertest_isr.o build/PIC32MZ2048_SK/production/_ext/1472/ISRTriggeredTask.o build/PIC32MZ2048_SK/production/_ext/1472/ISRTriggeredTask_isr.o build/PIC32MZ2048_SK/production/_ext/1472/flop_mz.o          -DXPRJ_PIC32MZ2048_SK=PIC32MZ2048_SK  -no-legacy-libc    -Wl,--defsym=__MPLAB_BUILD=1,--defsym=_min_heap_size=0,--no-code-in-dinit,--no-dinit-in-serial-mem,-Map="dist/PIC32MZ2048_SK/production/RTOSDemo.X.production.map",--memorysummary,dist/PIC32MZ2048_SK/production/memoryfile.xml -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC32MZ-EC_DFP/1.3.44"
"C:\Program Files\Microchip\xc32\v2.40\bin"\\xc32-bin2hex dist/PIC32MZ2048_SK/production/RTOSDemo.X.production.elf 
make[2]: Leaving directory 'C:/workplace/FreeRTOS/FreeRTOS/Demo/PIC32MZ_MPLAB/RTOSDemo.X'
make[1]: Leaving directory 'C:/workplace/FreeRTOS/FreeRTOS/Demo/PIC32MZ_MPLAB/RTOSDemo.X'

BUILD SUCCESSFUL (total time: 9s)

Have you installed the MPLAB X IDE and the MPLAB XC32 compiler correctly?

Dear aggarg!

Thank you for your support!
Unfortunately I need to compile it on Ecllipse IDE + mips-mti-elf
My MCU based on PIC32MZ but itsnt Microchip MCU

Well, in that case the official port and example works as expected. It probably is a problem with your environment (toolchain/project/sdk). If you can share your project and build instructions, I can try to repro it.

Thanks.

Today I also tried my project on MPLAB X IDE in very trancuted version of my application and get almost the same results:

make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory '/mnt/924225A142258B55/tmp/MP'
make  -f nbproject/Makefile-default.mk dist/default/production/MP.production.hex
make[2]: Entering directory '/mnt/924225A142258B55/tmp/MP'
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/croutine.o.d" -o build/default/production/FreeRTOS/Source/croutine.o FreeRTOS/Source/croutine.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/main.o.d" -o build/default/production/main.o main.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/portable/MemMang/heap_4.o.d" -o build/default/production/FreeRTOS/Source/portable/MemMang/heap_4.o FreeRTOS/Source/portable/MemMang/heap_4.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.o.d" -o build/default/production/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.o FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.o.d" -o build/default/production/FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.o FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/timers.o.d" -o build/default/production/FreeRTOS/Source/timers.o FreeRTOS/Source/timers.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/stream_buffer.o.d" -o build/default/production/FreeRTOS/Source/stream_buffer.o FreeRTOS/Source/stream_buffer.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/queue.o.d" -o build/default/production/FreeRTOS/Source/queue.o FreeRTOS/Source/queue.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/tasks.o.d" -o build/default/production/FreeRTOS/Source/tasks.o FreeRTOS/Source/tasks.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/list.o.d" -o build/default/production/FreeRTOS/Source/list.o FreeRTOS/Source/list.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/event_groups.o.d" -o build/default/production/FreeRTOS/Source/event_groups.o FreeRTOS/Source/event_groups.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"   -c -mprocessor=32MZ2064DAS176  -MMD -MF "build/default/production/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port_asm.o.d"  -o build/default/production/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port_asm.o FreeRTOS/Source/portable/MPLAB/PIC32MZ/port_asm.S  -DXPRJ_default=default    -Wa,--defsym=__MPLAB_BUILD=1,-MD="build/default/production/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port_asm.o.asm.d",--gdwarf-2,-I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"
In file included from FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.c:42:
/opt/microchip/xc32/v4.00/pic32mx/include/musl/math.h:50:17: error: unknown type name 'uint64_t'
 static __inline uint64_t __DOUBLE_BITS(double __f)
                 ^~~~~~~~
/opt/microchip/xc32/v4.00/pic32mx/include/musl/math.h: In function '__DOUBLE_BITS':
/opt/microchip/xc32/v4.00/pic32mx/include/musl/math.h:52:21: error: unknown type name 'uint64_t'
  union {double __f; uint64_t __i;} __u;
                     ^~~~~~~~
FreeRTOS/Source/portable/MPLAB/PIC32MZ/port_asm.S:66:10: fatal error: mips/cpu.h: No such file or directory
 #include <mips/cpu.h>
          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [nbproject/Makefile-default.mk:118: build/default/production/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port_asm.o] Error 255
make[2]: *** Waiting for unfinished jobs....
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h: At top level:
In file included from /opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118/include/xc-pic32m.h:278,
                 from /opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118/include/xc.h:46,
                 from FreeRTOS/Source/portable/MPLAB/PIC32MZ/portmacro.h:33,
                 from FreeRTOS/Source/include/portable.h:54,
                 from FreeRTOS/Source/include/FreeRTOS.h:65,
                 from FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.c:45:
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:145:1: error: unknown type name 'int64_t'; did you mean 'int32_t'?
 int64_t __builtin_mips_dpau_h_qbl (int64_t, int8_t __attribute__ ((vector_size(4))), int8_t __attribute__ ((vector_size(4))));
 ^~~~~~~
 int32_t
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:145:44: error: expected ')' before 'int8_t'
 int64_t __builtin_mips_dpau_h_qbl (int64_t, int8_t __attribute__ ((vector_size(4))), int8_t __attribute__ ((vector_size(4))));
                                            ^~~~~~~
                                            )
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:146:1: error: unknown type name 'int64_t'; did you mean 'int32_t'?
 int64_t __builtin_mips_dpau_h_qbr (int64_t, int8_t __attribute__ ((vector_size(4))), int8_t __attribute__ ((vector_size(4))));
 ^~~~~~~
 int32_t
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:146:44: error: expected ')' before 'int8_t'
 int64_t __builtin_mips_dpau_h_qbr (int64_t, int8_t __attribute__ ((vector_size(4))), int8_t __attribute__ ((vector_size(4))));
                                            ^~~~~~~
                                            )
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:147:1: error: unknown type name 'int64_t'; did you mean 'int32_t'?
 int64_t __builtin_mips_dpsu_h_qbl (int64_t, int8_t __attribute__ ((vector_size(4))), int8_t __attribute__ ((vector_size(4))));
 ^~~~~~~
 int32_t
.........
   ^~~~~~~~~~~~~
FreeRTOS/Source/include/FreeRTOS.h:1272:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'StaticSemaphore_t'
 typedef StaticQueue_t StaticSemaphore_t;
                       ^~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/FreeRTOS.h:1291:5: error: expected specifier-qualifier-list before 'StaticList_t'
     StaticList_t xDummy2;
     ^~~~~~~~~~~~
FreeRTOS/Source/include/FreeRTOS.h:1300:3: error: storage class specified for parameter 'StaticEventGroup_t'
 } StaticEventGroup_t;
   ^~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/FreeRTOS.h:1319:5: error: expected specifier-qualifier-list before 'StaticListItem_t'
     StaticListItem_t xDummy2;
     ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/FreeRTOS.h:1327:3: error: storage class specified for parameter 'StaticTimer_t'
 } StaticTimer_t;
   ^~~~~~~~~~~~~
FreeRTOS/Source/include/FreeRTOS.h:1351:3: error: storage class specified for parameter 'StaticStreamBuffer_t'
 } StaticStreamBuffer_t;
   ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/FreeRTOS.h:1354:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'StaticMessageBuffer_t'
 typedef StaticStreamBuffer_t StaticMessageBuffer_t;
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from main.c:13:
FreeRTOS/Source/include/list.h:143:1: warning: empty declaration
 struct xLIST;
 ^~~~~~
FreeRTOS/Source/include/list.h:144:1: warning: empty declaration
 struct xLIST_ITEM
 ^~~~~~
FreeRTOS/Source/include/list.h:154:27: error: storage class specified for parameter 'ListItem_t'
 typedef struct xLIST_ITEM ListItem_t;                   /* For some reason lint wants this as two separate definitions. */
                           ^~~~~~~~~~
FreeRTOS/Source/include/list.h:156:1: warning: empty declaration
 struct xMINI_LIST_ITEM
 ^~~~~~
FreeRTOS/Source/include/list.h:163:32: error: storage class specified for parameter 'MiniListItem_t'
 typedef struct xMINI_LIST_ITEM MiniListItem_t;
                                ^~~~~~~~~~~~~~
FreeRTOS/Source/include/list.h:172:5: error: expected specifier-qualifier-list before 'ListItem_t'
     ListItem_t * configLIST_VOLATILE pxIndex; /*< Used to walk through the list.  Points to the last item returned by a call to listGET_OWNER_OF_NEXT_ENTRY (). */
     ^~~~~~~~~~
FreeRTOS/Source/include/list.h:175:3: error: storage class specified for parameter 'List_t'
 } List_t;
   ^~~~~~
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:157:1: error: unknown type name 'int64_t'; did you mean 'int32_t'?
 int64_t __builtin_mips_maq_sa_w_phr (int64_t, int16_t __attribute__ ((vector_size(4))), int16_t __attribute__ ((vector_size(4))));
 ^~~~~~~
 int32_t
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:157:46: error: expected ')' before 'int16_t'
 int64_t __builtin_mips_maq_sa_w_phr (int64_t, int16_t __attribute__ ((vector_size(4))), int16_t __attribute__ ((vector_size(4))));
                                              ^~~~~~~~
                                              )
FreeRTOS/Source/include/list.h:429:23: error: expected declaration specifiers or '...' before 'List_t'
 void vListInitialise( List_t * const pxList ) PRIVILEGED_FUNCTION;
                       ^~~~~~
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:158:40: error: expected ')' before 'int32_t'
 int32_t __builtin_mips_extr_w (int64_t, int32_t);
                                        ^~~~~~~~
                                        )
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:159:42: error: expected ')' before 'int32_t'
 int32_t __builtin_mips_extr_r_w (int64_t, int32_t);
                                          ^~~~~~~~
                                          )
FreeRTOS/Source/include/list.h:440:27: error: expected declaration specifiers or '...' before 'ListItem_t'
 void vListInitialiseItem( ListItem_t * const pxItem ) PRIVILEGED_FUNCTION;
                           ^~~~~~~~~~
FreeRTOS/Source/timers.c:712:51: error: unknown type name 'Timer_t'; did you mean 'size_t'?
     static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer,
                                                   ^~~~~~~
                                                   size_t
FreeRTOS/Source/include/list.h:453:19: error: expected declaration specifiers or '...' before 'List_t'
 void vListInsert( List_t * const pxList,
                   ^~~~~~
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:160:43: error: expected ')' before 'int32_t'
 int32_t __builtin_mips_extr_rs_w (int64_t, int32_t);
                                           ^~~~~~~~
                                           )
FreeRTOS/Source/queue.c:2264:29: error: unknown type name 'Queue_t'
 static void prvUnlockQueue( Queue_t * const pxQueue )
                             ^~~~~~~
FreeRTOS/Source/include/list.h:454:19: error: expected declaration specifiers or '...' before 'ListItem_t'
                   ListItem_t * const pxNewListItem ) PRIVILEGED_FUNCTION;
                   ^~~~~~~~~~
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:161:42: error: expected ')' before 'int32_t'
 int32_t __builtin_mips_extr_s_h (int64_t, int32_t);
                                          ^~~~~~~~
                                          )
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:162:38: error: expected ')' before 'int32_t'
 int32_t __builtin_mips_extp (int64_t, int32_t);
                                      ^~~~~~~~
                                      )
FreeRTOS/Source/include/list.h:475:22: error: expected declaration specifiers or '...' before 'List_t'
 void vListInsertEnd( List_t * const pxList,
                      ^~~~~~
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:152:1: error: unknown type name 'int64_t'; did you mean 'int32_t'?
 int64_t __builtin_mips_dpaq_sa_l_w (int64_t, int32_t, int32_t);
 ^~~~~~~
 int32_t
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:163:40: error: expected ')' before 'int32_t'
 int32_t __builtin_mips_extpdp (int64_t, int32_t);
                                        ^~~~~~~~
                                        )
FreeRTOS/Source/include/list.h:476:22: error: expected declaration specifiers or '...' before 'ListItem_t'
                      ListItem_t * const pxNewListItem ) PRIVILEGED_FUNCTION;
                      ^~~~~~~~~~
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:152:45: error: expected ')' before 'int32_t'
 int64_t __builtin_mips_dpaq_sa_l_w (int64_t, int32_t, int32_t);
                                             ^~~~~~~~
                                             )
FreeRTOS/Source/include/list.h:491:27: error: expected declaration specifiers or '...' before 'ListItem_t'
 UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove ) PRIVILEGED_FUNCTION;
                           ^~~~~~~~~~
FreeRTOS/Source/timers.c:757:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     {
     ^
FreeRTOS/Source/queue.c:2384:42: error: unknown type name 'Queue_t'
 static BaseType_t prvIsQueueEmpty( const Queue_t * pxQueue )
                                          ^~~~~~~
FreeRTOS/Source/queue.c:2385:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
FreeRTOS/Source/queue.c:2405:45: warning: type defaults to 'int' in declaration of 'QueueHandle_t' [-Wimplicit-int]
 BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue )
                                             ^~~~~~~~~~~~~
FreeRTOS/Source/timers.c:905:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     {
     ^
FreeRTOS/Source/queue.c:2405:59: error: expected ';', ',' or ')' before 'xQueue'
 BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue )
                                                           ^~~~~~
FreeRTOS/Source/timers.c:930:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     {
     ^
FreeRTOS/Source/timers.c:980:37: error: expected declaration specifiers or '...' before 'TimerHandle_t'
     BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
                                     ^~~~~~~~~~~~~
FreeRTOS/Source/queue.c:2425:41: error: unknown type name 'Queue_t'
 static BaseType_t prvIsQueueFull( const Queue_t * pxQueue )
                                         ^~~~~~~
FreeRTOS/Source/timers.c:1005:37: warning: type defaults to 'int' in declaration of 'TimerHandle_t' [-Wimplicit-int]
     void * pvTimerGetTimerID( const TimerHandle_t xTimer )
                                     ^~~~~~~~~~~~~
FreeRTOS/Source/queue.c:2426:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
In file included from main.c:15:
FreeRTOS/Source/include/task.h:86:1: warning: empty declaration
 struct tskTaskControlBlock; /* The old naming convention is used to prevent breaking kernel aware debuggers. */
 ^~~~~~
FreeRTOS/Source/include/task.h:87:38: error: storage class specified for parameter 'TaskHandle_t'
 typedef struct tskTaskControlBlock * TaskHandle_t;
                                      ^~~~~~~~~~~~
FreeRTOS/Source/timers.c:1005:51: error: expected ';', ',' or ')' before 'xTimer'
     void * pvTimerGetTimerID( const TimerHandle_t xTimer )
                                                   ^~~~~~
FreeRTOS/Source/include/task.h:93:23: error: storage class specified for parameter 'TaskHookFunction_t'
 typedef BaseType_t (* TaskHookFunction_t)( void * );
                       ^~~~~~~~~~~~~~~~~~
FreeRTOS/Source/queue.c:2446:44: warning: type defaults to 'int' in declaration of 'QueueHandle_t' [-Wimplicit-int]
 BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue )
                                            ^~~~~~~~~~~~~
In file included from main.c:15:
FreeRTOS/Source/include/task.h:104:3: error: storage class specified for parameter 'eTaskState'
 } eTaskState;
   ^~~~~~~~~~
FreeRTOS/Source/timers.c:1022:28: error: expected declaration specifiers or '...' before 'TimerHandle_t'
     void vTimerSetTimerID( TimerHandle_t xTimer,
                            ^~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:114:3: error: storage class specified for parameter 'eNotifyAction'
 } eNotifyAction;
   ^~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:123:3: error: storage class specified for parameter 'TimeOut_t'
 } TimeOut_t;
   ^~~~~~~~~
FreeRTOS/Source/queue.c:2446:58: error: expected ';', ',' or ')' before 'xQueue'
 BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue )
                                                          ^~~~~~
FreeRTOS/Source/timers.c:1039:51: error: expected declaration specifiers or '...' before 'PendedFunction_t'
         BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend,
                                                   ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:133:3: error: storage class specified for parameter 'MemoryRegion_t'
 } MemoryRegion_t;
   ^~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:146:5: error: expected specifier-qualifier-list before 'MemoryRegion_t'
     MemoryRegion_t xRegions[ portNUM_CONFIGURABLE_REGIONS ];
     ^~~~~~~~~~~~~~
FreeRTOS/Source/timers.c:1066:44: error: expected declaration specifiers or '...' before 'PendedFunction_t'
         BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend,
                                            ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:150:3: error: storage class specified for parameter 'TaskParameters_t'
 } TaskParameters_t;
   ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:156:5: error: expected specifier-qualifier-list before 'TaskHandle_t'
     TaskHandle_t xHandle;                         /* The handle of the task to which the rest of the information in the structure relates. */
     ^~~~~~~~~~~~
In file included from main.c:15:
FreeRTOS/Source/include/task.h:165:3: error: storage class specified for parameter 'TaskStatus_t'
 } TaskStatus_t;
   ^~~~~~~~~~~~
In file included from FreeRTOS/Source/include/FreeRTOS.h:65,
                 from FreeRTOS/Source/timers.c:37:
FreeRTOS/Source/include/portable.h:128:23: error: old-style parameter declarations in prototyped function definition
         StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
                       ^~~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:173:3: error: storage class specified for parameter 'eSleepModeStatus'
 } eSleepModeStatus;
   ^~~~~~~~~~~~~~~~
FreeRTOS/Source/timers.c:1121: error: expected '{' at end of input
FreeRTOS/Source/include/task.h:354:29: error: expected declaration specifiers or '...' before 'TaskHandle_t'
                             TaskHandle_t * const pxCreatedTask ) PRIVILEGED_FUNCTION;
                             ^~~~~~~~~~~~
FreeRTOS/Source/queue.c:2867:42: error: expected declaration specifiers or '...' before 'QueueHandle_t'
     void vQueueWaitForMessageRestricted( QueueHandle_t xQueue,
                                          ^~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:690:31: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskAllocateMPURegions( TaskHandle_t xTask,
                               ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:691:37: warning: type defaults to 'int' in declaration of 'MemoryRegion_t' [-Wimplicit-int]
                               const MemoryRegion_t * const pxRegions ) PRIVILEGED_FUNCTION;
                                     ^~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:691:52: error: expected ';', ',' or ')' before '*' token
                               const MemoryRegion_t * const pxRegions ) PRIVILEGED_FUNCTION;
                                                    ^
FreeRTOS/Source/queue.c:2907:5: error: expected declaration specifiers before 'QueueSetHandle_t'
     QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength )
     ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:734:19: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskDelete( TaskHandle_t xTaskToDelete ) PRIVILEGED_FUNCTION;
                   ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:788:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskDelay( const TickType_t xTicksToDelay ) PRIVILEGED_FUNCTION;
                                                   ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/queue.c:2921:32: error: expected declaration specifiers or '...' before 'QueueSetMemberHandle_t'
     BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore,
                                ^~~~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:856:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
                             const TickType_t xTimeIncrement ) PRIVILEGED_FUNCTION;
                                                               ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/queue.c:2922:32: error: expected declaration specifiers or '...' before 'QueueSetHandle_t'
                                QueueSetHandle_t xQueueSet )
                                ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:898:29: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskAbortDelay( TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                             ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:947:38: warning: type defaults to 'int' in declaration of 'TaskHandle_t' [-Wimplicit-int]
 UBaseType_t uxTaskPriorityGet( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                                      ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:947:51: error: expected ';', ',' or ')' before 'xTask'
 UBaseType_t uxTaskPriorityGet( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                                                   ^~~~~
FreeRTOS/Source/queue.c:2955:37: error: expected declaration specifiers or '...' before 'QueueSetMemberHandle_t'
     BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore,
                                     ^~~~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:957:45: warning: type defaults to 'int' in declaration of 'TaskHandle_t' [-Wimplicit-int]
 UBaseType_t uxTaskPriorityGetFromISR( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                                             ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:957:58: error: expected ';', ',' or ')' before 'xTask'
 UBaseType_t uxTaskPriorityGetFromISR( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                                                          ^~~~~
FreeRTOS/Source/queue.c:2956:37: error: expected declaration specifiers or '...' before 'QueueSetHandle_t'
                                     QueueSetHandle_t xQueueSet )
                                     ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:977:1: error: expected declaration specifiers before 'eTaskState'
 eTaskState eTaskGetState( TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
 ^~~~~~~~~~
FreeRTOS/Source/include/task.h:1035:20: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskGetInfo( TaskHandle_t xTask,
                    ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1036:20: error: expected declaration specifiers or '...' before 'TaskStatus_t'
                    TaskStatus_t * pxTaskStatus,
                    ^~~~~~~~~~~~
FreeRTOS/Source/queue.c:2992:5: error: expected declaration specifiers before 'QueueSetMemberHandle_t'
     QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet,
     ^~~~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1038:20: error: expected declaration specifiers or '...' before 'eTaskState'
                    eTaskState eState ) PRIVILEGED_FUNCTION;
                    ^~~~~~~~~~
FreeRTOS/Source/include/task.h:1082:24: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskPrioritySet( TaskHandle_t xTask,
                        ^~~~~~~~~~~~
FreeRTOS/Source/queue.c:3006:5: error: expected declaration specifiers before 'QueueSetMemberHandle_t'
     QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet )
     ^~~~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1136:20: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskSuspend( TaskHandle_t xTaskToSuspend ) PRIVILEGED_FUNCTION;
                    ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1187:19: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskResume( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION;
                   ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1218:32: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskResumeFromISR( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION;
                                ^~~~~~~~~~~~
FreeRTOS/Source/queue.c:3019:57: error: unknown type name 'Queue_t'
     static BaseType_t prvNotifyQueueSetContainer( const Queue_t * const pxQueue )
                                                         ^~~~~~~
FreeRTOS/Source/include/task.h:1253:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskStartScheduler( void ) PRIVILEGED_FUNCTION;
                                  ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/queue.c:3020:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     {
     ^
FreeRTOS/Source/include/task.h:1311:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskEndScheduler( void ) PRIVILEGED_FUNCTION;
                                ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1364:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskSuspendAll( void ) PRIVILEGED_FUNCTION;
                              ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1420:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 BaseType_t xTaskResumeAll( void ) PRIVILEGED_FUNCTION;
                                   ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1437:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 TickType_t xTaskGetTickCount( void ) PRIVILEGED_FUNCTION;
                                      ^~~~~~~~~~~~~~~~~~~
In file included from FreeRTOS/Source/include/FreeRTOS.h:65,
                 from FreeRTOS/Source/queue.c:37:
FreeRTOS/Source/include/portable.h:128:23: error: old-style parameter declarations in prototyped function definition
         StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
                       ^~~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/queue.c:3076: error: expected '{' at end of input
FreeRTOS/Source/include/task.h:1455:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 TickType_t xTaskGetTickCountFromISR( void ) PRIVILEGED_FUNCTION;
                                             ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1471:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 UBaseType_t uxTaskGetNumberOfTasks( void ) PRIVILEGED_FUNCTION;
                                            ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1486:23: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 char * pcTaskGetName( TaskHandle_t xTaskToQuery ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
                       ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1504:1: error: expected declaration specifiers before 'TaskHandle_t'
 TaskHandle_t xTaskGetHandle( const char * pcNameToQuery ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
 ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1533:42: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 UBaseType_t uxTaskGetStackHighWaterMark( TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                                          ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1562:54: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark2( TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                                                      ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1693:42: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskCallApplicationTaskHook( TaskHandle_t xTask,
                                          ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1703:1: error: expected declaration specifiers before 'TaskHandle_t'
 TaskHandle_t xTaskGetIdleTaskHandle( void ) PRIVILEGED_FUNCTION;
 ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1802:35: error: expected declaration specifiers or '...' before 'TaskStatus_t'
 UBaseType_t uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray,
                                   ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1855:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskList( char * pcWriteBuffer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
                                        ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1911:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskGetRunTimeStats( char * pcWriteBuffer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
                                                   ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1951:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 configRUN_TIME_COUNTER_TYPE ulTaskGetIdleRunTimeCounter( void ) PRIVILEGED_FUNCTION;
                                                                 ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1952:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 configRUN_TIME_COUNTER_TYPE ulTaskGetIdleRunTimePercent( void ) PRIVILEGED_FUNCTION;
                                                                 ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2062:32: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify,
                                ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2065:32: error: expected declaration specifiers or '...' before 'eNotifyAction'
                                eNotifyAction eAction,
                                ^~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2214:39: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify,
                                       ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2217:39: error: expected declaration specifiers or '...' before 'eNotifyAction'
                                       eNotifyAction eAction,
                                       ^~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2362:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
                                    TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
                                                              ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2524:37: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskGenericNotifyGiveFromISR( TaskHandle_t xTaskToNotify,
                                     ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2632:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
                                   TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
                                                             ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2695:42: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskGenericNotifyStateClear( TaskHandle_t xTask,
                                          ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2760:41: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 uint32_t ulTaskGenericNotifyValueClear( TaskHandle_t xTask,
                                         ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2782:28: error: expected declaration specifiers or '...' before 'TimeOut_t'
 void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION;
                            ^~~~~~~~~
FreeRTOS/Source/include/task.h:2867:34: error: expected declaration specifiers or '...' before 'TimeOut_t'
 BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut,
                                  ^~~~~~~~~
FreeRTOS/Source/include/task.h:2896:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 BaseType_t xTaskCatchUpTicks( TickType_t xTicksToCatchUp ) PRIVILEGED_FUNCTION;
                                                            ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2918:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 BaseType_t xTaskIncrementTick( void ) PRIVILEGED_FUNCTION;
                                       ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2951:29: error: expected declaration specifiers or '...' before 'List_t'
 void vTaskPlaceOnEventList( List_t * const pxEventList,
                             ^~~~~~
FreeRTOS/Source/include/task.h:2953:38: error: expected declaration specifiers or '...' before 'List_t'
 void vTaskPlaceOnUnorderedEventList( List_t * pxEventList,
                                      ^~~~~~
FreeRTOS/Source/include/task.h:2968:39: error: expected declaration specifiers or '...' before 'List_t'
 void vTaskPlaceOnEventListRestricted( List_t * const pxEventList,
                                       ^~~~~~
FreeRTOS/Source/include/task.h:2996:44: warning: type defaults to 'int' in declaration of 'List_t' [-Wimplicit-int]
 BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList ) PRIVILEGED_FUNCTION;
                                            ^~~~~~
FreeRTOS/Source/include/task.h:2996:51: error: expected ';', ',' or ')' before '*' token
 BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList ) PRIVILEGED_FUNCTION;
                                                   ^
FreeRTOS/Source/include/task.h:2997:41: error: expected declaration specifiers or '...' before 'ListItem_t'
 void vTaskRemoveFromUnorderedEventList( ListItem_t * pxEventListItem,
                                         ^~~~~~~~~~
FreeRTOS/Source/include/task.h:3008:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 portDONT_DISCARD void vTaskSwitchContext( void ) PRIVILEGED_FUNCTION;
                                                  ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3014:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 TickType_t uxTaskResetEventItemValue( void ) PRIVILEGED_FUNCTION;
                                              ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3019:1: error: expected declaration specifiers before 'TaskHandle_t'
 TaskHandle_t xTaskGetCurrentTaskHandle( void ) PRIVILEGED_FUNCTION;
 ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3025:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskMissedYield( void ) PRIVILEGED_FUNCTION;
                               ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3031:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 BaseType_t xTaskGetSchedulerState( void ) PRIVILEGED_FUNCTION;
                                           ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3037:34: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTION;
                                  ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3043:37: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTION;
                                     ^~~~~~~~~~~~
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:164:1: error: unknown type name 'int64_t'; did you mean 'int32_t'?
 int64_t __builtin_mips_shilo (int64_t, int32_t);
 ^~~~~~~
 int32_t
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:164:39: error: expected ')' before 'int32_t'
 int64_t __builtin_mips_shilo (int64_t, int32_t);
                                       ^~~~~~~~
                                       )
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:153:1: error: unknown type name 'int64_t'; did you mean 'int32_t'?
 int64_t __builtin_mips_dpsq_sa_l_w (int64_t, int32_t, int32_t);
 ^~~~~~~
 int32_t
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:153:45: error: expected ')' before 'int32_t'
 int64_t __builtin_mips_dpsq_sa_l_w (int64_t, int32_t, int32_t);
                                             ^~~~~~~~
                                             )
make[2]: *** [nbproject/Makefile-default.mk:257: build/default/production/FreeRTOS/Source/timers.o] Error 255
FreeRTOS/Source/include/task.h:3053:43: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder,
                                           ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3059:34: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 UBaseType_t uxTaskGetTaskNumber( TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                                  ^~~~~~~~~~~~
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:165:1: error: unknown type name 'int64_t'; did you mean 'int32_t'?
 int64_t __builtin_mips_mthlip (int64_t, int32_t);
 ^~~~~~~
 int32_t
FreeRTOS/Source/include/task.h:3065:26: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskSetTaskNumber( TaskHandle_t xTask,
                          ^~~~~~~~~~~~
/opt/microchip/xc32/v4.00/lib/gcc/pic32mx/8.3.1/include/pic32m_builtins.h:165:40: error: expected ')' before 'int32_t'
 int64_t __builtin_mips_mthlip (int64_t, int32_t);
                                        ^~~~~~~~
                                        )
FreeRTOS/Source/include/task.h:3076:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskStepTick( const TickType_t xTicksToJump ) PRIVILEGED_FUNCTION;
                                                     ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3092:1: error: expected declaration specifiers before 'eSleepModeStatus'
 eSleepModeStatus eTaskConfirmSleepModeStatus( void ) PRIVILEGED_FUNCTION;
 ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3098:1: error: expected declaration specifiers before 'TaskHandle_t'
 TaskHandle_t pvTaskIncrementMutexHeldCount( void ) PRIVILEGED_FUNCTION;
 ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3104:36: error: expected declaration specifiers or '...' before 'TimeOut_t'
 void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION;
                                    ^~~~~~~~~
In file included from main.c:17:
FreeRTOS/Source/include/queue.h:50:1: warning: empty declaration
 struct QueueDefinition; /* Using old naming convention so as not to break kernel aware debuggers. */
 ^~~~~~
FreeRTOS/Source/include/queue.h:51:36: error: storage class specified for parameter 'QueueHandle_t'
 typedef struct QueueDefinition   * QueueHandle_t;
                                    ^~~~~~~~~~~~~
FreeRTOS/Source/include/queue.h:58:36: error: storage class specified for parameter 'QueueSetHandle_t'
 typedef struct QueueDefinition   * QueueSetHandle_t;
                                    ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/queue.h:65:36: error: storage class specified for parameter 'QueueSetMemberHandle_t'
 typedef struct QueueDefinition   * QueueSetMemberHandle_t;
                                    ^~~~~~~~~~~~~~~~~~~~~~
In file included from main.c:17:
FreeRTOS/Source/include/queue.h:657:31: error: expected declaration specifiers or '...' before 'QueueHandle_t'
 BaseType_t xQueueGenericSend( QueueHandle_t xQueue,
                               ^~~~~~~~~~~~~
FreeRTOS/Source/include/queue.h:755:24: error: expected declaration specifiers or '...' before 'QueueHandle_t'
 BaseType_t xQueuePeek( QueueHandle_t xQueue,
                        ^~~~~~~~~~~~~
FreeRTOS/Source/include/queue.h:791:31: error: expected declaration specifiers or '...' before 'QueueHandle_t'
 BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue,
                               ^~~~~~~~~~~~~
FreeRTOS/Source/include/queue.h:884:27: error: expected declaration specifiers or '...' before 'QueueHandle_t'
 BaseType_t xQueueReceive( QueueHandle_t xQueue,
                           ^~~~~~~~~~~~~
FreeRTOS/Source/include/queue.h:903:43: warning: type defaults to 'int' in declaration of 'QueueHandle_t' [-Wimplicit-int]
 UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
                                           ^~~~~~~~~~~~~
FreeRTOS/Source/include/queue.h:903:57: error: expected ';', ',' or ')' before 'xQueue'
 UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
                                                         ^~~~~~
FreeRTOS/Source/include/queue.h:922:43: warning: type defaults to 'int' in declaration of 'QueueHandle_t' [-Wimplicit-int]
 UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
                                           ^~~~~~~~~~~~~
FreeRTOS/Source/include/queue.h:922:57: error: expected ';', ',' or ')' before 'xQueue'
 UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
                                                         ^~~~~~
....
FreeRTOS/Source/include/portable.h:179:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 size_t xPortGetFreeHeapSize( void ) PRIVILEGED_FUNCTION;
                                     ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/portable.h:180:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 size_t xPortGetMinimumEverFreeHeapSize( void ) PRIVILEGED_FUNCTION;
                                                ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/portable.h:194:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 BaseType_t xPortStartScheduler( void ) PRIVILEGED_FUNCTION;
                                        ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/portable.h:201:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vPortEndScheduler( void ) PRIVILEGED_FUNCTION;
                                ^~~~~~~~~~~~~~~~~~~
In file included from FreeRTOS/Source/stream_buffer.c:39:
FreeRTOS/Source/include/FreeRTOS.h:1130:1: warning: empty declaration
 struct xSTATIC_LIST_ITEM
 ^~~~~~
FreeRTOS/Source/include/FreeRTOS.h:1141:34: error: storage class specified for parameter 'StaticListItem_t'
 typedef struct xSTATIC_LIST_ITEM StaticListItem_t;
                                  ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/FreeRTOS.h:1144:1: warning: empty declaration
 struct xSTATIC_MINI_LIST_ITEM
 ^~~~~~
FreeRTOS/Source/include/FreeRTOS.h:1152:39: error: storage class specified for parameter 'StaticMiniListItem_t'
 typedef struct xSTATIC_MINI_LIST_ITEM StaticMiniListItem_t;
                                       ^~~~~~~~~~~~~~~~~~~~
........
FreeRTOS/Source/include/task.h:1218:32: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskResumeFromISR( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION;
                                ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1253:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskStartScheduler( void ) PRIVILEGED_FUNCTION;
                                  ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1311:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskEndScheduler( void ) PRIVILEGED_FUNCTION;
                                ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1364:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskSuspendAll( void ) PRIVILEGED_FUNCTION;
                              ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1420:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 BaseType_t xTaskResumeAll( void ) PRIVILEGED_FUNCTION;
                                   ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1437:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 TickType_t xTaskGetTickCount( void ) PRIVILEGED_FUNCTION;
                                      ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1455:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 TickType_t xTaskGetTickCountFromISR( void ) PRIVILEGED_FUNCTION;
                                             ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1471:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 UBaseType_t uxTaskGetNumberOfTasks( void ) PRIVILEGED_FUNCTION;
                                            ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1486:23: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 char * pcTaskGetName( TaskHandle_t xTaskToQuery ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
                       ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1504:1: error: expected declaration specifiers before 'TaskHandle_t'
 TaskHandle_t xTaskGetHandle( const char * pcNameToQuery ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
 ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1533:42: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 UBaseType_t uxTaskGetStackHighWaterMark( TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                                          ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1562:54: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark2( TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                                                      ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1693:42: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskCallApplicationTaskHook( TaskHandle_t xTask,
                                          ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1703:1: error: expected declaration specifiers before 'TaskHandle_t'
 TaskHandle_t xTaskGetIdleTaskHandle( void ) PRIVILEGED_FUNCTION;
 ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1802:35: error: expected declaration specifiers or '...' before 'TaskStatus_t'
 UBaseType_t uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray,
                                   ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1855:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskList( char * pcWriteBuffer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
                                        ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1911:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskGetRunTimeStats( char * pcWriteBuffer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
                                                   ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1951:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 configRUN_TIME_COUNTER_TYPE ulTaskGetIdleRunTimeCounter( void ) PRIVILEGED_FUNCTION;
                                                                 ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:1952:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 configRUN_TIME_COUNTER_TYPE ulTaskGetIdleRunTimePercent( void ) PRIVILEGED_FUNCTION;
                                                                 ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2062:32: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify,
                                ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2065:32: error: expected declaration specifiers or '...' before 'eNotifyAction'
                                eNotifyAction eAction,
                                ^~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2214:39: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify,
                                       ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2217:39: error: expected declaration specifiers or '...' before 'eNotifyAction'
                                       eNotifyAction eAction,
                                       ^~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2362:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
                                    TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
                                                              ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2524:37: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskGenericNotifyGiveFromISR( TaskHandle_t xTaskToNotify,
                                     ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2632:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
                                   TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
                                                             ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2695:42: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskGenericNotifyStateClear( TaskHandle_t xTask,
                                          ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2760:41: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 uint32_t ulTaskGenericNotifyValueClear( TaskHandle_t xTask,
                                         ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2782:28: error: expected declaration specifiers or '...' before 'TimeOut_t'
 void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION;
                            ^~~~~~~~~
FreeRTOS/Source/include/task.h:2867:34: error: expected declaration specifiers or '...' before 'TimeOut_t'
 BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut,
                                  ^~~~~~~~~
FreeRTOS/Source/include/task.h:2896:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 BaseType_t xTaskCatchUpTicks( TickType_t xTicksToCatchUp ) PRIVILEGED_FUNCTION;
                                                            ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2918:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 BaseType_t xTaskIncrementTick( void ) PRIVILEGED_FUNCTION;
                                       ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:2951:29: error: expected declaration specifiers or '...' before 'List_t'
 void vTaskPlaceOnEventList( List_t * const pxEventList,
                             ^~~~~~
FreeRTOS/Source/include/task.h:2953:38: error: expected declaration specifiers or '...' before 'List_t'
 void vTaskPlaceOnUnorderedEventList( List_t * pxEventList,
                                      ^~~~~~
FreeRTOS/Source/include/task.h:2968:39: error: expected declaration specifiers or '...' before 'List_t'
 void vTaskPlaceOnEventListRestricted( List_t * const pxEventList,
                                       ^~~~~~
FreeRTOS/Source/include/task.h:2996:44: warning: type defaults to 'int' in declaration of 'List_t' [-Wimplicit-int]
 BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList ) PRIVILEGED_FUNCTION;
                                            ^~~~~~
FreeRTOS/Source/include/task.h:2996:51: error: expected ';', ',' or ')' before '*' token
 BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList ) PRIVILEGED_FUNCTION;
                                                   ^
FreeRTOS/Source/include/task.h:2997:41: error: expected declaration specifiers or '...' before 'ListItem_t'
 void vTaskRemoveFromUnorderedEventList( ListItem_t * pxEventListItem,
                                         ^~~~~~~~~~
FreeRTOS/Source/include/task.h:3008:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 portDONT_DISCARD void vTaskSwitchContext( void ) PRIVILEGED_FUNCTION;
                                                  ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3014:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 TickType_t uxTaskResetEventItemValue( void ) PRIVILEGED_FUNCTION;
                                              ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3019:1: error: expected declaration specifiers before 'TaskHandle_t'
 TaskHandle_t xTaskGetCurrentTaskHandle( void ) PRIVILEGED_FUNCTION;
 ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3025:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskMissedYield( void ) PRIVILEGED_FUNCTION;
                               ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3031:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 BaseType_t xTaskGetSchedulerState( void ) PRIVILEGED_FUNCTION;
                                           ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3037:34: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTION;
                                  ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3043:37: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTION;
                                     ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3053:43: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder,
                                           ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3059:34: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 UBaseType_t uxTaskGetTaskNumber( TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
                                  ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3065:26: error: expected declaration specifiers or '...' before 'TaskHandle_t'
 void vTaskSetTaskNumber( TaskHandle_t xTask,
                          ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3076:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PRIVILEGED_FUNCTION'
 void vTaskStepTick( const TickType_t xTicksToJump ) PRIVILEGED_FUNCTION;
                                                     ^~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3092:1: error: expected declaration specifiers before 'eSleepModeStatus'
 eSleepModeStatus eTaskConfirmSleepModeStatus( void ) PRIVILEGED_FUNCTION;
 ^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3098:1: error: expected declaration specifiers before 'TaskHandle_t'
 TaskHandle_t pvTaskIncrementMutexHeldCount( void ) PRIVILEGED_FUNCTION;
 ^~~~~~~~~~~~
FreeRTOS/Source/include/task.h:3104:36: error: expected declaration specifiers or '...' before 'TimeOut_t'
 void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION;
                                    ^~~~~~~~~
In file included from FreeRTOS/Source/stream_buffer.c:41:
FreeRTOS/Source/include/stream_buffer.h:71:1: warning: empty declaration
 struct StreamBufferDef_t;
 ^~~~~~
FreeRTOS/Source/include/stream_buffer.h:72:36: error: storage class specified for parameter 'StreamBufferHandle_t'
 typedef struct StreamBufferDef_t * StreamBufferHandle_t;
                                    ^~~~~~~~~~~~~~~~~~~~
In file included from FreeRTOS/Source/stream_buffer.c:41:
FreeRTOS/Source/include/stream_buffer.h:316:27: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
                           ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:417:34: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
                                  ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:506:30: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
                              ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:592:37: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer,
                                     ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:617:27: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
                           ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:637:33: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
                                 ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:657:34: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
                                  ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:680:32: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
                                ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:701:38: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
                                      ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:722:37: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
                                     ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:759:42: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer,
                                          ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:799:47: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer,
                                               ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:840:50: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer,
                                                  ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:844:1: error: expected declaration specifiers before 'StreamBufferHandle_t'
 StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes,
 ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:848:1: error: expected declaration specifiers before 'StreamBufferHandle_t'
 StreamBufferHandle_t xStreamBufferGenericCreateStatic( size_t xBufferSizeBytes,
 ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/stream_buffer.h:854:45: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferNextMessageLengthBytes( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
                                             ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:148:27: error: expected ':', ',', ';', '}' or '__attribute__' before 'xTaskWaitingToReceive'
     volatile TaskHandle_t xTaskWaitingToReceive; /* Holds the handle of a task waiting for data, or NULL if no tasks are waiting. */
                           ^~~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:156:3: error: storage class specified for parameter 'StreamBuffer_t'
 } StreamBuffer_t;
   ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:161:39: warning: type defaults to 'int' in declaration of 'StreamBuffer_t' [-Wimplicit-int]
 static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer ) PRIVILEGED_FUNCTION;
                                       ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:161:54: error: expected ';', ',' or ')' before '*' token
 static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer ) PRIVILEGED_FUNCTION;
                                                      ^
FreeRTOS/Source/stream_buffer.c:174:38: error: expected declaration specifiers or '...' before 'StreamBuffer_t'
 static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer,
                                      ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:186:41: error: expected declaration specifiers or '...' before 'StreamBuffer_t'
 static size_t prvReadMessageFromBuffer( StreamBuffer_t * pxStreamBuffer,
                                         ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:198:40: error: expected declaration specifiers or '...' before 'StreamBuffer_t'
 static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
                                        ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:216:39: error: expected declaration specifiers or '...' before 'StreamBuffer_t'
 static size_t prvReadBytesFromBuffer( StreamBuffer_t * pxStreamBuffer,
                                       ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:225:43: error: expected declaration specifiers or '...' before 'StreamBuffer_t'
 static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer,
                                           ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:235:5: error: expected declaration specifiers before 'StreamBufferHandle_t'
     StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes,
     ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:385:27: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer )
                           ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:418:32: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer )
                                ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:467:42: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer,
                                          ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:497:38: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
                                      ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:530:37: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer )
                                     ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:542:27: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
                           ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:673:34: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
                                  ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:724:40: error: expected declaration specifiers or '...' before 'StreamBuffer_t'
 static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
                                        ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:767:30: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
                              ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:871:45: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferNextMessageLengthBytes( StreamBufferHandle_t xStreamBuffer )
                                             ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:911:37: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer,
                                     ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:968:41: error: expected declaration specifiers or '...' before 'StreamBuffer_t'
 static size_t prvReadMessageFromBuffer( StreamBuffer_t * pxStreamBuffer,
                                         ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:1020:34: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer )
                                  ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:1044:33: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer )
                                 ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:1079:47: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer,
                                               ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:1110:50: error: expected declaration specifiers or '...' before 'StreamBufferHandle_t'
 BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer,
                                                  ^~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:1141:38: error: expected declaration specifiers or '...' before 'StreamBuffer_t'
 static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer,
                                      ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:1187:39: error: expected declaration specifiers or '...' before 'StreamBuffer_t'
 static size_t prvReadBytesFromBuffer( StreamBuffer_t * pxStreamBuffer,
                                       ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:1231:39: warning: type defaults to 'int' in declaration of 'StreamBuffer_t' [-Wimplicit-int]
 static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
                                       ^~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:1231:54: error: expected ';', ',' or ')' before '*' token
 static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
                                                      ^
FreeRTOS/Source/stream_buffer.c:1252:43: error: expected declaration specifiers or '...' before 'StreamBuffer_t'
 static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer,
                                           ^~~~~~~~~~~~~~
In file included from FreeRTOS/Source/include/FreeRTOS.h:65,
                 from FreeRTOS/Source/stream_buffer.c:39:
FreeRTOS/Source/include/portable.h:128:23: error: old-style parameter declarations in prototyped function definition
         StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
                       ^~~~~~~~~~~~~~~~~~~~~
FreeRTOS/Source/stream_buffer.c:1307: error: expected '{' at end of input
 /*-----------------------------------------------------------*/
 
make[2]: *** [nbproject/Makefile-default.mk:245: build/default/production/FreeRTOS/Source/stream_buffer.o] Error 255
make[1]: *** [nbproject/Makefile-default.mk:91: .build-conf] Error 2
make: *** [nbproject/Makefile-impl.mk:39: .build-impl] Error 2
make[2]: Leaving directory '/mnt/924225A142258B55/tmp/MP'
make[1]: Leaving directory '/mnt/924225A142258B55/tmp/MP'

BUILD FAILED (exit value 2, total time: 4s)

I wrote very simple main without start OS kernel:


#include <stdio.h>
#include <stdlib.h>
#include "FreeRTOS.h"
//#define INC_FREERTOS_H 1

#include "list.h"

#include "task.h"
///#include "platform.h"
#include "queue.h"
#include "semphr.h"
///#include "lwip/timers.h"
/*
 * 
 */
int main() {
    
     int ch;
     do{
        for( ch = 75 ; ch <= 100; ch++ ) {
        printf("ASCII value = %d, Character = %c\n", ch , ch );
        }
        ch =75;
     }
    
    while(1);
    //return (EXIT_SUCCESS);
}
which was compiled successfull without FreeRTOS sources

I attached the project here

Can you make the attachment not password protected? It is asking me a password when I try to unzip.

Sorry, this is doing dropmefiles by own, have you tried 123 password?

Here is the project that builds now: MP.zip (582.7 KB)

Somethings that I changed:

  • mpu_wrappers.h was missing and the include was commented out. This is not supposed to be done. In general, you should not modify any FreeRTOS file and it is better to mention here if you do.
  • port files seemed different than what is present in our repo and I replaced them.
  • deleted stdint.h in the demo directory as it was causing duplicate definition error.

Thanks.

Thank you very much! Ive tried to build your version also but ran into the following problem:

make: Makefile: No such file or directory
make: *** No rule to make target 'Makefile'.  Stop.

BUILD FAILED (exit value 2, total time: 68ms)

Sorry I didnt understand

My environment is:

 Centos 7
 MPLAB X ver 6.00
 XC32  ver 4.00

Ive done new project based on that sources and something has changed now:

make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory '/mnt/924225A142258B55/tmp/MP2'
make  -f nbproject/Makefile-default.mk dist/default/production/MP2.production.hex
make[2]: Entering directory '/mnt/924225A142258B55/tmp/MP2'
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/main.o.d" -o build/default/production/main.o main.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/event_groups.o.d" -o build/default/production/FreeRTOS/Source/event_groups.o FreeRTOS/Source/event_groups.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.o.d" -o build/default/production/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.o FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.o.d" -o build/default/production/FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.o FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/stream_buffer.o.d" -o build/default/production/FreeRTOS/Source/stream_buffer.o FreeRTOS/Source/stream_buffer.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/list.o.d" -o build/default/production/FreeRTOS/Source/list.o FreeRTOS/Source/list.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/portable/MemMang/heap_4.o.d" -o build/default/production/FreeRTOS/Source/portable/MemMang/heap_4.o FreeRTOS/Source/portable/MemMang/heap_4.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/tasks.o.d" -o build/default/production/FreeRTOS/Source/tasks.o FreeRTOS/Source/tasks.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/timers.o.d" -o build/default/production/FreeRTOS/Source/timers.o FreeRTOS/Source/timers.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/queue.o.d" -o build/default/production/FreeRTOS/Source/queue.o FreeRTOS/Source/queue.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"    -g -x c -c -mprocessor=32MZ2064DAS176  -I"FreeRTOS/Source/include" -I"FreeRTOS/Demo/Common/include" -I"FreeRTOS/Demo/PIC32MZ_MPLAB" -I"FreeRTOS/Source/portable/MPLAB/PIC32MZ" -fno-common -MP -MMD -MF "build/default/production/FreeRTOS/Source/croutine.o.d" -o build/default/production/FreeRTOS/Source/croutine.o FreeRTOS/Source/croutine.c    -DXPRJ_default=default      -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"  
"/opt/microchip/xc32/v4.00/bin/xc32-gcc"   -mprocessor=32MZ2064DAS176  -o dist/default/production/MP2.production.elf build/default/production/main.o build/default/production/FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.o build/default/production/FreeRTOS/Source/croutine.o build/default/production/FreeRTOS/Source/event_groups.o build/default/production/FreeRTOS/Source/list.o build/default/production/FreeRTOS/Source/portable/MemMang/heap_4.o build/default/production/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.o build/default/production/FreeRTOS/Source/queue.o build/default/production/FreeRTOS/Source/stream_buffer.o build/default/production/FreeRTOS/Source/tasks.o build/default/production/FreeRTOS/Source/timers.o          -DXPRJ_default=default      -Wl,--defsym=__MPLAB_BUILD=1,--defsym=_min_heap_size=5000,--defsym=_min_stack_size=1000,--no-code-in-dinit,--no-dinit-in-serial-mem,-Map="dist/default/production/MP2.production.map",--memorysummary,dist/default/production/memoryfile.xml -mdfp="/opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118"
make[2]: Leaving directory '/mnt/924225A142258B55/tmp/MP2'
make[1]: Leaving directory '/mnt/924225A142258B55/tmp/MP2'

Info: Loading file: .//opt/microchip/mplabx/v6.00/packs/Microchip/PIC32MZ-DA_DFP/1.4.118/xc32/32MZ2064DAS176/p32MZ2064DAS176.ld
/opt/microchip/xc32/v4.00/bin/bin/gcc/pic32mx/8.3.1/../../../../bin/pic32m-ld: build/default/production/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.o: in function `xPortStartScheduler':
/mnt/924225A142258B55/tmp/MP2/FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:(.text+0x348): undefined reference to `vPortStartFirstTask'
collect2: error: ld returned 255 exit status
make[2]: *** [nbproject/Makefile-default.mk:261: dist/default/production/MP2.production.hex] Error 255
make[1]: *** [nbproject/Makefile-default.mk:91: .build-conf] Error 2
make: *** [nbproject/Makefile-impl.mk:39: .build-impl] Error 2

BUILD FAILED (exit value 2, total time: 26s)

I used MPLabX IDE. Can you try that?

This error message is pretty explanatory in this case. The function vPortStartFirstTask is defined here: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/portable/MPLAB/PIC32MZ/port_asm.S#L125. Are you compiling this file? Also, did you try MPLabX IDE?

Thanks.

Dear aggarg!
Thank you fro your support!

Yes, port_asm is in the project tree in MPLAB X IDE, I use MPLAB X IDE v6.00
Also XC32 compiler V4.00
And I use it within Centos7

My MPLabX IDE version is 5.50 and XC32 is 2.40. I will give it a try with the latest toolchain and let you know.

Sorry aggarg!, I confused the projects, with you FreeRTOS assembly and proper IDE’s includes all build successfull!!!
Thank you very much!

:+1: :handshake:

Glad that it worked for you.