From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 10 11:44:00 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B295A106564A for ; Tue, 10 Jan 2012 11:44:00 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 72B928FC12 for ; Tue, 10 Jan 2012 11:44:00 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:c412:ce36:3c98:43b8] (unknown [IPv6:2001:7b8:3a7:0:c412:ce36:3c98:43b8]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 95D845C37; Tue, 10 Jan 2012 12:43:59 +0100 (CET) Message-ID: <4F0C2480.5020704@FreeBSD.org> Date: Tue, 10 Jan 2012 12:44:00 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120106 Thunderbird/10.0 MIME-Version: 1.0 To: Lenny Maiorani References: <502112AF-3908-429C-9DA4-B1D0E94EB9DE@colorado.edu> In-Reply-To: <502112AF-3908-429C-9DA4-B1D0E94EB9DE@colorado.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: building on FreeBSD 7.3 with Clang X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 11:44:00 -0000 On 2012-01-09 20:38, Lenny Maiorani wrote: > Hi. > > I am trying to build a userspace application on FreeBSD 7.3 with Clang. I have come across 2 problems so far and I am looking for any tips or guidance the community has. > > My problems are both related to binutils so far: > 1. Missing symbols : http://llvm.org/bugs/show_bug.cgi?id=9758 > 2. crtendS.o problem : http://sourceware.org/bugzilla/show_bug.cgi?id=12887 > > At this point I need to rebuild my toolchain to get a new crtendS.o. Are there other pitfalls I need to be aware of? It's probably easiest to install the binutils port, and use that for building clang and your application. Otherwise, you can manually apply the patches mentioned in LLVM PR 9758 to your system binutils, and recompile them.