The #error can be fixed by changing the minimum required GCC in flatbuffers.h
Not sure why it is complaining about fpos_t, we don't use it, this seems to be a problem with the headers on your platform.
__builtin_bswap16 is apparently missing in your version of GCC. Are you on a big-endian platform? Does it have byte-swap intrinsics?
Looks like it might not support "auto" either.
As much as I hate to say it, you may be out of luck unless you can update the compiler on your platform. Fixing these issues may be too much work otherwise.