Skip to content

Instantly share code, notes, and snippets.

@nandub
Created August 6, 2014 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nandub/fd91fcfcc751149fe7ba to your computer and use it in GitHub Desktop.
Save nandub/fd91fcfcc751149fe7ba to your computer and use it in GitHub Desktop.
crosstool-ng fails on osx without zconf patch
In file included from zconf.tab.c:234:
./zconf.hash.c:177:8: warning: implicit declaration of function 'offsetof' is invalid in
C99 [-Wimplicit-function-declaration]
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str2), ...
^
./zconf.hash.c:177:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str2), ...
^
./zconf.hash.c:178:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str3), ...
^
./zconf.hash.c:180:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str5), ...
^
./zconf.hash.c:181:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str6), ...
^
./zconf.hash.c:182:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str7), T_ENDMEN...
^
./zconf.hash.c:183:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str8), T_OPTION...
^
./zconf.hash.c:184:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str9), T_ENDCHO...
^
./zconf.hash.c:185:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str10), ...
^
./zconf.hash.c:186:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str11), ...
^
./zconf.hash.c:187:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str12), T_DEFAUL...
^
./zconf.hash.c:188:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str13), T_DEFAUL...
^
./zconf.hash.c:189:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str14), ...
^
./zconf.hash.c:191:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str16), ...
^
./zconf.hash.c:192:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str17), T_DEFAUL...
^
./zconf.hash.c:193:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str18), ...
^
./zconf.hash.c:194:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str19), T_OPT_DE...
^
./zconf.hash.c:196:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str22), ...
^
./zconf.hash.c:197:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str23), ...
^
./zconf.hash.c:199:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str27), T_OPT_MO...
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
make[2]: *** [zconf.tab.o] Error 1
make[1]: *** [build-lib-kconfig] Error 2
make: *** [build] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment