Skip to content

fix(build): add RUSTFLAGS for tests to allow duplicate symbols from ibkrun.a#437

Open
uran0sH wants to merge 1 commit intoboxlite-ai:mainfrom
uran0sH:fix/test-rustflags
Open

fix(build): add RUSTFLAGS for tests to allow duplicate symbols from ibkrun.a#437
uran0sH wants to merge 1 commit intoboxlite-ai:mainfrom
uran0sH:fix/test-rustflags

Conversation

@uran0sH
Copy link
Copy Markdown
Contributor

@uran0sH uran0sH commented Apr 9, 2026

libkrun.a static library contains Rust stdlib symbols (rust_eh_personality, std::sys::args, etc.). When tests link against it with krun feature enabled, linker encounters duplicate symbols.

Add --allow-multiple-definition to RUSTFLAGS in make/test.mk so that make test:all and related targets work correctly.

Note: build-shim.sh already has this flag as it sets its own RUSTFLAGS.

…ibkrun.a

libkrun.a static library contains Rust stdlib symbols (rust_eh_personality,
std::sys::args, etc.). When tests link against it with krun feature enabled,
linker encounters duplicate symbols.

Add --allow-multiple-definition to RUSTFLAGS in make/test.mk so that
make test:all and related targets work correctly.

Note: build-shim.sh already has this flag as it sets its own RUSTFLAGS.
Signed-off-by: Wenyu Huang <huangwenyuu@outlook.com>
@uran0sH uran0sH changed the title fix(build): add RUSTFLAGS for tests to allow duplicate symbols from l… fix(build): add RUSTFLAGS for tests to allow duplicate symbols from ibkrun.a Apr 9, 2026
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

Successfully merging this pull request may close these issues.

1 participant