Compile / make file error HELP !?

Hi all,

Anybody an idea ? Trying to compile APM quadcopter with latest nuttx v7.xx
Nuttx part done, PX4 done , APM I think is done …

This came up :

/opt/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include/c++/4.9.3/bits/postypes.h:227:16: error: ‘mbstate_t’ was not declared in this scope
typedef fpos<mbstate_t> streampos;

compilation terminated due to -Wfatal-errors.
make[3]: *** [uORBDevices_nuttx.cpp.o] Error 1
make[3]: Leaving directory /home/lexx/ArduPilot/ardupilot/modules/PX4Firmware/Build/' make[2]: *** [/home/lexx/ArduPilot/ardupilot/modules/PX4Firmware/Build/] Error 2 make[2]: Leaving directory/home/lexx/ArduPilot/ardupilot/modules/PX4Firmware/Build/’
make[1]: *** [/home/lexx/ArduPilot/ardupilot/modules/PX4Firmware/Build/] Error 2
make[1]: Leaving directory `/home/lexx/ArduPilot/ardupilot’
make: *** [px4-v2] Error 2


mbstate_t was included in mchar.h file and posttypes.h also include the mchar.h file

Any suggestion or perhaps even HELP would be appreciate