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

merge two rust projects into one to avoid multiple definition build error for Release #2

Closed
guocuimi opened this issue Oct 6, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@guocuimi
Copy link
Collaborator

guocuimi commented Oct 6, 2023

[build] /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/personality/gcc.rs:251: multiple definition of `rust_eh_personality'; src/model_loader/safetensors/x86_64-unknown-linux-gnu/release/libsafetensors.a(safetensors-e174e679aecb9d8a.safetensors.b257752cd506e4e1-cgu.7.rcgu.o):/rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/personality/gcc.rs:251: first defined here [build] /usr/bin/ld: src/tokenizer/tokenizers/x86_64-unknown-linux-gnu/release/libtokenizers.a(std-7b9f6349d87c69a1.std.edecf719d62c0e6b-cgu.0.rcgu.o):(.init_array.00099+0x0): multiple definition of `std::sys::unix::args::imp::ARGV_INIT_ARRAY'; src/model_loader/safetensors/x86_64-unknown-linux-gnu/release/libsafetensors.a(safetensors-e174e679aecb9d8a.safetensors.b257752cd506e4e1-cgu.7.rcgu.o):(.init_array.00099+0x0): first defined here

@guocuimi guocuimi added the bug Something isn't working label Oct 6, 2023
@guocuimi guocuimi added this to the Launch ScaleLLM officially milestone Oct 6, 2023
@guocuimi
Copy link
Collaborator Author

guocuimi commented Oct 9, 2023

this is the bug from rust, still no solution yet: rust-lang/rust#44322
mitigated by by changing safetensors from static lib to shared lib. in diff: 5a73f8b

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

1 participant