From owner-freebsd-arm@FreeBSD.ORG Sun Nov 4 09:01:14 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BBA86BA3 for ; Sun, 4 Nov 2012 09:01:14 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from smtp5.clear.net.nz (smtp5.clear.net.nz [203.97.33.68]) by mx1.freebsd.org (Postfix) with ESMTP id 80D338FC14 for ; Sun, 4 Nov 2012 09:01:13 +0000 (UTC) Received: from mxin1-orange.clear.net.nz (lb2-srcnat.clear.net.nz [203.97.32.237]) by smtp5.clear.net.nz (CLEAR Net Mail) with ESMTP id <0MCY00BN4H1TNT00@smtp5.clear.net.nz> for freebsd-arm@freebsd.org; Sun, 04 Nov 2012 22:01:07 +1300 (NZDT) Received: from 202-0-48-19.paradise.net.nz (HELO localhost) ([202.0.48.19]) by smtpin1.paradise.net.nz with ESMTP; Sun, 04 Nov 2012 22:01:06 +1300 Date: Sun, 04 Nov 2012 22:01:03 +1300 From: Andrew Turner Subject: Re: FreeBSD-arm with Clang In-reply-to: To: Alie Tan Message-id: <20121104220103.1f0709a9@fubar.geek.nz> MIME-version: 1.0 X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; i386-portbld-freebsd8.1) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Pirate: Arrrr References: Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2012 09:01:14 -0000 On Sat, 3 Nov 2012 21:47:27 +0800 Alie Tan wrote: > Hi, > > Have you tried building FreeBSD-arm with Clang? Please share your > exeperience. Would be better if Tim can add this compiler option on > his Beaglebone github script. The version of clang we have in FreeBSD is unable to build FreeBSD/ARM binaries. I have a patch to support, however, while it produces a working kernel, all userland programs crash before they get into main(). The problem I'm having with userland appears to be in crtend.o in the __do_global_ctors_aux function. It loads a list of functions to call but appears to be attempting to call a NULL pointer. I'm not yet sure the cause of this. Andrew