Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OS X build error: conflicting types for 'kconf_id_lookup' #236

Open
aifer2007 opened this issue Jan 9, 2017 · 5 comments
Open

Mac OS X build error: conflicting types for 'kconf_id_lookup' #236

aifer2007 opened this issue Jan 9, 2017 · 5 comments

Comments

@aifer2007
Copy link

aifer2007 commented Jan 9, 2017

environment:
Mac OS X 10.11.6

errors:

In file included from zconf.tab.c:237:
./zconf.hash.c:167:1: error: conflicting types for 'kconf_id_lookup'
kconf_id_lookup (register const char *str, register size_t len)
^
./zconf.hash.c:34:31: note: previous declaration is here
static const struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);
^
1 error generated.
make: *** [zconf.tab.o] Error 1
make: *** [build-lib-kconfig] Error 2
make: *** [build] Error 2
make[1]: *** [_ct-ng] Error 2
make: *** [crosstool-NG/ct-ng] Error 2

@aifer2007 aifer2007 changed the title build error: conflicting types for 'kconf_id_lookup' Mac OS X build error: conflicting types for 'kconf_id_lookup' Jan 9, 2017
@ghost
Copy link

ghost commented Jan 10, 2017

I get the same error on macOS 10.12.2.

@aifer2007
Copy link
Author

my Xcode : Version 8.2.1 (8C1002)

@ghost
Copy link

ghost commented Jan 10, 2017

It might have something to do with a recent update to gperf a few days ago after having 8 years of no updates.
Been trying to find a way to install the previous version using brew but no luck so far.
Just uninstalling the brew version of gperf (3.1) and let the OSX version (3.0.3) take over seems to do the trick.

@aifer2007
Copy link
Author

@Dennis-Janssen

or,you can install macports, and use

$ sudo port install git gsed gawk binutils gperf grep gettext py-serial wget libtool autoconf automake

instead of :

$ brew install binutils coreutils automake wget gawk libtool help2man gperf gnu-sed --with-default-names grep

It works well!

Reference:

#11

@rversteegen
Copy link

Fixed upstream:
crosstool-ng/crosstool-ng#528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants