From owner-freebsd-arm@FreeBSD.ORG Fri Aug 1 17:49:55 2014 Return-Path: Delivered-To: arm@freebsd.org 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 B1970511; Fri, 1 Aug 2014 17:49:55 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (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 856352F69; Fri, 1 Aug 2014 17:49:54 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XDGxl-000Fej-Cw; Fri, 01 Aug 2014 17:49:53 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s71Hnqgl006486; Fri, 1 Aug 2014 11:49:52 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/EsGFlAiGD4mFiXhf/HVGb X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: Can't compile libatomic_ops on RPi From: Ian Lepore To: Michael Tuexen In-Reply-To: <1406907220.56408.248.camel@revolution.hippie.lan> References: <1406907220.56408.248.camel@revolution.hippie.lan> Content-Type: text/plain; charset="us-ascii" Date: Fri, 01 Aug 2014 11:49:51 -0600 Message-ID: <1406915391.56408.257.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2014 17:49:55 -0000 On Fri, 2014-08-01 at 09:33 -0600, Ian Lepore wrote: > On Fri, 2014-08-01 at 17:21 +0200, Michael Tuexen wrote: > > Dear all, > > > > I'm trying to build libatomic_ops on r269265 on a RPi B as part of building git from > > the ports collection (this worked in the past). However, I got: > > > > ... > > /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I../src -I../src -fPIC -Wall -Wextra -O -pipe -MT atomic_ops_stack.lo -MD -MP -MF .deps/atomic_ops_stack.Tpo -c -o atomic_ops_stack.lo atomic_ops_stack.c > > libtool: compile: cc -DHAVE_CONFIG_H -I../src -I../src -fPIC -Wall -Wextra -O -pipe -MT atomic_ops_stack.lo -MD -MP -MF .deps/atomic_ops_stack.Tpo -c atomic_ops_stack.c -o atomic_ops_stack.o > > /tmp/atomic_ops_stack-390892.s: Assembler messages: > > /tmp/atomic_ops_stack-390892.s:73: Error: selected processor does not support `ldrexd r6,r7,[r0]' > > /tmp/atomic_ops_stack-390892.s:81: Error: selected processor does not support `strexd r3,r4,r5,[r0]' > > cc: error: assembler command failed with exit code 1 (use -v to see invocation) > > *** [atomic_ops_stack.lo] Error code 1 > > > > make[4]: stopped in /usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0/src > > 1 error > > > > make[4]: stopped in /usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0/src > > *** [all] Error code 2 > > > > make[3]: stopped in /usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0/src > > 1 error > > > > make[3]: stopped in /usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0/src > > *** [all-recursive] Error code 1 > > > > make[2]: stopped in /usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0 > > 1 error > > > > make[2]: stopped in /usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0 > > ===> Compilation failed unexpectedly. > > Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to > > the maintainer. > > *** Error code 1 > > > > Stop. > > make[1]: stopped in /usr/ports/devel/libatomic_ops > > *** Error code 1 > > > > Stop. > > make: stopped in /usr/ports/devel/libatomic_ops > > > uname -a > > FreeBSD raspberry-pi 11.0-CURRENT FreeBSD 11.0-CURRENT #85 r269265M: Tue Jul 29 23:55:33 CEST 2014 root@bsd5.fh-muenster.de:/usr/home/tuexen/obj/arm.armv6/usr/home/tuexen/head/sys/RPI-B arm > > > > Any idea what is going wrong? > > > > Best regards > > Michael > > Try adding CPUTYPE=arm1176jzf-s to /etc/make.confCPUTYPE=arm1176jzf-s > > -- Ian Update on this... as of r269387, arm1176jzf-s is the default cpu type in clang (as it has always been in gcc) and there's no need to add CPUTYPE. -- Ian