Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package polymake 3.0 #20892

Closed
videlec opened this issue Jun 27, 2016 · 130 comments
Closed

package polymake 3.0 #20892

videlec opened this issue Jun 27, 2016 · 130 comments

Comments

@videlec
Copy link
Contributor

videlec commented Jun 27, 2016

Package now compiles out of the box! There will be a next ticket for its interface within Sage.

upstream tarball: https://polymake.org/lib/exe/fetch.php/download/polymake-3.0r2-minimal.tar.bz2

Once installed you should be able to run polymake with

$ sage -sh -c polymake
Welcome to polymake version 3.0
Copyright (c) 1997-2015
...
polytope > 

previous attempts (with earlier versions): #13768, #14116

upstream discussion at:

Follow-up tickets:

Depends on #20894
Depends on #20886
Depends on #20901

CC: @dimpase @mkoeppe @fchapoton @stumpc5 @mo271 @tscrim

Component: packages: experimental

Author: Vincent Delecroix, Matthias Koeppe

Branch: 7b096fd

Reviewer: Matthias Koeppe, Vincent Delecroix, Karl-Dieter Crisman

Issue created by migration from https://trac.sagemath.org/ticket/20892

@videlec videlec added this to the sage-7.3 milestone Jun 27, 2016
@videlec

This comment has been minimized.

@videlec
Copy link
Contributor Author

videlec commented Jun 27, 2016

Branch: u/vdelecroix/20892

@videlec
Copy link
Contributor Author

videlec commented Jun 27, 2016

Commit: 9253643

@videlec
Copy link
Contributor Author

videlec commented Jun 27, 2016

New commits:

9253643Trac 20892: package for polymake 3.0

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 27, 2016

Changed commit from 9253643 to cf20c0b

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 27, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

cf20c0btrac 20892: more options to ./configure

@videlec

This comment has been minimized.

@videlec

This comment has been minimized.

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 27, 2016

comment:6

Installation fails on Mac OS X:

[polymake-3.0r1] Found local metadata for polymake-3.0r1
[polymake-3.0r1] Using cached file /Users/mkoeppe/cvs/sage/upstream/polymake-3.0r1.tar.bz2
[polymake-3.0r1] polymake-3.0r1
[polymake-3.0r1] ====================================================
[polymake-3.0r1] Setting up build directory for polymake-3.0r1
[polymake-3.0r1] Finished extraction
[polymake-3.0r1] ****************************************************
[polymake-3.0r1] Host system:
[polymake-3.0r1] Darwin egret.local 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
[polymake-3.0r1] ****************************************************
[polymake-3.0r1] C compiler: gcc
[polymake-3.0r1] C compiler version:
[polymake-3.0r1] Using built-in specs.
[polymake-3.0r1] COLLECT_GCC=/Users/mkoeppe/cvs/sage/local/bin/gcc
[polymake-3.0r1] COLLECT_LTO_WRAPPER=/Users/mkoeppe/cvs/sage/local/libexec/gcc/x86_64-apple-darwin15.2.0/4.9.2/lto-wrapper
[polymake-3.0r1] Target: x86_64-apple-darwin15.2.0
[polymake-3.0r1] Configured with: ../src/configure --prefix=/Users/mkoeppe/cvs/sage/local --with-local-prefix=/Users/mkoeppe/cvs/sage/local --with-gmp=/Users/mkoeppe/cvs/sage/local --with-mpfr=/Users/mkoeppe/cvs/sage/local --with-mpc=/Users/mkoeppe/cvs/sage/local --with-system-zlib --disable-multilib --disable-nls --enable-languages=c,c++,fortran --disable-libitm --with-build-config=bootstrap-debug --without-isl --without-cloog  
[polymake-3.0r1] Thread model: posix
[polymake-3.0r1] gcc version 4.9.2 (GCC) 
[polymake-3.0r1] ****************************************************
[polymake-3.0r1] checking C++ compiler ... ok (g++ is GCC 4.9.2)
[polymake-3.0r1] checking C++ library ... ok (GNU stdlibc++ 20141030, C++ 199711)
[polymake-3.0r1] checking fink installation ... ok (/sw)
[polymake-3.0r1] checking fink gmp installation ... ok
[polymake-3.0r1] checking fink mpfr installation ... ok
[polymake-3.0r1] determining compiler flags ... ok
[polymake-3.0r1]    CFLAGS= -Wall ${ARCHFLAGS}
[polymake-3.0r1]    CXXFLAGS= -ftemplate-depth-200 -Wall -Wno-strict-aliasing -Wno-parentheses -fwrapv -fopenmp ${ARCHFLAGS}
[polymake-3.0r1] checking gmp installation ... ok (/sw)
[polymake-3.0r1] checking mpfr installation ... ok
[polymake-3.0r1] checking shared perl library ... failed
[polymake-3.0r1] 
[polymake-3.0r1] Could not compile a test program for the libperl.bundle shared library.
[polymake-3.0r1] The build error is as follows:
[polymake-3.0r1] /var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gn/T//polymake_54759_configure.cc: In function 'int main(int, char**, char**)':
[polymake-3.0r1] /var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gn/T//polymake_54759_configure.cc:8:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
[polymake-3.0r1]     char *embedding[] = { "", "-e", "0" };
[polymake-3.0r1]                                         ^
[polymake-3.0r1] /var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gn/T//polymake_54759_configure.cc:8:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
[polymake-3.0r1] /var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gn/T//polymake_54759_configure.cc:8:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
[polymake-3.0r1] <stdin>:18:8: error: register %rbp is only available in 64-bit mode
[polymake-3.0r1]         pushq   %rbp
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:20:7: error: register %rsp is only available in 64-bit mode
[polymake-3.0r1]         movq    %rsp, %rbp
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:22:12: error: register %rsp is only available in 64-bit mode
[polymake-3.0r1]         subq    $64, %rsp
[polymake-3.0r1]                      ^~~~
[polymake-3.0r1] <stdin>:23:17: error: register %rbp is only available in 64-bit mode
[polymake-3.0r1]         movl    %edi, -36(%rbp)
[polymake-3.0r1]                           ^~~~
[polymake-3.0r1] <stdin>:24:7: error: register %rsi is only available in 64-bit mode
[polymake-3.0r1]         movq    %rsi, -48(%rbp)
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:25:7: error: register %rdx is only available in 64-bit mode
[polymake-3.0r1]         movq    %rdx, -56(%rbp)
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:28:11: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         leaq    LC0(%rip), %rax
[polymake-3.0r1]                     ^~~~
[polymake-3.0r1] <stdin>:29:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, -32(%rbp)
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:30:11: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         leaq    LC1(%rip), %rax
[polymake-3.0r1]                     ^~~~
[polymake-3.0r1] <stdin>:31:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, -24(%rbp)
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:32:11: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         leaq    LC2(%rip), %rax
[polymake-3.0r1]                     ^~~~
[polymake-3.0r1] <stdin>:33:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, -16(%rbp)
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:35:11: error: register %rbp is only available in 64-bit mode
[polymake-3.0r1]         leaq    -56(%rbp), %rdx
[polymake-3.0r1]                     ^~~~
[polymake-3.0r1] <stdin>:36:11: error: register %rbp is only available in 64-bit mode
[polymake-3.0r1]         leaq    -48(%rbp), %rcx
[polymake-3.0r1]                     ^~~~
[polymake-3.0r1] <stdin>:37:11: error: register %rbp is only available in 64-bit mode
[polymake-3.0r1]         leaq    -36(%rbp), %rax
[polymake-3.0r1]                     ^~~~
[polymake-3.0r1] <stdin>:38:7: error: register %rcx is only available in 64-bit mode
[polymake-3.0r1]         movq    %rcx, %rsi
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:39:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, %rdi
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:43:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, __ZL7my_perl(%rip)
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:45:20: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         movq    __ZL7my_perl(%rip), %rax
[polymake-3.0r1]                              ^~~~
[polymake-3.0r1] <stdin>:46:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, %rdi
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:49:20: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         movq    __ZL7my_perl(%rip), %rax
[polymake-3.0r1]                              ^~~~
[polymake-3.0r1] <stdin>:50:20: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         movq    __ZL7my_perl(%rip), %rdx
[polymake-3.0r1]                              ^~~~
[polymake-3.0r1] <stdin>:51:14: error: register %rdx is only available in 64-bit mode
[polymake-3.0r1]         movzbl  1150(%rdx), %edx
[polymake-3.0r1]                      ^~~~
[polymake-3.0r1] <stdin>:53:17: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movb    %dl, 1150(%rax)
[polymake-3.0r1]                           ^~~~
[polymake-3.0r1] <stdin>:55:20: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         movq    __ZL7my_perl(%rip), %rax
[polymake-3.0r1]                              ^~~~
[polymake-3.0r1] <stdin>:56:11: error: register %rbp is only available in 64-bit mode
[polymake-3.0r1]         leaq    -32(%rbp), %rdx
[polymake-3.0r1]                     ^~~~
[polymake-3.0r1] <stdin>:57:11: error: register %r8d is only available in 64-bit mode
[polymake-3.0r1]         movl    $0, %r8d
[polymake-3.0r1]                     ^~~~
[polymake-3.0r1] <stdin>:58:7: error: register %rdx is only available in 64-bit mode
[polymake-3.0r1]         movq    %rdx, %rcx
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:61:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, %rdi
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:64:20: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         movq    __ZL7my_perl(%rip), %rax
[polymake-3.0r1]                              ^~~~
[polymake-3.0r1] <stdin>:65:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, %rdi
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:68:20: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         movq    __ZL7my_perl(%rip), %rax
[polymake-3.0r1]                              ^~~~
[polymake-3.0r1] <stdin>:70:11: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         leaq    LC3(%rip), %rsi
[polymake-3.0r1]                     ^~~~
[polymake-3.0r1] <stdin>:71:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, %rdi
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:74:20: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         movq    __ZL7my_perl(%rip), %rax
[polymake-3.0r1]                              ^~~~
[polymake-3.0r1] <stdin>:75:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, %rdi
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] <stdin>:78:20: error: register %rip is only available in 64-bit mode
[polymake-3.0r1]         movq    __ZL7my_perl(%rip), %rax
[polymake-3.0r1]                              ^~~~
[polymake-3.0r1] <stdin>:79:7: error: register %rax is only available in 64-bit mode
[polymake-3.0r1]         movq    %rax, %rdi
[polymake-3.0r1]                 ^~~~
[polymake-3.0r1] 
[polymake-3.0r1] 
[polymake-3.0r1] On some systems the library is contained in a separate package named like
[polymake-3.0r1] perl-devel or libperl-dev.  Please look for such a package and install it.
[polymake-3.0r1] 
[polymake-3.0r1] As a last resort, you can configure polymake with the option --without-callable .
[polymake-3.0r1] You won't be able to build the callable library any more, but at least you get
[polymake-3.0r1] polymake compiled.
[polymake-3.0r1] Several configurations for MacOS platform found;
[polymake-3.0r1] Please specify the desired one using the option Arch=<NAME>.
[polymake-3.0r1] Makefile:32: *** CONFIGURATION ERROR.  Stop.
[polymake-3.0r1] 
[polymake-3.0r1] real	0m1.446s
[polymake-3.0r1] user	0m0.940s
[polymake-3.0r1] sys	0m0.350s
[polymake-3.0r1] ************************************************************************
[polymake-3.0r1] Error installing package polymake-3.0r1
[polymake-3.0r1] ************************************************************************
[polymake-3.0r1] Please email sage-devel (http://groups.google.com/group/sage-devel)
[polymake-3.0r1] explaining the problem and including the relevant part of the log file
[polymake-3.0r1]   /Users/mkoeppe/cvs/sage/logs/pkgs/polymake-3.0r1.log
[polymake-3.0r1] Describe your computer, operating system, etc.
[polymake-3.0r1] If you want to try to fix the problem yourself, *don't* just cd to
[polymake-3.0r1] /Users/mkoeppe/cvs/sage/local/var/tmp/sage/build/polymake-3.0r1 and type 'make' or whatever is appropriate.
[polymake-3.0r1] Instead, the following commands setup all environment variables
[polymake-3.0r1] correctly and load a subshell for you to debug the error:
[polymake-3.0r1]   (cd '/Users/mkoeppe/cvs/sage/local/var/tmp/sage/build/polymake-3.0r1' && '/Users/mkoeppe/cvs/sage/sage' --sh)
[polymake-3.0r1] When you are done debugging, you can type "exit" to leave the subshell.
[polymake-3.0r1] ************************************************************************
make[1]: *** [/Users/mkoeppe/cvs/sage/local/var/lib/sage/installed/polymake-3.0r1] Error 1

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 27, 2016

comment:7

It finds my Fink installation (though I removed it from PATH for building Sage) -- should this be disabled?
It does not find Perl -- should I install it in Fink or should we have a Perl package in Sage as a prerequisite?

@dimpase
Copy link
Member

dimpase commented Jun 27, 2016

comment:8

this might be a mismatch between the code emitted by quite new gcc and old assembler, which is unable to compile this into binary. There were a number of such OSX-only reports recently, check the sage-develop...

@dimpase
Copy link
Member

dimpase commented Jun 27, 2016

comment:9

yeah, try to move Fink totally to some /opt/blah place and try again...

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 27, 2016

comment:10

OK. After hiding Fink, I get:

[polymake-3.0r1] checking fink installation ... The Fink package system is a mandatory prerequisite to build and use polymake under MacOS.
[polymake-3.0r1] Please refer to http://www.polymake.org/doku.php/mac for details and installation instructions.
[polymake-3.0r1] If you already have Fink installed at a non-standard location, please specify it using option --with-fink

I'll start again with a fresh install of Fink and install some perl there.

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 27, 2016

comment:11

I will first try to install polymake from source outside of Sage -- this already fails on my machine; I have asked in the Polymake forum for help.

Vincent: I think the right package to use in Sage would be the "minimal" package which picks up cdd, lrs, nauty from the Sage distribution.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 27, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

7130996Trac 20892: use the minimal tarball

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 27, 2016

Changed commit from cf20c0b to 7130996

@videlec
Copy link
Contributor Author

videlec commented Jun 27, 2016

comment:13

Replying to @mkoeppe:

Vincent: I think the right package to use in Sage would be the "minimal" package which picks up cdd, lrs, nauty from the Sage distribution.

right. done.

@videlec

This comment has been minimized.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 27, 2016

Changed commit from 7130996 to c4b2b0e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 27, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

c4b2b0eTrac 20892: replace tabs with spaces

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 27, 2016

comment:16

See #20894 for a first step towards an OS X build

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 28, 2016

comment:17

I solved the problem on Mac OS X with the following patch for Polymake, which gets rid of various "-arch" options. The "-arch" options caused the above errors "register %rbp is only available in 64-bit mode" etc.

--- /Users/mkoeppe/s/polymake-3.0/support/configure.pl	2016-01-25 05:34:27.000000000 -0800
+++ src/support/configure.pl	2016-06-27 16:13:24.000000000 -0700
@@ -503,7 +503,7 @@
       }
       print "ok\n";
       if ( $NeedsArchFlag ) {
-         $ARCHFLAGS="-arch $Platform";
+         $ARCHFLAGS="";
       } else {
          $ARCHFLAGS="";
       }
@@ -525,7 +525,7 @@
          }
       }
       if ( $NeedsArchFlag ) {
-         $ARCHFLAGS="-arch $Platform";
+         $ARCHFLAGS="";
       } else {
          $ARCHFLAGS="";
       }
@@ -738,7 +738,14 @@
       # We also build a test program for libperl since e.g. on Debian based systems the
       # check for Config::Config{libperl} will not detect a missing libperl-dev package
       chomp(my $perlldflags = `$PERL -MExtUtils::Embed -e ldopts`);
-      my $build_error=build_test_program(<<'---', CXXflags => `$PERL -MExtUtils::Embed -e ccopts`, LDflags => "$ARCHFLAGS $perlldflags" );
+
+      my $allarch=qr/ -arch \s+ \S+ (?: \s+ -arch \s+ \S+)* /x;
+      $CXXflags =  `$PERL -MExtUtils::Embed -e ccopts` ;
+      $CXXflags =~ s/$allarch//o;
+      $LDflags = $perlldflags;
+      $LDflags =~ s/$allarch//o;
+
+      my $build_error=build_test_program(<<'---', CXXflags => $CXXflags , LDflags => $LDflags );
 #include <EXTERN.h>
 #include <perl.h>
 

And here is a quick change to spkg-install.

diff --git a/build/pkgs/polymake/spkg-install b/build/pkgs/polymake/spkg-install
index f8e6145..2198466 100755
--- a/build/pkgs/polymake/spkg-install
+++ b/build/pkgs/polymake/spkg-install
@@ -7,6 +7,7 @@ cd src
             --exec-prefix="$SAGE_LOCAL" \
             --includedir="$SAGE_LOCAL"/include \
             --bindir="$SAGE_LOCAL"/bin \
-            --libdir="$SAGE_LOCAL"/lib
+            --libdir="$SAGE_LOCAL"/lib \
+	    --without-fink
 make
 make install

With these changes, Polymake built successfully.

@kcrisman
Copy link
Member

comment:18

Can you make a package with this? I tried to test it by creating the right patch directory and changing the spkg-install for applying patches but I tend to always make a mess of that. Anyway, having done that, it did get quite a bit further (including #20894) though I did get some warnings e.g.

[polymake-3.0r1] bundled extension group ... disabled because of unsatisfied prerequisite: lrs

But anyway it is making vastly more progress than before, so please bundle this up and with any luck I can help give positive review (I'm assuming it will take a little longer than I want to stay up now to finish!). Great, great work.

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 28, 2016

comment:19

#20692 could help with automating the patching.

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 28, 2016

comment:20

Replying to @kcrisman:

I did get some warnings e.g.

[polymake-3.0r1] bundled extension group ... disabled because of unsatisfied prerequisite: lrs

Yes, I also get a few of those, but the polymake install goes through after that. Details of the 'bundled extensions' can be found in the package build directory ($SAGE_LOCAL/var/tmp/sage/build/polymake-3.0r1/src/build.darwin.x86_64/bundled.log):

Configuration of the following bundled extensions failed, proceeding without them.
If you really need them, please carefully read the following explanations,
take the suggested actions, and repeat the configuration.

---- bliss ----

Could not compile a test program checking for bliss library.
The most probable reasons are that the library is installed at a non-standard location,
is not configured to build a shared module, or missing at all.
The complete error log follows:

/var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gn/T//polymake_25377_configure.cc:1:26: fatal error: bliss/graph.hh: No such file or directory
 #include "bliss/graph.hh"
                          ^
compilation terminated.

Please install the library and specify its location using --with-bliss option, if needed.
Please remember to enable shared modules when configuring the bliss library!

If you are running a Debian system and now see some missing GMP functions in the error message,
then you've got an old broken bliss package;  please upgrade it to the latest version.

I don't know what bliss is but I tried to install it -- but it gave me an error. Reported on #20871.

---- lrs ----

Could not compile a test program checking for lrs library.
The most probable reasons are that the library is installed at a non-standard location,
is not configured to build a shared module, or missing at all.
The complete error log follows:

Undefined symbols for architecture x86_64:
  "_lrs_ifp", referenced from:
      _readrat in liblrsgmp.a(lrsgmp-GMP.o)
      _readmp in liblrsgmp.a(lrsgmp-GMP.o)
      _lrs_mp_init in liblrsgmp.a(lrsgmp-GMP.o)
  "_lrs_ofp", referenced from:
      _readrat in liblrsgmp.a(lrsgmp-GMP.o)
      _pmp in liblrsgmp.a(lrsgmp-GMP.o)
      _prat in liblrsgmp.a(lrsgmp-GMP.o)
      _readmp in liblrsgmp.a(lrsgmp-GMP.o)
      _lrs_mp_init in liblrsgmp.a(lrsgmp-GMP.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

Please install the library and specify its location using --with-lrs option, if needed.
Please remember to enable shared modules when configuring the lrs library!

I do have lrslib installed. This needs investigating.

---- singular ----

Could not find 'libsingular-config' in path at bundled/singular/configure.pl line 36.

I think singular is standard, but there seems to be no libsingular-config.

---- soplex ----

Could not compile a test program checking for SoPlex.
Please make sure SoPlex was compiled with 'GMP=true' and 'SHARED=true'
and specify its location using --with-soplex=PATH.
The complete error log follows:

/var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gn/T//polymake_25377_configure.cc:3:20: fatal error: soplex.h: No such file or directory
 #include "soplex.h"
                    ^
compilation terminated.

OK, yes, we don't have SoPlex. This is part of the SCIP Optimization Suite. (#10879)

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 5, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

f29c486polymake: Add info on prereqs and debugging
0781fdcpolymake: Set ARCHFLAGS instead of using our broken patch

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 5, 2016

Changed commit from 3310092 to 0781fdc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 5, 2016

Changed commit from 0781fdc to 0cfedca

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 5, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

0cfedcaFixup

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 5, 2016

Changed commit from 0cfedca to de0cc74

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 5, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

de0cc74polymake: Add bliss as a dependency

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 5, 2016

Changed commit from de0cc74 to 7b096fd

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 5, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

8798d7dMerge tag '7.3' into t/20892/20892
3837a48bliss: Use autotoolized package from Debian
225755ebliss: Add more info in SPKG.txt
4b22211bliss: Use upstream tarball and patches
3111091Merge tag '7.3.beta9' into t/20901/upgrade_bliss_package_to_0_73_with_debian_patches__install_header_files_in_location_expected_by_polymake
1c398a3Merge tag '7.3.rc0' into t/20901/upgrade_bliss_package_to_0_73_with_debian_patches__install_header_files_in_location_expected_by_polymake
1d2707cUse repackaged archive instead of huge patch
c0c0427Adjust to changed bliss header file locations
7b096fdMerge branch 't/20901/upgrade_bliss_package_to_0_73_with_debian_patches__install_header_files_in_location_expected_by_polymake' into t/20892/20892

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 5, 2016

comment:94

Branch has now merged the bliss ticket (#20901).

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 5, 2016

comment:95

#21175 (Set ARCHFLAGS environment variable - for Perl modules) would make polymake's spkg-install simpler.

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 5, 2016

comment:96

Replying to @mkoeppe:

OK, I was able to reproduce this on an Ubuntu box. One of my patches for Mac OS X is to blame. Working on it.

It's now working on Ubuntu (and still on Mac OS X), please test.

@videlec
Copy link
Contributor Author

videlec commented Aug 5, 2016

comment:97

Better. Build without any error and

polytope > show_unconfigured;
vinci.rules
  ...
azove.rules
  ...
splitstree.rules
  ...
latte.rules
  ...
topcom.rules
  ...
porta.rules
  ...
common::property_viewer.rules
common::povray.rules
  ...
common::geomview.rules
  ...
To enable an interface:  reconfigure("RULEFILE");

@videlec
Copy link
Contributor Author

videlec commented Aug 5, 2016

comment:98

However, after switching back to the develop branch doing sage -b gives me

/opt/sage/src/build/cythonized/sage/graphs/bliss.cpp:317:20fatal error: graph.hh: No such file or directory

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 5, 2016

comment:99

Replying to @videlec:

However, after switching back to the develop branch doing sage -b gives me

/opt/sage/src/build/cythonized/sage/graphs/bliss.cpp:317:20fatal error: graph.hh: No such file or directory

Yes, that's normal. Need to keep #20901 in your branch if you have installed the bliss package from #20901.

@videlec
Copy link
Contributor Author

videlec commented Aug 12, 2016

Changed reviewer from Matthias Koeppe, NEEDS MORE REVIEWERS to Matthias Koeppe, Vincent Delecroix

@videlec
Copy link
Contributor Author

videlec commented Aug 12, 2016

comment:101

It works well on top of 7.4.beta0. Setting to positive review in order to be easily available for testing.

@kcrisman
Copy link
Member

Changed reviewer from Matthias Koeppe, Vincent Delecroix to Matthias Koeppe, Vincent Delacroix, Karl-Dieter Crisman

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 12, 2016

Changed reviewer from Matthias Koeppe, Vincent Delacroix, Karl-Dieter Crisman to Matthias Koeppe, Vincent Delecroix, Karl-Dieter Crisman

@vbraun
Copy link
Member

vbraun commented Aug 13, 2016

Changed branch from u/mkoeppe/20892 to 7b096fd

@kcrisman
Copy link
Member

Changed commit from 7b096fd to none

@kcrisman
Copy link
Member

comment:105

For those who really know this stuff, on a related note: http://ask.sagemath.org/question/34457/why-cant-i-compute-the-ehrhart-polynomial-of-a-polytope/?answer=34458#post-id-34458 so hopefully it will be more obvious soon what to do for this type of user.

@dimpase
Copy link
Member

dimpase commented Jan 12, 2017

comment:106

People report that building Singular with polymake (not this one, a systemwide one) installed leads to a problem. This ought to be investigated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants