gap-packages / anupq

The ANUPQ GAP package
https://gap-packages.github.io/anupq/
Artistic License 2.0
4 stars 6 forks source link

installation / gmp.h #31

Closed heikodietrich closed 5 years ago

heikodietrich commented 6 years ago

Hi there...

After a fresh re-install, I get the following error message when compiling anupq on Ubuntu:

(...)
checking for GAP root directory... /daten/gap-4.9.2
checking for GAP architecture... x86_64-pc-linux-gnu-default64
checking for GAP include files... /daten/gap-4.9.2/src/compiled.h
checking for GAP config.h... /daten/gap-4.9.2/bin/x86_64-pc-linux-gnu-default64/config.h
checking for GAP's gmp.h location... /daten/gap-4.9.2/bin/x86_64-pc-linux-gnu-default64/extern/gmp/include/gmp.h
checking gmp.h usability... no
checking gmp.h presence... yes
configure: WARNING: gmp.h: present but cannot be compiled
configure: WARNING: gmp.h:     check for missing prerequisite headers?
configure: WARNING: gmp.h: see the Autoconf documentation
configure: WARNING: gmp.h:     section "Present But Cannot Be Compiled"
configure: WARNING: gmp.h: proceeding with the compiler's result
configure: WARNING:     ## ----------------------------------------------------------- ##
configure: WARNING:     ## Report this to https://github.com/gap-packages/anupq/issues ##
configure: WARNING:     ## ----------------------------------------------------------- ##

I've even re-compiled GAP --with-gmp=builtin

Note that I have also installed a lot of other libraries (necessary to load Float):

gap> LoadPackage("float");
Loading modules [mpfr, mpfi, mpc] for float 0.9.1 ...
true

It used to work without problems before I've re-installed Ubuntu (Xubuntu 18.04).

Cheers, Heiko

Update: edited to use triple backticks to quote verbatim segments for better readabilty

heikodietrich commented 5 years ago

Hello!

Using the latest git-clone, this above problem doesn't show up anymore. However, a new problem arises (make doesn't go through, see below).

First, a comment: the manual says "do ./configure", but there's no configure file in the git-clone. I had to do ./autogen.sh first, then call ./configure etc. Maybe this should be explained somewhere.

Copied below is config.log and the output of ./make (which yields errors). Does this help?

Cheers, Heiko

CONFIG.LOG:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ANU p-Quotient Program configure 3.2, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = mopsbook
uname -m = x86_64
uname -r = 3.13.0-142-generic
uname -s = Linux
uname -v = #191-Ubuntu SMP Fri Feb 2 12:13:35 UTC 2018

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/heiko/bin
PATH: /opt/OpenPrinting-Gutenprint/sbin
PATH: /opt/OpenPrinting-Gutenprint/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games

## ----------- ##
## Core tests. ##
## ----------- ##

configure:2271: checking for a BSD-compatible install
configure:2339: result: /usr/bin/install -c
configure:2350: checking whether build environment is sane
configure:2405: result: yes
configure:2556: checking for a thread-safe mkdir -p
configure:2595: result: /bin/mkdir -p
configure:2602: checking for gawk
configure:2618: found /usr/bin/gawk
configure:2629: result: gawk
configure:2640: checking whether make sets $(MAKE)
configure:2662: result: yes
configure:2691: checking whether make supports nested variables
configure:2708: result: yes
configure:2844: checking whether make supports nested variables
configure:2861: result: yes
configure:2884: checking for gawk
configure:2911: result: gawk
configure:2970: checking for gcc
configure:2986: found /usr/bin/gcc
configure:2997: result: gcc
configure:3226: checking for C compiler version
configure:3235: gcc --version >&5
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3246: $? = 0
configure:3235: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.4' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.4) 
configure:3246: $? = 0
configure:3235: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3246: $? = 4
configure:3235: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3246: $? = 4
configure:3266: checking whether the C compiler works
configure:3288: gcc    conftest.c  >&5
configure:3292: $? = 0
configure:3340: result: yes
configure:3343: checking for C compiler default output file name
configure:3345: result: a.out
configure:3351: checking for suffix of executables
configure:3358: gcc -o conftest    conftest.c  >&5
configure:3362: $? = 0
configure:3384: result: 
configure:3406: checking whether we are cross compiling
configure:3414: gcc -o conftest    conftest.c  >&5
configure:3418: $? = 0
configure:3425: ./conftest
configure:3429: $? = 0
configure:3444: result: no
configure:3449: checking for suffix of object files
configure:3471: gcc -c   conftest.c >&5
configure:3475: $? = 0
configure:3496: result: o
configure:3500: checking whether we are using the GNU C compiler
configure:3519: gcc -c   conftest.c >&5
configure:3519: $? = 0
configure:3528: result: yes
configure:3537: checking whether gcc accepts -g
configure:3557: gcc -c -g  conftest.c >&5
configure:3557: $? = 0
configure:3598: result: yes
configure:3615: checking for gcc option to accept ISO C89
configure:3678: gcc  -c -g -O2  conftest.c >&5
configure:3678: $? = 0
configure:3691: result: none needed
configure:3716: checking whether gcc understands -c and -o together
configure:3738: gcc -c conftest.c -o conftest2.o
configure:3741: $? = 0
configure:3738: gcc -c conftest.c -o conftest2.o
configure:3741: $? = 0
configure:3753: result: yes
configure:3781: checking for style of include used by make
configure:3809: result: GNU
configure:3835: checking dependency style of gcc
configure:3946: result: gcc3
configure:3961: checking whether make sets $(MAKE)
configure:3983: result: yes
configure:3993: checking for a sed that does not truncate output
configure:4057: result: /bin/sed
configure:4069: checking how to run the C preprocessor
configure:4100: gcc -E  conftest.c
configure:4100: $? = 0
configure:4114: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:4114: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ANU p-Quotient Program"
| #define PACKAGE_TARNAME "anupq"
| #define PACKAGE_VERSION "3.2"
| #define PACKAGE_STRING "ANU p-Quotient Program 3.2"
| #define PACKAGE_BUGREPORT "https://github.com/gap-packages/anupq/issues"
| #define PACKAGE_URL "http://gap-packages.github.io/anupq/"
| #define PACKAGE "anupq"
| #define VERSION "3.2"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4139: result: gcc -E
configure:4159: gcc -E  conftest.c
configure:4159: $? = 0
configure:4173: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:4173: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ANU p-Quotient Program"
| #define PACKAGE_TARNAME "anupq"
| #define PACKAGE_VERSION "3.2"
| #define PACKAGE_STRING "ANU p-Quotient Program 3.2"
| #define PACKAGE_BUGREPORT "https://github.com/gap-packages/anupq/issues"
| #define PACKAGE_URL "http://gap-packages.github.io/anupq/"
| #define PACKAGE "anupq"
| #define VERSION "3.2"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4202: checking for grep that handles long lines and -e
configure:4260: result: /bin/grep
configure:4265: checking for egrep
configure:4327: result: /bin/grep -E
configure:4332: checking for ANSI C header files
configure:4352: gcc -c -g -O2  conftest.c >&5
configure:4352: $? = 0
configure:4425: gcc -o conftest -g -O2   conftest.c  >&5
configure:4425: $? = 0
configure:4425: ./conftest
configure:4425: $? = 0
configure:4436: result: yes
configure:4449: checking for sys/types.h
configure:4449: gcc -c -g -O2  conftest.c >&5
configure:4449: $? = 0
configure:4449: result: yes
configure:4449: checking for sys/stat.h
configure:4449: gcc -c -g -O2  conftest.c >&5
configure:4449: $? = 0
configure:4449: result: yes
configure:4449: checking for stdlib.h
configure:4449: gcc -c -g -O2  conftest.c >&5
configure:4449: $? = 0
configure:4449: result: yes
configure:4449: checking for string.h
configure:4449: gcc -c -g -O2  conftest.c >&5
configure:4449: $? = 0
configure:4449: result: yes
configure:4449: checking for memory.h
configure:4449: gcc -c -g -O2  conftest.c >&5
configure:4449: $? = 0
configure:4449: result: yes
configure:4449: checking for strings.h
configure:4449: gcc -c -g -O2  conftest.c >&5
configure:4449: $? = 0
configure:4449: result: yes
configure:4449: checking for inttypes.h
configure:4449: gcc -c -g -O2  conftest.c >&5
configure:4449: $? = 0
configure:4449: result: yes
configure:4449: checking for stdint.h
configure:4449: gcc -c -g -O2  conftest.c >&5
configure:4449: $? = 0
configure:4449: result: yes
configure:4449: checking for unistd.h
configure:4449: gcc -c -g -O2  conftest.c >&5
configure:4449: $? = 0
configure:4449: result: yes
configure:4464: checking for stdlib.h
configure:4464: result: yes
configure:4464: checking for string.h
configure:4464: result: yes
configure:4464: checking sys/time.h usability
configure:4464: gcc -c -g -O2  conftest.c >&5
configure:4464: $? = 0
configure:4464: result: yes
configure:4464: checking sys/time.h presence
configure:4464: gcc -E  conftest.c
configure:4464: $? = 0
configure:4464: result: yes
configure:4464: checking for sys/time.h
configure:4464: result: yes
configure:4492: checking for GAP root directory
configure:4509: result: /daten/gap-4.10.0
configure:4533: checking for GAP architecture
configure:4557: checking for GAP >= 4.9
configure:4561: result: yes
configure:4708: checking gmp.h usability
configure:4708: gcc -c -g -O2   conftest.c >&5
configure:4708: $? = 0
configure:4708: result: yes
configure:4708: checking gmp.h presence
configure:4708: gcc -E   conftest.c
configure:4708: $? = 0
configure:4708: result: yes
configure:4708: checking for gmp.h
configure:4708: result: yes
configure:4714: checking whether linking against GMP works
configure:4727: gcc -o conftest -g -O2    conftest.c  -lgmp >&5
configure:4727: $? = 0
configure:4732: result: yes
configure:4759: checking for stdlib.h
configure:4759: result: yes
configure:4769: checking for GNU libc compatible malloc
configure:4793: gcc -o conftest -g -O2   conftest.c  >&5
configure:4793: $? = 0
configure:4793: ./conftest
configure:4793: $? = 0
configure:4803: result: yes
configure:4826: checking for stdlib.h
configure:4826: result: yes
configure:4836: checking for GNU libc compatible realloc
configure:4860: gcc -o conftest -g -O2   conftest.c  >&5
configure:4860: $? = 0
configure:4860: ./conftest
configure:4860: $? = 0
configure:4870: result: yes
configure:4891: checking for pid_t
configure:4891: gcc -c -g -O2  conftest.c >&5
configure:4891: $? = 0
configure:4891: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:65:20: error: expected expression before ')' token
 if (sizeof ((pid_t)))
                    ^
configure:4891: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ANU p-Quotient Program"
| #define PACKAGE_TARNAME "anupq"
| #define PACKAGE_VERSION "3.2"
| #define PACKAGE_STRING "ANU p-Quotient Program 3.2"
| #define PACKAGE_BUGREPORT "https://github.com/gap-packages/anupq/issues"
| #define PACKAGE_URL "http://gap-packages.github.io/anupq/"
| #define PACKAGE "anupq"
| #define VERSION "3.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_GMP 1
| #define HAVE_STDLIB_H 1
| #define HAVE_MALLOC 1
| #define HAVE_STDLIB_H 1
| #define HAVE_REALLOC 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| if (sizeof ((pid_t)))
|       return 0;
|   ;
|   return 0;
| }
configure:4891: result: yes
configure:4904: checking vfork.h usability
configure:4904: gcc -c -g -O2  conftest.c >&5
conftest.c:62:19: fatal error: vfork.h: No such file or directory
 #include <vfork.h>
                   ^
compilation terminated.
configure:4904: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ANU p-Quotient Program"
| #define PACKAGE_TARNAME "anupq"
| #define PACKAGE_VERSION "3.2"
| #define PACKAGE_STRING "ANU p-Quotient Program 3.2"
| #define PACKAGE_BUGREPORT "https://github.com/gap-packages/anupq/issues"
| #define PACKAGE_URL "http://gap-packages.github.io/anupq/"
| #define PACKAGE "anupq"
| #define VERSION "3.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_GMP 1
| #define HAVE_STDLIB_H 1
| #define HAVE_MALLOC 1
| #define HAVE_STDLIB_H 1
| #define HAVE_REALLOC 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <vfork.h>
configure:4904: result: no
configure:4904: checking vfork.h presence
configure:4904: gcc -E  conftest.c
conftest.c:29:19: fatal error: vfork.h: No such file or directory
 #include <vfork.h>
                   ^
compilation terminated.
configure:4904: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ANU p-Quotient Program"
| #define PACKAGE_TARNAME "anupq"
| #define PACKAGE_VERSION "3.2"
| #define PACKAGE_STRING "ANU p-Quotient Program 3.2"
| #define PACKAGE_BUGREPORT "https://github.com/gap-packages/anupq/issues"
| #define PACKAGE_URL "http://gap-packages.github.io/anupq/"
| #define PACKAGE "anupq"
| #define VERSION "3.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_GMP 1
| #define HAVE_STDLIB_H 1
| #define HAVE_MALLOC 1
| #define HAVE_STDLIB_H 1
| #define HAVE_REALLOC 1
| /* end confdefs.h.  */
| #include <vfork.h>
configure:4904: result: no
configure:4904: checking for vfork.h
configure:4904: result: no
configure:4917: checking for fork
configure:4917: gcc -o conftest -g -O2   conftest.c  >&5
conftest.c:52:6: warning: conflicting types for built-in function 'fork' [enabled by default]
 char fork ();
      ^
configure:4917: $? = 0
configure:4917: result: yes
configure:4917: checking for vfork
configure:4917: gcc -o conftest -g -O2   conftest.c  >&5
configure:4917: $? = 0
configure:4917: result: yes
configure:4927: checking for working fork
configure:4949: gcc -o conftest -g -O2   conftest.c  >&5
configure:4949: $? = 0
configure:4949: ./conftest
configure:4949: $? = 0
configure:4959: result: yes
configure:4980: checking for working vfork
configure:5090: result: yes
configure:5115: checking for sys/wait.h that is POSIX.1 compatible
configure:5141: gcc -c -g -O2  conftest.c >&5
configure:5141: $? = 0
configure:5148: result: yes
configure:5159: checking for gethostname
configure:5159: gcc -o conftest -g -O2   conftest.c  >&5
configure:5159: $? = 0
configure:5159: result: yes
configure:5159: checking for strftime
configure:5159: gcc -o conftest -g -O2   conftest.c  >&5
conftest.c:58:6: warning: conflicting types for built-in function 'strftime' [enabled by default]
 char strftime ();
      ^
configure:5159: $? = 0
configure:5159: result: yes
configure:5169: checking for library containing log10
configure:5200: gcc -o conftest -g -O2   conftest.c  >&5
conftest.c:43:6: warning: conflicting types for built-in function 'log10' [enabled by default]
 char log10 ();
      ^
/tmp/ccyU9sWY.o: In function `main':
/daten/gap-4.10.0/pkg/anupq/conftest.c:47: undefined reference to `log10'
collect2: error: ld returned 1 exit status
configure:5200: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ANU p-Quotient Program"
| #define PACKAGE_TARNAME "anupq"
| #define PACKAGE_VERSION "3.2"
| #define PACKAGE_STRING "ANU p-Quotient Program 3.2"
| #define PACKAGE_BUGREPORT "https://github.com/gap-packages/anupq/issues"
| #define PACKAGE_URL "http://gap-packages.github.io/anupq/"
| #define PACKAGE "anupq"
| #define VERSION "3.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_GMP 1
| #define HAVE_STDLIB_H 1
| #define HAVE_MALLOC 1
| #define HAVE_STDLIB_H 1
| #define HAVE_REALLOC 1
| #define HAVE_FORK 1
| #define HAVE_VFORK 1
| #define HAVE_WORKING_VFORK 1
| #define HAVE_WORKING_FORK 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_GETHOSTNAME 1
| #define HAVE_STRFTIME 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char log10 ();
| int
| main ()
| {
| return log10 ();
|   ;
|   return 0;
| }
configure:5200: gcc -o conftest -g -O2   conftest.c -lm   >&5
conftest.c:43:6: warning: conflicting types for built-in function 'log10' [enabled by default]
 char log10 ();
      ^
configure:5200: $? = 0
configure:5217: result: -lm
configure:5349: checking that generated files are newer than configure
configure:5355: result: done
configure:5378: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by ANU p-Quotient Program config.status 3.2, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on mopsbook

config.status:879: creating Makefile
config.status:879: creating testPq
config.status:879: creating include/config.h
config.status:1108: executing depfiles commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_fork=yes
ac_cv_func_fork_works=yes
ac_cv_func_gethostname=yes
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_func_strftime=yes
ac_cv_func_vfork=yes
ac_cv_func_vfork_works=yes
ac_cv_header_gmp_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_time_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_sys_wait_h=yes
ac_cv_header_unistd_h=yes
ac_cv_header_vfork_h=no
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_search_log10=-lm
ac_cv_type_pid_t=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /daten/gap-4.10.0/pkg/anupq/cnf/missing aclocal-1.14'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AUTOCONF='${SHELL} /daten/gap-4.10.0/pkg/anupq/cnf/missing autoconf'
AUTOHEADER='${SHELL} /daten/gap-4.10.0/pkg/anupq/cnf/missing autoheader'
AUTOMAKE='${SHELL} /daten/gap-4.10.0/pkg/anupq/cnf/missing automake-1.14'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
GAPARCH='x86_64-pc-linux-gnu-default64'
GAPROOT='/daten/gap-4.10.0'
GAP_CFLAGS=' -g -O2 '
GAP_CPPFLAGS=' -I/daten/gap-4.10.0/gen -I/daten/gap-4.10.0/src -I/daten/gap-4.10.0 -DHAVE_CONFIG_H  -I/daten/gap-4.10.0/extern/install/zlib/include     '
GAP_EXEC='gap'
GAP_LDFLAGS='  /daten/gap-4.10.0/extern/install/zlib/lib/libz.a     '
GAP_LIBS=' -lgmp  -lreadline    -lm -ldl -lutil '
GMP_CPPFLAGS=''
GMP_LIBS='-lgmp'
GREP='/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS='-lm '
LTLIBOBJS=''
MAKEINFO='${SHELL} /daten/gap-4.10.0/pkg/anupq/cnf/missing makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT='o'
PACKAGE='anupq'
PACKAGE_BUGREPORT='https://github.com/gap-packages/anupq/issues'
PACKAGE_NAME='ANU p-Quotient Program'
PACKAGE_STRING='ANU p-Quotient Program 3.2'
PACKAGE_TARNAME='anupq'
PACKAGE_URL='http://gap-packages.github.io/anupq/'
PACKAGE_VERSION='3.2'
PATH_SEPARATOR=':'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='3.2'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /daten/gap-4.10.0/pkg/anupq/cnf/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "ANU p-Quotient Program"
#define PACKAGE_TARNAME "anupq"
#define PACKAGE_VERSION "3.2"
#define PACKAGE_STRING "ANU p-Quotient Program 3.2"
#define PACKAGE_BUGREPORT "https://github.com/gap-packages/anupq/issues"
#define PACKAGE_URL "http://gap-packages.github.io/anupq/"
#define PACKAGE "anupq"
#define VERSION "3.2"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_GMP 1
#define HAVE_STDLIB_H 1
#define HAVE_MALLOC 1
#define HAVE_STDLIB_H 1
#define HAVE_REALLOC 1
#define HAVE_FORK 1
#define HAVE_VFORK 1
#define HAVE_WORKING_VFORK 1
#define HAVE_WORKING_FORK 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_GETHOSTNAME 1
#define HAVE_STRFTIME 1

configure: exit 0

############################################################################ #############################################################################

MAKE.LOG

heiko@mopsbook:/daten/gap-4.10.0/pkg/anupq$ make
  CC       src/pq-AllocateSpace.o
  CC       src/pq-CloseFile.o
  CC       src/pq-Extend_Auts.o
src/Extend_Auts.c: In function ‘Extend_Auts’:
src/Extend_Auts.c:55:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
    fread(&nmr_saved, sizeof(int), 1, fp);
         ^
src/Extend_Auts.c:56:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
    fread(&saved_length, sizeof(int), 1, fp);
         ^
  CC       src/pq-FreeSpace.o
  CC       src/pq-GAP.o
  CC       src/pq-GAP_link_via_file.o
  CC       src/pq-GAP_present.o
  CC       src/pq-OpenFile.o
  CC       src/pq-TemporaryFile.o
  CC       src/pq-action.o
  CC       src/pq-assemble_matrix.o
  CC       src/pq-autgp_order.o
  CC       src/pq-calculate_jacobi.o
  CC       src/pq-central_auts.o
  CC       src/pq-check_exponent.o
  CC       src/pq-class1_eliminate.o
  CC       src/pq-close_relations.o
  CC       src/pq-close_subgroup.o
  CC       src/pq-collect.o
  CC       src/pq-collect_comm.o
  CC       src/pq-collect_gen_word.o
  CC       src/pq-collect_relations.o
  CC       src/pq-collect_word.o
  CC       src/pq-collectp2.o
  CC       src/pq-commutator.o
  CC       src/pq-commute_dgen.o
  CC       src/pq-compact.o
  CC       src/pq-compact_description.o
  CC       src/pq-consistency.o
  CC       src/pq-consistency_filter.o
  CC       src/pq-consistency_info.o
  CC       src/pq-construct.o
  CC       src/pq-convert.o
  CC       src/pq-defaults_pga.o
  CC       src/pq-degree.o
  CC       src/pq-delete_tables.o
  CC       src/pq-down_class.o
  CC       src/pq-echelon.o
  CC       src/pq-echelonise_matrix.o
  CC       src/pq-eliminate.o
  CC       src/pq-expand_commutator.o
  CC       src/pq-exponent_auts.o
  CC       src/pq-exponent_info.o
  CC       src/pq-extend_automorphisms.o
  CC       src/pq-extend_matrix.o
  CC       src/pq-extend_representation.o
  CC       src/pq-extra_relations.o
  CC       src/pq-find_allowable_subgroup.o
  CC       src/pq-find_image.o
  CC       src/pq-find_permutation.o
  CC       src/pq-formula.o
  CC       src/pq-generator_definition.o
  CC       src/pq-get_definition_sets.o
  CC       src/pq-identity.o
  CC       src/pq-immediate_descendant.o
  CC       src/pq-initialise_pcp.o
  CC       src/pq-initialise_pga.o
  CC       src/pq-insoluble_orbits.o
  CC       src/pq-int_power.o
  CC       src/pq-interactive_pga.o
  CC       src/pq-interactive_pq.o
  CC       src/pq-invert.o
  CC       src/pq-invert_auts.o
  CC       src/pq-invert_modp.o
  CC       src/pq-is_genlim_exceeded.o
  CC       src/pq-is_space_exhausted.o
  CC       src/pq-isom_options.o
src/isom_options.c: In function ‘isom_options’:
src/isom_options.c:245:25: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
                   fscanf(FileName, "\n");
                         ^
src/isom_options.c:265:22: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
                fscanf(Status, "%d", &status);
                      ^
src/isom_options.c:266:22: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
                fscanf(Status, "%d", &complete);
                      ^
src/isom_options.c:411:16: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
          fscanf(FileName, "\n");
                ^
  CC       src/pq-iteration.o
  CC       src/pq-jacobi.o
  CC       src/pq-label_to_subgroup.o
  CC       src/pq-last_class.o
  CC       src/pq-list_commutators.o
  CC       src/pq-map_relations.o
  CC       src/pq-matrix.o
  CC       src/pq-maxoccur.o
  CC       src/pq-multiply_word.o
  CC       src/pq-next_class.o
  CC       src/pq-options.o
  CC       src/pq-orbit_summary.o
  CC       src/pq-permute_elements.o
  CC       src/pq-permute_subgroups.o
  CC       src/pq-pgroup.o
  CC       src/pq-power.o
  CC       src/pq-pquotient.o
  CC       src/pq-pretty_filter.o
  CC       src/pq-pretty_filterfns.o
  CC       src/pq-print_arrays.o
  CC       src/pq-print_auts.o
  CC       src/pq-print_level.o
  CC       src/pq-print_multiweight.o
src/print_multiweight.c: In function ‘print_multiweight’:
src/print_multiweight.c:43:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d", &print_mwt);
         ^
src/print_multiweight.c:47:12: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
       scanf("%c", &start);
            ^
src/print_multiweight.c:48:12: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
       scanf("%c", &start);
            ^
src/print_multiweight.c:58:18: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
             scanf("%d", &pattern[i]);
                  ^
src/print_multiweight.c:61:15: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
          scanf("%c", &start);
               ^
  CC       src/pq-print_presentation.o
  CC       src/pq-print_structure.o
  CC       src/pq-print_word.o
  CC       src/pq-read.o
src/read.c: In function ‘restore_pga’:
src/read.c:142:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
    fread(pga->relative + 1, sizeof(int), pga->nmr_soluble, ifp);
         ^
  CC       src/pq-read_auts.o
  CC       src/pq-read_parameters.o
  CC       src/pq-read_relations.o
  CC       src/pq-read_relator_file.o
  CC       src/pq-read_value.o
  CC       src/pq-read_word.o
  CC       src/pq-reduce_matrix.o
  CC       src/pq-reduced_covers.o
  CC       src/pq-report_error.o
  CC       src/pq-restore_group.o
  CC       src/pq-setup.o
  CC       src/pq-setup_reps.o
  CC       src/pq-soluble_orbits.o
  CC       src/pq-solve_equation.o
  CC       src/pq-stabiliser.o
  CC       src/pq-stages.o
  CC       src/pq-standard.o
  CC       src/pq-start_group.o
  CC       src/pq-start_iteration.o
  CC       src/pq-step_range.o
  CC       src/pq-store_definition_sets.o
  CC       src/pq-strip_identities.o
  CC       src/pq-subgroup_to_label.o
  CC       src/pq-system.o
  CC       src/pq-tail_info.o
  CC       src/pq-tails.o
src/tails.c: In function ‘tails’:
src/tails.c:57:6: error: ‘for’ loop initial declarations are only allowed in C99 mode
      for (int gen = 1; gen <= end; gen++) {
      ^
src/tails.c:57:6: note: use option -std=c99 or -std=gnu99 to compile your code
make: *** [src/pq-tails.o] Error 1

Update: edited to use triple backticks to quote verbatim segments for better readabilty

fingolfin commented 5 years ago

I believe all of this is fixed in anupq 3.2.1 which I just released, and which should be included in the upcoming GAP 4.11.