Date: Sun, 4 May 2014 16:40:13 GMT From: Bertrand Augereau <bertrand.augereau@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/189357: lang/rust: rustc chokes on linking a trivial program (__morestack symbol) Message-ID: <201405041640.s44GeDmo077228@cgiserv.freebsd.org> Resent-Message-ID: <201405041650.s44Go1jl064723@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 189357 >Category: ports >Synopsis: lang/rust: rustc chokes on linking a trivial program (__morestack symbol) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 04 16:50:01 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Bertrand Augereau >Release: 10.0-RELEASE-p2 >Organization: >Environment: FreeBSD freebsd 10.0-RELEASE-p2 FreeBSD 10.0-RELEASE-p2 #0: Tue Apr 29 17:06:01 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Hello, I'm trying to compile a very simple test.rs file from the tutorial fn main() { println!("hello?"); } with rustc test.rs and I get these errors: error: linking with `cc` failed: exit code: 1 note: cc arguments: '-m64' '-L/usr/local/lib/rustlib/x86_64-unknown-freebsd/lib' '-o' 'test' 'test.o' '-lmorestack' '-nodefaultlibs' '/usr/local/lib/rustlib/x86_64-unknown-freebsd/lib/libnative-72349f30-0.10.rlib' '/usr/local/lib/rustlib/x86_64-unknown-freebsd/lib/libstd-8b97b62e-0.10.rlib' '-L/usr/home/tramb/devel/rust/.rust' '-L/usr/home/tramb/devel/rust' '-lexecinfo' '-lpthread' '-lm' '-lgcc_s' '-L/usr/local/lib' '-L/usr/local/lib/gcc46' '-L/usr/local/lib/gcc44' '-Wl,-rpath,/usr/local/lib/gcc46' '-Wl,-rpath,/usr/local/lib/gcc44' '-Wl,-z,origin' '-Wl,-rpath,$ORIGIN/../../../../local/lib/rustlib/x86_64-unknown-freebsd/lib' '-Wl,-rpath,/usr/local/lib/rustlib/x86_64-unknown-freebsd/lib' '-lcompiler-rt' note: test.o: In function `main::hc710cccadd7cba59eaa::v0.0': test.rs:(.text+0x20): undefined reference to `__morestack' test.o: In function `main': test.rs:(.text+0xb0): undefined reference to `__morestack' test.o: In function `fmt::Arguments$LT$$x27a$GT$::new::h1c4e875dc8287f179aa::v0.0': test.rs:(.text+0x110): undefined reference to `__morestack' test.o: In function `cast::transmute::he083e941a8234f90Bba::v0.0': test.rs:(.text+0x1a0): undefined reference to `__morestack' /usr/local/lib/rustlib/x86_64-unknown-freebsd/lib/libnative-72349f30-0.10.rlib(native.o): In function `io::addrinfo::GetAddrInfoRequest::run::hce03eca6bb2325f70aa::v0.10': native.rs:(.text+0x28): undefined reference to `__morestack' /usr/local/lib/rustlib/x86_64-unknown-freebsd/lib/libnative-72349f30-0.10.rlib(native.o):native.rs:(.text+0x960): more undefined references to `__morestack' follow cc: error: linker command failed with exit code 1 (use -v to see invocation) This is with a up-to-date lang/rust (0.10 on 05 April 2014) from pkg. I didn't try to build the port myself. No mention in ports/UDATING of course :) And I don't have any funny environment (I think). Cheers, Bertrand >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405041640.s44GeDmo077228>