From owner-freebsd-sparc64@FreeBSD.ORG Fri Jan 17 18:39:15 2014 Return-Path: Delivered-To: sparc64@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 E5564506; Fri, 17 Jan 2014 18:39:15 +0000 (UTC) Received: from mx.bsdtec.net (mx.bsdtec.net [174.34.171.65]) by mx1.freebsd.org (Postfix) with ESMTP id B63B91E90; Fri, 17 Jan 2014 18:39:15 +0000 (UTC) Received: from localhost (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id ADB9F489876; Fri, 17 Jan 2014 18:39:09 +0000 (UTC) Received: from mx.bsdtec.net ([172.16.32.2]) by localhost (mx.bsdtec.net [172.16.32.2]) (amavisd-new, port 10032) with ESMTP id cX-YCD-h7_Xl; Fri, 17 Jan 2014 18:39:08 +0000 (UTC) Received: from localhost (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id 7F071489898; Fri, 17 Jan 2014 18:39:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at bsdtec.net Received: from mx.bsdtec.net ([172.16.32.2]) by localhost (mx.bsdtec.net [172.16.32.2]) (amavisd-new, port 10026) with ESMTP id tmSu_MxtrLbS; Fri, 17 Jan 2014 18:39:08 +0000 (UTC) Received: from [192.168.1.110] (bsdtec.plus.com [84.92.41.141]) by mx.bsdtec.net (Postfix) with ESMTPSA id B3848489876; Fri, 17 Jan 2014 18:39:07 +0000 (UTC) Message-ID: <1389983946.3414.3.camel@atlas.lerwick.hopto.org> Subject: Re: Call for help: clang/llvm for sparc64 From: Craig Butler To: Roman Divacky Date: Fri, 17 Jan 2014 18:39:06 +0000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: sparc64@freebsd.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jan 2014 18:39:16 -0000 On Fri, 2014-01-17 at 13:12 +0000, Craig Butler wrote: > Hi Roman and list. > > I've got some spare time and sparc64 kit in the rack. I can help out and walk through anything you need. > > Kind Regards > > Craig Butler > > Roman Divacky wrote: > > >Hi! > > > >LLVM is getting a sparc64 backend. It can even selfhost on linux. But it cant > >on FreeBSD. I am wondering what causes that difference. > > > >A small test case where the difference can be seen is compiling tcsh from > >base. The gethost utility used during the build just coredumps. I suspect > >fixing that might get us on par with linux. > > > >So I am looking for someone who is willing to compile llvm/clang and > >analyze whats wrong with gethost in tcsh compilation. > > > >This is how to do it (you need trunk llvm/clang): > > > >svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm > >cd llvm/ > >svn co http://llvm.org/svn/llvm-project/cfe/trunk clang > >cd ../ > >CFLAGS=-fno-strict-aliasing CXXFLAGS=-fno-strict-aliasing ./configure --enable-optimized --enable-targets=sparc64 > >make > >make install > > > >will give you a clang binary that you can use for tcsh compilation: > > > >cd /usr/src/bin/csh > >CC=clang make > > > >I am more than willing to help with llvm/clang side of this but I dont know > >anything about sparc64 so I need help. But please contact me if you want to > >help! > > > >Thanks, Roman > _______________________________________________ > freebsd-sparc64@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64 > To unsubscribe, send any mail to "freebsd-sparc64-unsubscribe@freebsd.org" Arrrrggghhh !! 9.2-RELEASE sparc64 configure: error: The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade to GCC 4.7. You may pass --disable-compiler-version-checks to configure to bypass these sanity checks. root@bulldog:~# gcc -v Using built-in specs. Target: sparc64-undermydesk-freebsd Configured with: FreeBSD/sparc64 system compiler Thread model: posix gcc version 4.2.1 20070831 patched [FreeBSD] Guess I'll have to try 10-RC5 (or wait till 10 RELEASE ??) Regards Craig Butler