Closed
Description
Logs available at https://paste.rs/M2c
./configure \
--prefix=/usr \
--enable-ninja \
--llvm-root=/usr \
--disable-codegen-tests \
--jemalloc-root=/usr/lib/libjemalloc_pic.a
# BROKEN: https://github.com/rust-lang/rust/issues/35349
# --jemalloc-root=/usr/lib/
export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"
export CFLAGS="$CFLAGS -fPIC -w"
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
alexcrichton commentedon Jan 22, 2017
This is typically the reponsibility of the standard library but I don't see
-lpthread
in the output at all... odd! What system are you on? (to help in reproducing this)ishitatsuyuki commentedon Jan 22, 2017
Arch amd64, with the provided compilation flags.
ishitatsuyuki commentedon Jan 29, 2017
@alexcrichton: "-l pthread" is passed but possibly somehow truncated in the log. Sorry for the inconvenience.
Back to the topic, you're passing
-lpthread
(wrong), not-pthread
(correct).sfackler commentedon Jan 29, 2017
IIRC
-pthread
only differs from-lpthread
by changing configuration for the macro processor which is not relevant when linking.ishitatsuyuki commentedon Jan 30, 2017
@sfackler: -pthread is not passed even when compiling, causing it referencing to undefined symbols.
ishitatsuyuki commentedon Jan 30, 2017
There's two way to achieve this:
ishitatsuyuki commentedon Feb 3, 2017
https://github.com/rust-lang/rust/blob/master/mk/cfg/x86_64-unknown-linux-gnu.mk#L13
@alexcrichton This is not by luck, this is intended in the old buildsystem.
tamird commentedon Feb 4, 2017
829b5de
Rollup merge of rust-lang#39481 - ishitatsuyuki:master, r=alexcrichton
Rollup merge of rust-lang#39481 - ishitatsuyuki:master, r=alexcrichton
Rollup merge of rust-lang#39481 - ishitatsuyuki:master, r=alexcrichton