-
Notifications
You must be signed in to change notification settings - Fork 355
Open
Description
creating a minimal benchmark and trying to run it with cargo bench yields the following linker error when using mold as the linker:
error: linking with `/usr/bin/clang` failed: exit status: 1
|
= note: "/usr/bin/clang" "-m64" "<185 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/tmp/rustcgZ2A5T/liballoca-3ac2f10397a02c91.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-*.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcgZ2A5T/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/vxpm/hashbench/target/release/build/alloca-0c933d2ee9edc7ab/out" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/vxpm/hashbench/target/release/deps/benchmark-e8c141f46d589c60" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-fuse-ld=/usr/bin/mold"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: mold: fatal: db3b6bfb95261072-alloca.o: unable to handle this LTO object file because the -plugin option was not provided. Please make sure you added -flto not only when creating object files but also when linking the final executable.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Metadata
Metadata
Assignees
Labels
No labels