Karim BELABAS on Fri, 12 Oct 2001 11:12:30 +0200 (MEST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Problem building Pari-2.1.1 on Linux-Alpha


On Tue, 9 Oct 2001, Tomas Ericsson wrote:
> I'm trying to build pari-2.1.1 for Linux-Alpha (ev6) (RedHat 7.1).
>
> # uname -a
> Linux myhost 2.4.3-12 #1 Fri Jun 8 13:20:17 EDT 2001 alpha unknown
> With "make gp" and gcc 3.0.1 I get the following:
[...]
> ../src/basemath/buch2.c
> ../src/basemath/buch2.c: In function `buchall_for_degree_one_pol':
> ../src/basemath/buch2.c:2743: Internal compiler error in
> print_rtl_and_abort, at flow.c:6446
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

For that one, I'm powerless... Might be a good idea to fill in a bug report
to gcc-bugs as suggested.

> With "make gp" and gcc 2.96 (RedHat 7.1 default) I get the following:
[...]
> /usr/bin/gcc -c -O3 -DGCC_INLINE -Wall -Wno-implicit -fomit-frame-pointer
> -I. -I../src/headers  -o init.o ../src/language/init.c
> ../src/language/init.c: In function `timer_proto':
> ../src/language/init.c:1471: `CLK_TCK' undeclared (first use in this
> function)

That one is much easier and has just been corrected (Ilya Zakharevitch,
pari-dev-1169). Here is the patch

--- ./src/language/init.c.orig    Fri Aug 31 19:31:21 2001
+++ ./src/language/init.c Fri Aug 31 19:28:47 2001
@@ -1460,6 +1460,7 @@

 # include <sys/times.h>
 # include <sys/time.h>
+# include <time.h>
   static long
   timer_proto(int i)
   {

Hope this helps,

    Karim.
-- 
Karim Belabas                    email: Karim.Belabas@math.u-psud.fr
Dep. de Mathematiques, Bat. 425
Universite Paris-Sud             Tel: (00 33) 1 69 15 57 48
F-91405 Orsay (France)           Fax: (00 33) 1 69 15 60 19
--
PARI/GP Home Page: http://www.parigp-home.de/