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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB3ij4DoC-hr6zXGK=KX5t825LKYxJr53ppx6E%2B3R5vUEvH1hw>