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

OSX build issue gperf unrecognized % directive #19

Closed
annejan opened this issue Sep 21, 2016 · 5 comments
Closed

OSX build issue gperf unrecognized % directive #19

annejan opened this issue Sep 21, 2016 · 5 comments

Comments

@annejan
Copy link
Contributor

annejan commented Sep 21, 2016

I'm trying to start a project based on the esp-idf-template

Unfortunately the configuration step fails.

✘-2 ~/Projects/shabadge/esp-eink [master|✚ 1] 
10:57 $ make menuconfig
MAKEFLAGS="" \
    CC=cc LD=ld \
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -C /Users/annejan/Projects/shabadge/esp-idf/tools/kconfig
sed -E "s/\r//" zconf.gperf | gperf -t --output-file zconf.hash.c -a -C -E -g -k '1,3,$' -p -t
(standard input):4: unrecognized % directive
make[1]: *** [zconf.hash.c] Error 1
make: *** [/Users/annejan/Projects/shabadge/esp-idf/tools/kconfig/mconf] Error 2

I'm using GNU gperf 3.0.4
Let me know if you require any more information .

@igrr
Copy link
Member

igrr commented Sep 21, 2016

Thanks for the report.
We have a fix for this issue, it should reach github soon. Until this happens, you can make the change locally:

-   sed -E "s/\r//" zconf.gperf | gperf -t --output-file zconf.hash.c -a -C -E -g -k '1,3,$$' -p -t
+   sed -E "s/\\x0D$$//" zconf.gperf | gperf -t --output-file zconf.hash.c -a -C -E -g -k '1,3,$$' -p -t

@annejan
Copy link
Contributor Author

annejan commented Sep 21, 2016

Thank you, that got me a step further . .

I also had to add -lncurses to the LOADLIBES_mconf

Now the menuconfig works like a charm . .

@igrr
Copy link
Member

igrr commented Sep 21, 2016

Okay, i'll check the bit about -lncurses. Do you use homebrew or macports to install packages? In case of homebrew, do you also have pkgconfig installed?

@annejan
Copy link
Contributor Author

annejan commented Sep 21, 2016

Using homebrew on macOS Sierra (10.12 Beta (16A313a))

@annejan
Copy link
Contributor Author

annejan commented Sep 21, 2016

Fixed in af82eed

@annejan annejan closed this as completed Sep 21, 2016
0xFEEDC0DE64 pushed a commit to 0xFEEDC0DE64/esp-idf that referenced this issue May 5, 2021
* First addition of ESP320 support

* Updated maximum data size.
adpalmer pushed a commit to adpalmer/esp-idf that referenced this issue Jan 13, 2022
* Update API improvements

* native build: Use embuild native esp-idf installer

Rename `SDK_DIR` env var to `ESP_IDF_INSTALL_DIR`.
Add env var `ESP_IDF_INSTALL_LOCAL` which if set to `1` sets `InstallOpts::NO_GLOBAL_INSTALL`.
Add `esp_idf_install_opts()` function.

* Update readme

* Change default from global install to local install.

Change env var `ESP_IDF_INSTALL_LOCAL` to `ESP_IDF_GLOBAL_INSTALL`.

* Fix typo in readme

* Bump embuild version

* Remove `dbg!`
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