esp-rs / embuild

Build support for embedded Rust: Cargo integration with other embedded build ecosystems & tools, like PlatformIO, CMake and kconfig.
Apache License 2.0
135 stars 38 forks source link

Linking with ldproxy failed #91

Closed lorenzo-pirchio closed 2 months ago

lorenzo-pirchio commented 2 months ago

I'm developing a xmpp client for esp32s3, but using tokio-xmpp, I get the error "error: linking with ldproxy failed: exit code: 1". More procisely I get "undefined reference to gethostname", which can be read using the hostname crate, and several call target out of range. Has anyone ever had this problems? Do you have any reccomendation?

ivmarkov commented 2 months ago

gethostname is likely not implemented for the ESP IDF. Aside from patching tokio-xmpp not to use it, OR implementing it yourself, I'm not sure you have that many other options.