Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

linking issue on trusty with and latest nightly #43

Closed
debris opened this issue Feb 18, 2016 · 4 comments · Fixed by #46
Closed

linking issue on trusty with and latest nightly #43

debris opened this issue Feb 18, 2016 · 4 comments · Fixed by #46

Comments

@debris
Copy link
Contributor

debris commented Feb 18, 2016

linking of application using heapsize and built with latest nightly fails on ubuntu trusty

example:

https://github.com/debris/heapsize_issue

travis build matrix:

https://travis-ci.org/debris/heapsize_issue

@jdm
Copy link
Member

jdm commented Feb 18, 2016

error: linking with `cc` failed: exit code: 1

note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/travis/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/travis/build/debris/heapsize_issue/target/debug/app.0.o" "-o" "/home/travis/build/debris/heapsize_issue/target/debug/app" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/home/travis/build/debris/heapsize_issue/target/debug" "-L" "/home/travis/build/debris/heapsize_issue/target/debug/deps" "-L" "/home/travis/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/travis/build/debris/heapsize_issue/target/debug/libheapsize_issue.rlib" "/home/travis/build/debris/heapsize_issue/target/debug/deps/libheapsize-a00ec68b9e8bd80c.rlib" "/home/travis/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-fd663c41.rlib" "/home/travis/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-fd663c41.rlib" "/home/travis/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_unicode-fd663c41.rlib" "/home/travis/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-fd663c41.rlib" "/home/travis/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-fd663c41.rlib" "/home/travis/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-fd663c41.rlib" "/home/travis/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-fd663c41.rlib" "/home/travis/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-fd663c41.rlib" "-l" "dl" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "compiler-rt"

note: /home/travis/build/debris/heapsize_issue/target/debug/deps/libheapsize-a00ec68b9e8bd80c.rlib(heapsize-a00ec68b9e8bd80c.0.o): In function `heapsize::heap_size_of':

/home/travis/.cargo/registry/src/gb.xjqchip.workers.dev-88ac128001ac3a9a/heapsize-0.3.2/src/lib.rs:45: undefined reference to `je_malloc_usable_size'

collect2: error: ld returned 1 exit status

@larsbergstrom is this related to other issues we've seen recently?

@SimonSapin
Copy link
Member

I suspect rust-lang/rust@e3b414d "std: Stop prefixing jemalloc symbols"

@NikVolf
Copy link
Contributor

NikVolf commented Feb 18, 2016

@NikVolf
Copy link
Contributor

NikVolf commented Feb 18, 2016

#44

bors-servo pushed a commit that referenced this issue Feb 22, 2016
Fix linking on Rust versions that unprefix jemalloc

Fixes #43, fixes #44.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/heapsize/46)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Feb 22, 2016
Fix linking on Rust versions that unprefix jemalloc

Fixes #43, fixes #44.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/heapsize/46)
<!-- Reviewable:end -->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants