Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2013 13:52:13 -0700
From:      hiren panchasara <hiren.panchasara@gmail.com>
To:        =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= <olivier@cochard.me>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: Need help for building security/libgcrypt on ARM with clang
Message-ID:  <CALCpEUE1zCon_19cAHjpZZuWHof9AJwNNnrNYAHCZHo-nR1svw@mail.gmail.com>
In-Reply-To: <CA%2Bq%2BTcp%2BK%2Bh9x216D=vmuwN9-2h23Tdux3Dqzef3JXW_We4UBQ@mail.gmail.com>
References:  <CA%2Bq%2BTcp%2BK%2Bh9x216D=vmuwN9-2h23Tdux3Dqzef3JXW_We4UBQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 10, 2013 at 5:56 AM, Olivier Cochard-Labb=C3=A9
<olivier@cochard.me> wrote:
> Hi,
>
> I would to build security/libgcrypt on ARM with clang but I've got proble=
m
> with longlong.h
>
> On first run, clang complain about:
>
> error: invalid use of a cast in a inline asm context requiring an l-value=
:
> remove the cast or build with -fheinous-gnu-extension
> ./longlong.h:230:25: note: expanded from macro 'umul_ppmm'
>                    : "=3D&r" ((USItype)(xh)),
>
> =3D> For fixing this problem, I've use the same method as in
> files/patch-mpi-longlong.h for I386 arch on the ARM section.
>
> But there is a new problem:
>
> error: invalid % escape in inline assembly string
> ./longlong.h:228:14: note: expanded from macro 'umul_ppmm'
>   __asm__ ("%@ Inlined umul_ppmm\n"

I am also stuck right now on similar error while building libgcrypt:

mpih-div.c:98:3: error: invalid % escape in inline assembly string
                UDIV_QRNND_PREINV(dummy, r, r,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Has anyone built this successfully?

cheers,
Hiren
>
> =3D> For fixing this problem, I've completely remove the "%@ Inlined
> umul_ppmm\n"  string.
>
> But...there is a new problem and I don't know how to fix it:
>
> error: invalid operand in inline asm: 'umull ${1:r}, ${0:r}, ${2:r}, ${3:=
r}'
> ./longlong.h:229:5: note: expanded from macro 'umul_ppmm'
>            "umull %r1, %r0, %r2, %r3"
>
> Where is the problem ?
>
> My current nonworking longlong.h patch is here:
> http://gugus69.free.fr/freebsd/patch-mpi-longlong.h
>
> Thanks,
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"



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