PARI/GP Bug report logs - #49
Problem with installing PARI with Suse Linux 9.1.: invalid operands for a div operation

Package: pari-stable; Maintainer for pari-stable is Aurel Page <aurel.page@normalesup.org>; Source for pari-stable is src:pari-stable.

Reported by: Chrit van Ewijk <cvanewijk@xs4all.nl>

Date: Thu, 22 Jul 2004 20:18:01 UTC

Severity: normal

Done: Bill Allombert <allomber@math.u-bordeaux.fr>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit@pari.math.u-bordeaux.fr (full text, mbox, reply):

Received: (at submit) by pari.math.u-bordeaux.fr; 22 Jul 2004 20:11:50 +0000
From cvanewijk@xs4all.nl Thu Jul 22 22:11:50 2004
Received: from smtp-vbr5.xs4all.nl ([194.109.24.25])
	by pari with esmtp (Exim 3.35 #1 (Debian))
	id 1Bnjuw-0006qf-00
	for <submit@pari.math.u-bordeaux.fr>; Thu, 22 Jul 2004 22:11:50 +0200
Received: from a80-127-233-174.dial.xs4all.nl (a80-127-233-174.dial.xs4all.nl [80.127.233.174])
	(authenticated bits=0)
	by smtp-vbr5.xs4all.nl (8.12.11/8.12.11) with ESMTP id i6MKBlvR007837
	for <submit@pari.math.u-bordeaux.fr>; Thu, 22 Jul 2004 22:11:48 +0200 (CEST)
	(envelope-from cvanewijk@xs4all.nl)
From: Chrit van Ewijk <cvanewijk@xs4all.nl>
To: submit@pari.math.u-bordeaux.fr
Subject: Problem with installing PARI  with Suse Linux 9.1.: invalid operands for a div operation
Date: Thu, 22 Jul 2004 22:11:55 +0200
User-Agent: KMail/1.6.2
MIME-Version: 1.0
Content-Disposition: inline
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Message-Id: <200407222211.56514.cvanewijk@xs4all.nl>
X-Virus-Scanned: by XS4ALL Virus Scanner
Package: pari-stable
Version: 2.1.5

I have a problem with installing PARI  with Suse Linux 9.1. 
Configure complains about operands being invalid for a “ div” operation. 
I cannot figure out what the problem is, And I cannot find the Oxxx/par.cfg 
file either.
Can you help me?

Greetings,
Chrit van Ewijk
The Hague 
The Netherlands 


I have Siemens Fujitsu computer with a Pentium 4 CPU 2.00 Ghz.
The operating system is Suse Linux 9.1 (dual boot with Windows XP)
PARI is working correctly under Windows XP.

I tried to install
Stable version: pari-2.1.5.tgz,  1505 KBy, Jul 17 16:04:31 2003 
md5sum: 194e9d1cc11926e457028c6a7cba15f0 

I logged the following session for you. 

cewijk@linux:~> rpm -q ncurses-devel
ncurses-devel-5.4-59
cewijk@linux:~> rpm -q readline-devel
readline-devel-4.3-306
cewijk@linux:~> cd Documents/pari-2.1.5
cewijk@linux:~/Documents/pari-2.1.5> ls
Announce.2.1  Configure  examples     Makefile.Olinux-i686  README
AUTHORS       COPYING    INSTALL.tex  misc                  README.DOS
CHANGES       CVS.txt    INSTALL.txt  NEW                   README.WIN
COMPAT        doc        MACHINES     Odos                  src
config        emacs      Makefile     Olinux-i686           TODO
cewijk@linux:~/Documents/pari-2.1.5> ./Configure --prefix=/usr
Configuring pari-2.1.5 (STABLE)
Checking echo to see how to suppress newlines...
...using -n.
Looking for some tools first ...
...ld is /usr/bin/ld
...zcat is /usr/bin/zcat
...gzip is /usr/bin/gzip
...ranlib is /usr/bin/ranlib
...perl is /usr/bin/perl
...emacs is /usr/bin/emacs
Building for architecture: i686 running linux (ix86 kernel)
Checking for optional libraries and headers...
...Found libreadline in /lib
...Found libncurses in /lib
...Found GNU readline header in /usr/include/readline
...Library ncurses needed by readline
Looking for the compilers ...
...cc is /usr/local/bin/cc
...gcc is /usr/local/bin/gcc
GNU compiler version 3.3.3 (SuSE Linux)
C compiler is          /usr/local/bin/gcc  -O3 -DGCC_INLINE -Wall 
-Wno-implicit -fomit-frame-pointer
Looking for an assembler ...
...as is /usr/bin/as
...Hum, this looks like GNU as
Assembler is           /usr/bin/as
C PreProcessor is      /usr/local/bin/gcc  -E -I.
Executable linker is   /usr/local/bin/gcc  -O3 -DGCC_INLINE -Wall 
-Wno-implicit -fomit-frame-pointer   -Xlinker -export-dynamic
...Hum, this looks like GNU ld
Dynamic Lib linker is  /usr/bin/ld  -shared -soname $(LIBPARI_SONAME) -lc -lm
endian.c:2: warning: return type defaults to `int'
endian.c: In function `main':
endian.c:16: warning: left shift count >= width of type
Given the previous choices, sizeof(long) is 4 chars.
The internal word representation of a double is l[1], l[0].
==========================================================================
Checking some common types...
...Found ulong.
Looking in C lib for some symbols...
...I did not find exp2.
...Found strftime.
...Found getrusage.
...Found sigrelse.
...I did not find TIOCGWINSZ.
...Found getrlimit.
...Found opendir.
...I did not find vsnprintf.
...I did not find dlopen.
Try again, with -ldl this time...
...Found dlopen.
Installation prefix ? [/usr]
...for architecture-independant files (share-prefix) ? []
..."gp" executable ? [/usr/bin]
..."pari" library ? [/usr/lib]
...include files ? [/usr/include/pari]
...manual pages ? [/usr/man/man1]
...documentation, examples, and emacs macros ? [/usr/lib/pari]
...miscellaneous data (galois resolvents) ? [/usr/lib/pari/galdata]
Default is dynamic executable and shared library, graphic=none
==========================================================================
Extracting examples/Makefile.linux-i686
Extracting Olinux-i686/Makefile
Extracting Olinux-i686/../Odos/paricfg.h
Extracting Olinux-i686/paricfg.h
Extracting Makefile
Extracting scripts and macros
...in doc
...in emacs
...in misc
==========================================================================
Shall we try to build pari 2.1.5 (released) now (y/n)? [n]
Ok. Type "make install" when you are ready
Bye !
cewijk@linux:~/Documents/pari-2.1.5> make install
cd Olinux-i686; make install
make[1]: Entering directory `/home/cewijk/Documents/pari-2.1.5/Olinux-i686'
/usr/local/bin/gcc -c -O3 -DGCC_INLINE -Wall -Wno-implicit 
-fomit-frame-pointer   -I. -I../src/headers -o mp.o ../src/kernel/none/mp.c
/tmp/ccQc806P.s: Assembler messages:
/tmp/ccQc806P.s:17332: Error: suffix or operands invalid for `div'
make[1]: *** [mp.o] Error 1
make[1]: Leaving directory `/home/cewijk/Documents/pari-2.1.5/Olinux-i686'
make: *** [install] Error 2
cewijk@linux:~/Documents/pari-2.1.5>

{End of session}



Send a report that this bug log contains spam.


Bill Allombert <allomber@math.u-bordeaux.fr>. Last modified: Sat Aug 26 17:29:46 2023; Machine Name: pari

PARI/GP Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.