libgcrypt issue
Chie Taguchi
taguchi.ch at gmail.com
Tue Jul 30 09:51:56 UTC 2013
hi all,
i want to build security/libgcrypt on my raspberrypi.
uname -a
FreeBSD raspberry-pi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r253638: Fri Jul 26 17:24:33 JST 2013
but compiling was failed with many errors.
i had added my Makefike 'MAKE_JOBS_UNSAFE=yes' and commented out 'MAKE_JOBS_SAFE=yes',
but got same errors.
and i searched for the solutions, but i could find only to use package.
i want to know how to fix this ports.
does anyone know where is the patch files or ports skelton to make the package?
Regards,
C.Taguchi
------
error messages:
===> Building for libgcrypt-1.5.2
make all-recursive
Making all in compat
Making all in mpi
/bin/sh /usr/local/bin/libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -O -pipe -std=gnu89 -fvisibility=hidden -Wall -MT mpih-div.lo -MD -MP -MF .deps/mpih-div.Tpo -c -o mpih-div.lo mpih-div.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -O -pipe -std=gnu89 -fvisibility=hidden -Wall -MT mpih-div.lo -MD -MP -MF .deps/mpih-div.Tpo -c mpih-div.c -fPIC -DPIC -o .libs/mpih-div.o
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'
: "=&r" ((USItype)(xh)), \
^
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:17: note: expanded from macro 'UDIV_QRNND_PREINV'
umul_ppmm (_q, _ql, (nh), (di)); \
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
./longlong.h:231:24: note: expanded from macro 'umul_ppmm'
"=r" ((USItype)(xl)) \
^
mpih-div.c:98:3: error: invalid % escape in inline assembly string
UDIV_QRNND_PREINV(dummy, r, r,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./mpi-internal.h:150:2: note: expanded from macro 'UDIV_QRNND_PREINV'
umul_ppmm (_q, _ql, (nh), (di)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./longlong.h:228:14: note: expanded from macro 'umul_ppmm'
__asm__ ("%@ Inlined umul_ppmm\n" \
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:152:13: note: expanded from macro 'UDIV_QRNND_PREINV'
umul_ppmm (_xh, _xl, _q, (d)); \
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
./longlong.h:230:25: note: expanded from macro 'umul_ppmm'
: "=&r" ((USItype)(xh)), \
^
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:152:18: note: expanded from macro 'UDIV_QRNND_PREINV'
umul_ppmm (_xh, _xl, _q, (d)); \
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
./longlong.h:231:24: note: expanded from macro 'umul_ppmm'
"=r" ((USItype)(xl)) \
^
mpih-div.c:98:3: error: invalid % escape in inline assembly string
UDIV_QRNND_PREINV(dummy, r, r,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./mpi-internal.h:152:2: note: expanded from macro 'UDIV_QRNND_PREINV'
umul_ppmm (_xh, _xl, _q, (d)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./longlong.h:228:14: note: expanded from macro 'umul_ppmm'
__asm__ ("%@ Inlined umul_ppmm\n" \
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:153:14: note: expanded from macro 'UDIV_QRNND_PREINV'
sub_ddmmss (_xh, _r, (nh), (nl), _xh, _xl); \
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./longlong.h:200:23: note: expanded from macro 'sub_ddmmss'
: "=r" ((USItype)(sh)), \
^
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:153:19: note: expanded from macro 'UDIV_QRNND_PREINV'
sub_ddmmss (_xh, _r, (nh), (nl), _xh, _xl); \
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
./longlong.h:201:24: note: expanded from macro 'sub_ddmmss'
"=&r" ((USItype)(sl)) \
^
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:155:18: note: expanded from macro 'UDIV_QRNND_PREINV'
sub_ddmmss (_xh, _r, _xh, _r, 0, (d)); \
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
./longlong.h:200:23: note: expanded from macro 'sub_ddmmss'
: "=r" ((USItype)(sh)), \
^
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:155:23: note: expanded from macro 'UDIV_QRNND_PREINV'
sub_ddmmss (_xh, _r, _xh, _r, 0, (d)); \
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
./longlong.h:201:24: note: expanded from macro 'sub_ddmmss'
"=&r" ((USItype)(sl)) \
^
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:158:15: note: expanded from macro 'UDIV_QRNND_PREINV'
sub_ddmmss (_xh, _r, _xh, _r, 0, (d)); \
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
./longlong.h:200:23: note: expanded from macro 'sub_ddmmss'
: "=r" ((USItype)(sh)), \
^
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:158:20: note: expanded from macro 'UDIV_QRNND_PREINV'
sub_ddmmss (_xh, _r, _xh, _r, 0, (d)); \
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
./longlong.h:201:24: note: expanded from macro 'sub_ddmmss'
"=&r" ((USItype)(sl)) \
^
mpih-div.c:104:6: 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'
: "=&r" ((USItype)(xh)), \
^
mpih-div.c:104:6: 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:17: note: expanded from macro 'UDIV_QRNND_PREINV'
umul_ppmm (_q, _ql, (nh), (di)); \
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
./longlong.h:231:24: note: expanded from macro 'umul_ppmm'
"=r" ((USItype)(xl)) \
^
mpih-div.c:104:6: error: invalid % escape in inline assembly string
UDIV_QRNND_PREINV(dummy, r, r,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./mpi-internal.h:150:2: note: expanded from macro 'UDIV_QRNND_PREINV'
umul_ppmm (_q, _ql, (nh), (di)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./longlong.h:228:14: note: expanded from macro 'umul_ppmm'
__asm__ ("%@ Inlined umul_ppmm\n" \
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mpih-div.c:104:6: 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:152:13: note: expanded from macro 'UDIV_QRNND_PREINV'
umul_ppmm (_xh, _xl, _q, (d)); \
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
./longlong.h:230:25: note: expanded from macro 'umul_ppmm'
: "=&r" ((USItype)(xh)), \
^
mpih-div.c:104:6: 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:152:18: note: expanded from macro 'UDIV_QRNND_PREINV'
umul_ppmm (_xh, _xl, _q, (d)); \
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
./longlong.h:231:24: note: expanded from macro 'umul_ppmm'
"=r" ((USItype)(xl)) \
^
mpih-div.c:104:6: error: invalid % escape in inline assembly string
UDIV_QRNND_PREINV(dummy, r, r,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./mpi-internal.h:152:2: note: expanded from macro 'UDIV_QRNND_PREINV'
umul_ppmm (_xh, _xl, _q, (d)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./longlong.h:228:14: note: expanded from macro 'umul_ppmm'
__asm__ ("%@ Inlined umul_ppmm\n" \
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mpih-div.c:104:6: 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:153:14: note: expanded from macro 'UDIV_QRNND_PREINV'
sub_ddmmss (_xh, _r, (nh), (nl), _xh, _xl); \
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./longlong.h:200:23: note: expanded from macro 'sub_ddmmss'
: "=r" ((USItype)(sh)), \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** [mpih-div.lo] Error code 1
make: stopped in /usr/ports/security/libgcrypt/work/libgcrypt-1.5.2/mpi
1 error
make: stopped in /usr/ports/security/libgcrypt/work/libgcrypt-1.5.2/mpi
*** [all-recursive] Error code 1
make: stopped in /usr/ports/security/libgcrypt/work/libgcrypt-1.5.2
1 error
make: stopped in /usr/ports/security/libgcrypt/work/libgcrypt-1.5.2
*** [all] Error code 2
make: stopped in /usr/ports/security/libgcrypt/work/libgcrypt-1.5.2
1 error
make: stopped in /usr/ports/security/libgcrypt/work/libgcrypt-1.5.2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/ports/security/libgcrypt
*** Error code 1
More information about the freebsd-arm
mailing list