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

Espressif-IDE 3.0.0 Indexer totally broken if /usr/include/gnu/stubs-32.h is missing (IEP-1305) #1029

Open
gtjoseph opened this issue Aug 10, 2024 · 0 comments

Comments

@gtjoseph
Copy link

Describe the bug
In general, the switch to the LSP editor is a total disaster but here's a specific issue not previously reported...
If your host system isn't set up for 32 bit glibc development and doesn't have /usr/include/gnu/stubs-32.h, you get lots of errors in the LSP editor.

  • "Too many errors, stopping now" at the top of files.
  • Lots of "not founds" for esp-idf types and functions.
  • Lots of "not founds" for standard types like uint32_t.
  • Error "gnu/stubs-32.h" not found when doing #include <memory>
In included file: 'gnu/stubs-32.h' file not found

/usr/include/gnu/stubs.h:7:11:
note: error occurred here
  • Lots of namespace errors.
Reference to 'std' is ambiguous

/home/gtjoseph/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/include/c++/13.2.0/bits/unique_ptr.h:53:11:
note: candidate found by name lookup is 'std'

/home/gtjoseph/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/include/c++/13.2.0/vector:100:11:
note: candidate found by name lookup is 'std::std'

Project compile fine both in Eclipse and from command line using idf.py. It's just the editor that's messed up.

To Reproduce
Steps to reproduce the behavior:

  1. Shut down Eclipse if running.
  2. If you have a /usr/include/gnu/stubs-32.h file, remove or rename it temporarily.
  3. Open Eclipse
  4. Open any c, cpp, h or hpp file in a IDF project.
  5. Notice errors.
  6. Shut down Eclipse
  7. Create an empty /usr/include/gnu/stubs-32.h
  8. Reopen Eclipse and a source file.
  9. Notice the errors have gone away.
  10. Replace the empty stubs-32.h with your original one.

Expected behavior
No errors. Your host system should NOT be required to have a 32 bit glibc development environment.

Screenshots
image
image
image

Espressif-IDE Product Information:
product-info.txt

Eclipse Error log:
error.log

Please attach the error log as described here https://github.com/espressif/idf-eclipse-plugin#error-log

@github-actions github-actions bot changed the title Espressif-IDE 3.0.0 Indexer totally broken if /usr/include/gnu/stubs-32.h is missing Espressif-IDE 3.0.0 Indexer totally broken if /usr/include/gnu/stubs-32.h is missing (IEP-1305) Aug 10, 2024
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

1 participant