From owner-freebsd-arm@FreeBSD.ORG Mon Aug 5 13:54:52 2013 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 ESMTP id D6C3BA32 for ; Mon, 5 Aug 2013 13:54:52 +0000 (UTC) (envelope-from tom@0x544745.com) Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com [209.85.214.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A0D7B2E89 for ; Mon, 5 Aug 2013 13:54:52 +0000 (UTC) Received: by mail-ob0-f179.google.com with SMTP id fb19so5689096obc.10 for ; Mon, 05 Aug 2013 06:54:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=AQ+fki0Dt3pWbqXsxHtXQtjzZTV/+scQjGmenexr3sk=; b=PtxZsRVld4VujxZMX/0++GAdnEqKA9vaeQSgyaNCBZf/qOGY0oShQCKiFJElEYKhwx +Ih/sIC7K4uoIYGGU7k3t0zMQwhVwF9np3/KAbnK9WzgtNdhML9F87cDu9Tnoj4oft+9 aXAnMPL6JJjYCwfePyYEfLadAGvT47jJWZTRgEvDJ4wdicjXBsQSWWvFjSRTrQOIId1y ZnZZ1U7AT4qQmsMbYM8zJ2GJgWCIvTp1sPT20LO6M/3F6Ot9BNScgmX5QgDgY633jT0E 1MSCVgcQDuo2yPyA0GNDzV7gmmJhlvWAvTvxT09gHPGfIOMx+vCWzWN0ymPzF+vY//dj Tk4w== MIME-Version: 1.0 X-Received: by 10.60.43.138 with SMTP id w10mr14644482oel.23.1375710891811; Mon, 05 Aug 2013 06:54:51 -0700 (PDT) Received: by 10.182.111.67 with HTTP; Mon, 5 Aug 2013 06:54:51 -0700 (PDT) In-Reply-To: <1375710734.3320.1.camel@revolution.hippie.lan> References: <1375710734.3320.1.camel@revolution.hippie.lan> Date: Mon, 5 Aug 2013 07:54:51 -0600 Message-ID: Subject: Re: problem compiling libgcrypt from ports From: Tom Everett To: Ian Lepore X-Gm-Message-State: ALoCoQmyRGHO14J+y3YKP6EAnVQnCHSdNa0xgmFB9nsyffpsuV3Pn3vmy+4UJRNzjSSl37K98gsm Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:54:53 -0000 ok, I'll give that a try. Just FYI, it seems that my current gcc version is 4.2.1, so I'd be asking to compile with an older gcc? root@lureen:/usr/ports/security/libgcrypt # gcc --version gcc (GCC) 4.2.1 20070831 patched [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. On Mon, Aug 5, 2013 at 7:52 AM, Ian Lepore wrote: > 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 > > > -- A better world shall emerge based on faith and understanding - Douglas MacArthur