From owner-freebsd-arm@FreeBSD.ORG Thu Jun 27 21:05:48 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CFF0B911 for ; Thu, 27 Jun 2013 21:05:48 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ea0-x230.google.com (mail-ea0-x230.google.com [IPv6:2a00:1450:4013:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id 69B1D1ECE for ; Thu, 27 Jun 2013 21:05:48 +0000 (UTC) Received: by mail-ea0-f176.google.com with SMTP id z15so649329ead.21 for ; Thu, 27 Jun 2013 14:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FVVjmsPCYUsIocZTgX9hft9VCrnE+9xmmrvLgwrrsbA=; b=xBkaEdH2Q02g69N2UORGX7N0kpE/4MSFFoWIh1eth/teW6z/BLQa3hnGX4ZehIAVoa THB0jg+tbPbPmpiqkwF6V+yQfeqltFsjVJwo/8qVxHkvYe7pbvwyYrmJ17jU8Px8yL4/ cwB/AM67wH6B1GrAJ49xD6S4hRvo3dM6q0TRzDlTxxiPFn7/jwVmCzoGmolt31FOZhBP rCyUlNJiaw57YqN2MjIYA45FLrfchSPp1KvcYtwTr/WddRxwzfNiTQ10TLURMyqz/RSq ovIksVN6LFKIQKYBvoUm15r7qgsP+t7ozv1SplZQr2q2qWGHLJqozCEHLXbfy5x2GzCL p+Cw== MIME-Version: 1.0 X-Received: by 10.15.55.199 with SMTP id v47mr10580648eew.41.1372367147383; Thu, 27 Jun 2013 14:05:47 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Thu, 27 Jun 2013 14:05:47 -0700 (PDT) In-Reply-To: References: Date: Thu, 27 Jun 2013 14:05:47 -0700 Message-ID: Subject: Re: Need help for building security/libgcrypt on ARM with clang From: hiren panchasara To: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm 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: Thu, 27 Jun 2013 21:05:48 -0000 On Thu, Jun 27, 2013 at 1:52 PM, hiren panchasara wrote: > On Sun, Mar 10, 2013 at 5:56 AM, Olivier Cochard-Labb=C3=A9 > wrote: >> Hi, >> >> I would to build security/libgcrypt on ARM with clang but I've got probl= em >> with longlong.h >> >> On first run, clang complain about: >> >> error: invalid use of a cast in a inline asm context requiring an l-valu= e: >> remove the cast or build with -fheinous-gnu-extension >> ./longlong.h:230:25: note: expanded from macro 'umul_ppmm' >> : "=3D&r" ((USItype)(xh)), >> >> =3D> For fixing this problem, I've use the same method as in >> files/patch-mpi-longlong.h for I386 arch on the ARM section. >> >> But there is a new problem: >> >> error: invalid % escape in inline assembly string >> ./longlong.h:228:14: note: expanded from macro 'umul_ppmm' >> __asm__ ("%@ Inlined umul_ppmm\n" > > I am also stuck right now on similar error while building libgcrypt: > > mpih-div.c:98:3: error: invalid % escape in inline assembly string > UDIV_QRNND_PREINV(dummy, r, r, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Has anyone built this successfully? Grabbed the pkg from http://mirrors.nycbug.org/pub/FreeBSD_ARM/pkg/ which works just fine. A *huge* thanks to all who maintain and upgrade this repo! cheers, Hiren > > cheers, > Hiren >> >> =3D> For fixing this problem, I've completely remove the "%@ Inlined >> umul_ppmm\n" string. >> >> But...there is a new problem and I don't know how to fix it: >> >> error: invalid operand in inline asm: 'umull ${1:r}, ${0:r}, ${2:r}, ${3= :r}' >> ./longlong.h:229:5: note: expanded from macro 'umul_ppmm' >> "umull %r1, %r0, %r2, %r3" >> >> Where is the problem ? >> >> My current nonworking longlong.h patch is here: >> http://gugus69.free.fr/freebsd/patch-mpi-longlong.h >> >> Thanks, >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"