Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2013 14:05:47 -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:  <CALCpEUFtr5odm%2BbxjaQJgt7s6Q5qE5oEf30yYg3rjZyk7Viwtw@mail.gmail.com>
In-Reply-To: <CALCpEUE1zCon_19cAHjpZZuWHof9AJwNNnrNYAHCZHo-nR1svw@mail.gmail.com>
References:  <CA%2Bq%2BTcp%2BK%2Bh9x216D=vmuwN9-2h23Tdux3Dqzef3JXW_We4UBQ@mail.gmail.com> <CALCpEUE1zCon_19cAHjpZZuWHof9AJwNNnrNYAHCZHo-nR1svw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 27, 2013 at 1:52 PM, hiren panchasara
<hiren.panchasara@gmail.com> wrote:
> 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 probl=
em
>> with longlong.h
>>
>> On first run, clang complain about:
>>
>> error: invalid use of a cast in a inline asm context requiring an l-valu=
e:
>> 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?

Grabbed the pkg from http://mirrors.nycbug.org/pub/FreeBSD_ARM/pkg/
which works just fine.

A *huge* thanks to all who maintain and upgrade this repo!

cheers,
Hiren
>
> 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?CALCpEUFtr5odm%2BbxjaQJgt7s6Q5qE5oEf30yYg3rjZyk7Viwtw>