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

On Linux, the tera could not be built in my project by dylib #926

Open
longzou opened this issue Jul 4, 2024 · 0 comments
Open

On Linux, the tera could not be built in my project by dylib #926

longzou opened this issue Jul 4, 2024 · 0 comments

Comments

@longzou
Copy link

longzou commented Jul 4, 2024

My project's Cargo.toml same as below:
`[lib]
crate-type = ["dylib"]

[dependencies]
anyhow = "1"
log = "0.4"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
jsonpath-rust = "0.6.1"
reqwest = { version ="0.12", features = ["json"] }
tokio-cron-scheduler = ""
uuid = "
"
tera = "1"`

It can be built on Windows. But It could not be built on Linux.
= note: /usr/bin/ld: __rust_realloc: undefined version: /usr/bin/ld: __rust_no_alloc_shim_is_unstable: undefined version: /usr/bin/ld: __rust_dealloc: undefined version: /usr/bin/ld: __rust_alloc_zeroed: undefined version: /usr/bin/ld: __rust_alloc_error_handler_should_panic: undefined version: /usr/bin/ld: __rust_alloc_error_handler: undefined version: /usr/bin/ld: __rust_alloc: undefined version: /usr/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status

I checked all of other lib. I found the problem occurred when I add tera lib into this project.

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