problem compiling libgcrypt from ports

Ian Lepore ian at FreeBSD.org
Mon Aug 5 13:52:25 UTC 2013


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




More information about the freebsd-arm mailing list