Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Aug 2013 07:52:14 -0600
From:      Ian Lepore <ian@FreeBSD.org>
To:        Tom Everett <tom@khubla.com>
Cc:        "freebsd-arm@freebsd.org" <arm@FreeBSD.org>
Subject:   Re: problem compiling libgcrypt from ports
Message-ID:  <1375710734.3320.1.camel@revolution.hippie.lan>
In-Reply-To: <CAB3ij4Adknrr5yOrLLghesC0wgV6rq5dEy_jbZQam_vC9a3SyA@mail.gmail.com>
References:  <CAB3ij4Adknrr5yOrLLghesC0wgV6rq5dEy_jbZQam_vC9a3SyA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1375710734.3320.1.camel>