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 'mpq_set' [-
Wimplicit-function-declaration]
 __GMP_EXTERN_INLINE void
     ^
../mpir.h: At top level:
../mpir.h:2490:2: error: #endif without #if
 #define __MPIR_CFLAGS "-m64 -O2 -march=core2 -mtune=core2  -g "
  ^
Makefile:449: recipe for target 'sqrt.lo' failed
make[5]: *** [sqrt.lo] Error 1
make[5]: Leaving directory 
'/home/user/sage-6.9/local/var/tmp/sage/build/mpir-2.7.0/src/mpz'
Makefile:948: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory 
'/home/user/sage-6.9/local/var/tmp/sage/build/mpir-2.7.0/src'
Makefile:744: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory 
'/home/user/sage-6.9/local/var/tmp/sage/build/mpir-2.7.0/src'
Error building MPIR.

real    7m4.518s
user    3m53.987s
sys    1m19.637s
************************************************************************
Error installing package mpir-2.7.0
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  /home/user/sage-6.9/logs/pkgs/mpir-2.7.0.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/user/sage-6.9/local/var/tmp/sage/build/mpir-2.7.0 and type 'make' or 
whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/home/user/sage-6.9/local/var/tmp/sage/build/mpir-2.7.0' && '/home/
user/sage-6.9/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
Makefile:1684: fallo en las instrucciones para el objetivo '/home/user/sage-
6.9/local/var/lib/sage/installed/mpir-2.7.0'
make[2]: *** [/home/user/sage-6.9/local/var/lib/sage/installed/mpir-2.7.0] 
Error 1
make[2]: se sale del directorio '/home/user/sage-6.9/build/make'
Makefile:626: fallo en las instrucciones para el objetivo 'all-toolchain'
make[1]: *** [all-toolchain] Error 2
make[1]: se sale del directorio '/home/user/sage-6.9/build/make'

real    10m45.160s
user    5m46.990s
sys    1m59.770s
***************************************************************
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all'):

* package: mpir-2.7.0
  log file: /home/user/sage-6.9/logs/pkgs/mpir-2.7.0.log
  build directory: /home/user/sage-6.9/local/var/tmp/sage/build/mpir-2.7.0

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.





-- 
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