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

[Bug] Compilation error: "error: conflicting declaration of C function" #836

Closed
abishekgoda opened this issue Dec 18, 2024 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@abishekgoda
Copy link

abishekgoda commented Dec 18, 2024

Describe the bug

I am trying to compile zenoh-pico to run on esp8266 (esp01 board). I am following along the readme file in the project to do this. I am using PlatformIO Core, version 6.1.16 on a m1 mac running macos 15.2. When I try pio run I get a bunch of conflicting declaration errors. It looks like an overloaded function but the compiler is "C" based. Or maybe am interpreting it wrong. How do I proceed?

To reproduce

  1. Use the example in the README.md
  2. Use the following platformio.ini:
platform = espressif8266
board = esp01
framework = arduino
lib_deps = arduino-libraries/WiFi@^1.2.7
build_flags = -DZENOH_ARDUINO_ESP32 
  1. pio run

System info

  • Mac OS 15.2 / M1 Mac.
  • ESP01 board with 1M memory. Am choosing basic 512K option
@abishekgoda abishekgoda added the bug Something isn't working label Dec 18, 2024
@jean-roland
Copy link
Contributor

jean-roland commented Dec 18, 2024

Can you try with this platformio.ini:

[env:esp32thing_plus]
platform = espressif8266
board = esp01
framework = arduino
lib_deps = 
	arduino-libraries/WiFi@^1.2.7
	zenoh-pico
build_flags = 
	-DZENOH_COMPILER_GCC
	-DZENOH_ARDUINO_ESP32 

@abishekgoda
Copy link
Author

No. Still the same.
err.log has the full set of errors. Thanks!

@jean-roland
Copy link
Contributor

jean-roland commented Dec 19, 2024

You're using a non-arduino application/example (based on freertos it seems) with an arduino framework. Please retry with an app/example from the arduino folder.

For this kind of issues you should contact us on the z_support on our discord.

@abishekgoda
Copy link
Author

That is odd. I am following the README verbatim. And I don't even know what freertos is :-( . I'll check with the discord.

@jean-roland
Copy link
Contributor

Sadly, it's highly probable there's missing / obsolete info in the doc, we're working on improving it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants