From owner-freebsd-arm@FreeBSD.ORG Mon Aug 5 13:52:25 2013 Return-Path: Delivered-To: arm@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 ESMTP id 0A0FF9C8 for ; Mon, 5 Aug 2013 13:52:25 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D53862E6E for ; Mon, 5 Aug 2013 13:52:24 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1V6LCs-0003YW-5Q; Mon, 05 Aug 2013 13:52:18 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r75DqEw7026337; Mon, 5 Aug 2013 07:52:15 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19ml6qyPqpKwT1sCgskbkgZ Subject: Re: problem compiling libgcrypt from ports From: Ian Lepore To: Tom Everett In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Mon, 05 Aug 2013 07:52:14 -0600 Message-ID: <1375710734.3320.1.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.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: Mon, 05 Aug 2013 13:52:25 -0000 On Mon, 2013-08-05 at 07:40 -0600, Tom Everett wrote: > Perhaps this is not the right list, however this error did occur while > compiling libgcrypt on a Raspberry Pi, running FreeBSD-CURRENT. > > > mpih-div.c:98:3: error: invalid use of a cast in a inline asm context > requiring an l-value: remove the cast or build with -fheinous-gnu-extensions > UDIV_QRNND_PREINV(dummy, r, r, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ./mpi-internal.h:150:13: note: expanded from macro 'UDIV_QRNND_PREINV' > umul_ppmm (_q, _ql, (nh), (di)); \ > ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ > ./longlong.h:230:25: note: expanded from macro 'umul_ppmm' > [more of the same] > fatal error: too many errors emitted, stopping now [-ferror-limit=] > 20 errors generated. > *** [mpih-div.lo] Error code 1 > > make[3]: stopped in /usr/ports/security/libgcrypt/work/libgcrypt-1.5.2/mpi > 1 error > > make[3]: stopped in /usr/ports/security/libgcrypt/work/libgcrypt-1.5.2/mpi > *** [all-recursive] Error code 1 > Someone else ran into this recently, and reported that adding the option USE_GCC=4.2 allowed it to compile. I'm not sure if they modified the port makefile or added the option on the command line or what. -- Ian