This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

'long long long' is too long for GCC



I am trying to cross compile a tftp server for the OMAP-138 EVM using the DVSDK g++.  The code depends on netinet/in.h which depends on stdint.h.  That file has definitions for intmax_t.  The problem is that at compile time, the compiler errors and it indicates that long long long is too long for GCC.  If I perform a host compile, e.g. using just g++ I do not get this error.

Here is the output of just the compile and error:

home/user1/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/arm-arago-linux-gnueabi-g++ -g -O2 -D_XPG4_2 -D_XOPEN_SOURCE -D__EXTENSIONS__ -D_GNU_SOURCE -D_OSF_SOURCE -D_XOPEN_SOURCE_EXTENDED -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/home/user1/PRJ/New3/code/subdir/COMM/arm/app/tftp-hpa-0.48-000 -c tftpsubs.c
cc1plus: warning: command line option "-Wbad-function-cast" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC but not for C++
In file included from /home/user1/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/netinet/in.h:24,
from /home/user1/PRJ/New3/code/subdir/COMM/arm/app/tftp-hpa-0.48-000/config.h:267,
from tftpsubs.h:49,
from tftpsubs.c:39:
/home/user1/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/stdint.h:139: error: 'long long long' is too long for GCC
/home/user1/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/stdint.h:139: error: declaration does not declare anything
/home/user1/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/stdint.h:141: error: duplicate 'unsigned'
/home/user1/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/stdint.h:141: error: 'long long long' is too long for GCC
/home/user1/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/stdint.h:141: error: declaration does not declare anything
tftpsubs.c: In function 'int pick_port_bind(int, sockaddr_in*, unsigned int, unsigned int)':
tftpsubs.c:320: warning: comparison between signed and unsigned integer expressions
make[1]: *** [tftpsubs.o] Error 1
make[1]: Leaving directory `/home/user1/PRJ/New3/code/subdir/COMM/arm/app/tftp-hpa-0.48-000/common'

I'm not sure how to get past this.  I've also tried the compile command without any options and I still get the same error.