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)