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

compiling problems because of kconfig on mac os sierra #251

Closed
eliabieri opened this issue Jan 17, 2017 · 4 comments
Closed

compiling problems because of kconfig on mac os sierra #251

eliabieri opened this issue Jan 17, 2017 · 4 comments

Comments

@eliabieri
Copy link
Contributor

When I want to compile using make menuconfig , the compiler throws the following error:

./zconf.hash.c:166:1: error: conflicting types for 'kconf_id_lookup'
kconf_id_lookup (register const char *str, register size_t len)
^
./zconf.hash.c:33: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[1]: *** [zconf.tab.o] Error 1
@igrr
Copy link
Member

igrr commented Jan 17, 2017

Could you please check the suggestions mentioned here and see if they fix the issue?
pfalcon/esp-open-sdk#236 (comment)

@jtlobdell
Copy link

I had this same issue. I modified the declaration in zconf.hash.c to use size_t instead of unsigned int, and that got it to build.

@projectgus
Copy link
Contributor

gperf 3.1 changed the type signature for this function, for 64-bit compatibility reasons.

A permanent fix is pending and will be in master soon.

In the meantime you can delete this entire line from zconf.gperf and it will fix the problem:
https://github.com/espressif/esp-idf/blob/master/tools/kconfig/zconf.gperf#L12

(Editing zconf.hash.c will work until you make clean, because this file is generated from zconf.gperf.)

@oaky87
Copy link

oaky87 commented Mar 26, 2017

same problem

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

5 participants