problem compiling libgcrypt from ports

Tom Everett tom at khubla.com
Mon Aug 5 13:54:53 UTC 2013


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 at 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 <ian at freebsd.org> 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


More information about the freebsd-arm mailing list