Date: Tue, 30 Jul 2013 18:51:51 +0900 From: Chie Taguchi <taguchi.ch@gmail.com> To: freebsd-arm@freebsd.org Subject: libgcrypt issue Message-ID: <A68884C3-9281-4FFF-8C6E-AD0B618515B4@gmail.com>
next in thread | raw e-mail | index | archive | help
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=3Dyes' and commented out = 'MAKE_JOBS_SAFE=3Dyes', 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: =3D=3D=3D> Building for libgcrypt-1.5.2 make all-recursive Making all in compat Making all in mpi /bin/sh /usr/local/bin/libtool --tag=3DCC --mode=3Dcompile cc = -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -O = -pipe -std=3Dgnu89 -fvisibility=3Dhidden -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=3Dgnu89 -fvisibility=3Dhidden -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' : "=3D&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' "=3Dr" ((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' : "=3D&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' "=3Dr" ((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' : "=3Dr" ((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' "=3D&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' : "=3Dr" ((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' "=3D&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' : "=3Dr" ((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' "=3D&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' : "=3D&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' "=3Dr" ((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' : "=3D&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' "=3Dr" ((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' : "=3Dr" ((USItype)(sh)), = \ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 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 =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/security/libgcrypt *** Error code 1
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A68884C3-9281-4FFF-8C6E-AD0B618515B4>