GCC compilation yields “real.h:53: error: 'SIZEOF_LONG' undeclared here (not in a function)”

后端 未结 2 1544
北荒
北荒 2021-01-16 13:42

I\'m trying to compile GCC 4.7.2 on a Buffalo LinkStation Pro Duo (after unlocking it) which runs Linux 2.6.31.8 armv5tel.

Unfortunately, make throws qu

2条回答
  •  执笔经年
    2021-01-16 13:42

    SIZEOF_LONG should be #defined by configure in the file auto-host.h. Your auto-host.h should contain something like:

    /* The size of `long', as computed by sizeof. */
    #ifndef USED_FOR_TARGET
    #define SIZEOF_LONG 8
    #endif
    

    If the above is not present (and it looks like in your case it's indeed so), check config.log for errors. Search for errors around the string checking size of long.

提交回复
热议问题