Hi,

I'm one of the MPIR developers. I am unable to find any information on this 
issue. And Arch Linux seems to have a working MPIR-2.7.0 package which 
doesn't require any specific patching:

https://aur.archlinux.org/packages/mpir/

My guess is something unusual with your system, or a recent change in Arch 
Linux that breaks things.

Either way, it is not clear I can really help.

Can you verify whether this is a Sage/toolchain or an MPIR issue by 
downloading MPIR-2.7.0 from http://www.mpir.org and trying to build it on 
your system (./configure; make; make check).

Bill.

On Friday, 30 October 2015 09:43:21 UTC+1, pang wrote:
>
> Hello, I just got an error trying to compile sage 6.9 from source, on a 
> just updated archlinux with kernel 4.2.3.
>
> A couple of days ago I could upgrade my working installation, and it 
> worked, but it failed at building the documentation.
>
> Regards
>
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -m64 
> -O2 -march=core2 -mtune=core2 -g -c sqrt.c  -fPIC -DPIC -o .libs/sqrt.o
> In file included from sqrt.c:24:0:
> ../mpir.h:1165:63: error: expected ')' before '||' token
>  __GMP_DECLSPEC void mpz_sub_ui __GMP_PROTO ((mpz_ptr, mpz_srcptr, mpir_ui
> ));
>                                                                ^
> ../mpir.h:328:24: note: in definition of macro '__GMP_PROTO'
>  #define __GMP_PROTO(x) x
>                         ^
> In file included from /usr/include/features.h:365:0,
>                  from /usr/include/stdio.h:27,
>                  from sqrt.c:23:
> ../mpir.h:1175:39: error: unknown type name 'wchar_t'
>  __GMP_DECLSPEC void mpz_submul_ui __GMP_PROTO ((mpz_ptr, mpz_srcptr, 
> mpir_ui));
>                                        ^
> ../mpir.h:1178:44: error: unknown type name 'wchar_t'
>  __GMP_DECLSPEC void mpz_swap __GMP_PROTO ((mpz_ptr, mpz_ptr)) 
> __GMP_NOTHROW;
>                                             ^
> ../mpir.h:1179:16: error: unknown type name 'wchar_t'
> In file included from sqrt.c:24:0:
> ../mpir.h:1196:2: error: #endif without #if
>  __GMP_DECLSPEC mpir_ui mpz_tdiv_qr_ui __GMP_PROTO ((mpz_ptr, mpz_ptr, 
> mpz_srcptr, mpir_ui));
>   ^
> ../mpir.h:1205:14: error: unknown type name 'wchar_t'
>  __GMP_DECLSPEC mpir_ui mpz_tdiv_r_ui __GMP_PROTO ((mpz_ptr, mpz_srcptr, 
> mpir_ui));
>               ^
> ../mpir.h:1212:27: error: unknown type name 'wchar_t'
> ../mpir.h:1216:28: error: unknown type name 'wchar_t'
>  #define mpz_urandomm __gmpz_urandomm
>                             ^
> ../mpir.h:1217:14: error: unknown type name 'wchar_t'
>  __GMP_DECLSPEC void mpz_urandomm __GMP_PROTO ((mpz_ptr, gmp_randstate_t, 
> mpz_srcptr));
>               ^
> ../mpir.h:1222:1: error: expected identifier or '(' before numeric 
> constant
> In file included from /usr/include/features.h:365:0,
>                  from /usr/include/stdio.h:27,
>                  from sqrt.c:23:
> ../mpir.h:1228:40: error: unknown type name 'wchar_t'
> ../mpir.h:1231:45: error: unknown type name 'wchar_t'
> ../mpir.h:1232:17: error: unknown type name 'wchar_t'
>  __GMP_DECLSPEC uintmax_t mpz_get_ux __GMP_PROTO ((mpz_srcptr));
>                  ^
> In file included from sqrt.c:24:0:
> ../mpir.h:1259:8: error: unknown type name 'wint_t'
>  #define mpq_add __gmpq_add
>         ^
> ../mpir.h:1260:8: error: unknown type name 'wint_t'
>  __GMP_DECLSPEC void mpq_add __GMP_PROTO ((mpq_ptr, mpq_srcptr, mpq_srcptr
> ));
>         ^
> ../mpir.h:1266:8: error: unknown type name 'wint_t'
>  __GMP_DECLSPEC void mpq_clear __GMP_PROTO ((mpq_ptr));
>         ^
> ../mpir.h: In function '__gmpz_set_q':
> ../mpir.h:2047:3: warning: implicit declaration of function 'mpz_tdiv_q' 
> [-Wimplicit-function-declaration]
>  #endif
>    ^
> ../mpir.h: In function 'mpq_abs':
> ../mpir.h:2070:5: warning: implicit declaration of function
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to