From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 4 16:50:02 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ECE1F40B for ; Sun, 4 May 2014 16:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C974119F6 for ; Sun, 4 May 2014 16:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s44Go1eN064724 for ; Sun, 4 May 2014 16:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s44Go1jl064723; Sun, 4 May 2014 16:50:01 GMT (envelope-from gnats) Resent-Date: Sun, 4 May 2014 16:50:01 GMT Resent-Message-Id: <201405041650.s44Go1jl064723@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bertrand Augereau Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6C69DF9B for ; Sun, 4 May 2014 16:40:13 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F79C190E for ; Sun, 4 May 2014 16:40:13 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s44GeDP9077234 for ; Sun, 4 May 2014 16:40:13 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s44GeDmo077228; Sun, 4 May 2014 16:40:13 GMT (envelope-from nobody) Message-Id: <201405041640.s44GeDmo077228@cgiserv.freebsd.org> Date: Sun, 4 May 2014 16:40:13 GMT From: Bertrand Augereau To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/189357: lang/rust: rustc chokes on linking a trivial program (__morestack symbol) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 May 2014 16:50:02 -0000 >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: