Compiling polymake on macOS 10.14

Discussions on installation issues go here.

Moderator: Moderators

green
Posts: 2
Joined: 10 Apr 2019, 14:10

Compiling polymake on macOS 10.14

Postby green » 10 Apr 2019, 14:32

I've been trying to install polymake on macOS 10.14 and ran into a few problems.
I have Xcode installed and downloaded Java from https://www.java.com/en/download/mac_download.jsp .
I used brew to resolve dependency issues.
I got the latest release from git and issued

Code: Select all

./configure --without-fink LDFLAGS=' -stdlib=libstdc++' CXXFLAGS=-I/usr/include/c++/4.2.1
which gave the following error:

Code: Select all

checking C++ compiler ... C++ compiler g++ could not compile a test program for version recognition: clang: warning: libstdc++ is deprecated; move to libc++ [-Wdeprecated] warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] /var/folders/lz/nt5r_68s7x73d2flvbct7x3m0000gn/T//polymake_62124_configure.cc:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 warning and 1 error generated. Please investigate and reconfigure with CXX=<appropriate C++ compiler>
So I ran the same command using

Code: Select all

'-stdlib=libc++'
, which worked.
Now, if I do

Code: Select all

make
I receive an error regarding java:

Code: Select all

ninja -C build/Opt all ninja: Entering directory `build/Opt' [1/1] BUILD /Users/janinheuer/polymake/build/Opt/jars/polymake_jreality.jar FAILED: /Users/janinheuer/polymake/build/Opt/jars/polymake_jreality.jar JAVA_HOME=/usr ant -S -q -f /Users/janinheuer/polymake/bundled/jreality/java/build.xml -Dpolymake.top=/Users/janinheuer/polymake -Dbuild.dir=/Users/janinheuer/polymake/build/Opt -Djar.name=`basename /Users/janinheuer/polymake/build/Opt/jars/polymake_jreality.jar` -Ddebug=`if [ Opt = Debug ]; then echo on; else echo off; fi` all Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java... Using Java version 12. error: Source option 6 is no longer supported. Use 7 or later. error: Target option 6 is no longer supported. Use 7 or later. BUILD FAILED /Users/janinheuer/polymake/bundled/jreality/java/build.xml:12: The following error occurred while executing this line: /Users/janinheuer/polymake/bundled/jreality/external/jreality/build.xml:171: Compile failed; see the compiler error output for details. Total time: 0 seconds ninja: build stopped: subcommand failed. make: *** [all] Error 1

This is especially strange since $JAVA_HOME is in the right location.

I would be very grateful for any help and/or suggestions.

paffenholz
Developer
Posts: 178
Joined: 24 Dec 2010, 13:47

Re: Compiling polymake on macOS 10.14

Postby paffenholz » 10 Apr 2019, 21:27

Your java is alright. The compilation fails as the version of the software jreality that comes with polymake requires a java version that is older than the last version supported by java 12.

On MacOS jreality currently doesn't work properly anyway. I suggest to switch this off entirely during compilation and use one of the other visualization methods available in polymake. I would recommend to use threejs, which you can activate by typing

Code: Select all

prefer "threejs";
in a polymake session. This will open images in a browser. You can disable jreality during configuration with the option

Code: Select all

--without-jreality
to the configure script.

If you really do need jreality then at the moment you will have to downgrade java to at least version 11.

Andreas

green
Posts: 2
Joined: 10 Apr 2019, 14:10

Re: Compiling polymake on macOS 10.14

Postby green » 11 Apr 2019, 09:22

This worked nicely, thanks a lot!

ren
Posts: 30
Joined: 03 May 2011, 15:21

Re: Compiling polymake on macOS 10.14

Postby ren » 22 May 2019, 09:23

Hi, I thought I'd post my question in the same thread, since I also have a problem building polymake on MacOS 10.14(.5)

I get following error, which seems to be a problem with my compiler / C++ version.

Code: Select all

FAILED: /Users/yueren/polymake-beta/build/Opt/apps/common/cpperl/NodeHashMap.o g++ -c -o /Users/yueren/polymake-beta/build/Opt/apps/common/cpperl/NodeHashMap.o -MMD -MT /Users/yueren/polymake-beta/build/Opt/apps/common/cpperl/NodeHashMap.o -MF /Users/yueren/polymake-beta/build/Opt/apps/common/cpperl/NodeHashMap.o.d -fPIC -pipe -std=c++14 -Wno-logical-op-parentheses -Wno-shift-op-parentheses -Wno-mismatched-tags -Wno-unused-local-typedef -Wno-error=unneeded-internal-declaration -Wshadow -DPOLYMAKE_DEBUG=0 -DNDEBUG -O3 -DPOLYMAKE_APPNAME=common -I/Users/yueren/polymake-beta/include/app-wrappers -I/Users/yueren/polymake-beta/include/apps -I/Users/yueren/polymake-beta/include/external/permlib -I/Users/yueren/polymake-beta/include/external/TOSimplex -I/Users/yueren/polymake-beta/include/core-wrappers -I/Users/yueren/polymake-beta/include/core /Users/yueren/polymake-beta/apps/common/cpperl/generated/NodeHashMap.cc && : 'COMPILER_USED=10.0.1' In file included from /Users/yueren/polymake-beta/apps/common/cpperl/generated/NodeHashMap.cc:6: In file included from /Users/yueren/polymake-beta/include/core-wrappers/polymake/Graph.h:20: In file included from /Users/yueren/polymake-beta/include/core/polymake/Graph.h:25: In file included from /Users/yueren/polymake-beta/include/core-wrappers/polymake/IncidenceMatrix.h:20: In file included from /Users/yueren/polymake-beta/include/core/polymake/IncidenceMatrix.h:28: In file included from /Users/yueren/polymake-beta/include/core/polymake/permutations.h:26: In file included from /Users/yueren/polymake-beta/include/core-wrappers/polymake/hash_map:20: In file included from /Users/yueren/polymake-beta/include/core/polymake/hash_map:20: /Library/Developer/CommandLineTools/usr/include/c++/v1/unordered_map:654:17: error: no viable overloaded '=' __ref() = __v.__get_value(); ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/__hash_table:1754:47: note: in instantiation of member function 'std::__1::__hash_value_type<int, bool>::operator=' requested here __cache->__upcast()->__value_ = *__first; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/__hash_table:1547:9: note: in instantiation of function template specialization 'std::__1::__hash_table<std::__1::__hash_value_type<int, bool>, std::__1::__unordered_map_hasher<int, std::__1::__hash_value_type<int, bool>, pm::hash_func<int, pm::is_scalar>, true>, std::__1::__unordered_map_equal<int, std::__1::__hash_value_type<int, bool>, std::__1::equal_to<int>, true>, std::__1::allocator<std::__1::__hash_value_type<int, bool> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<int, bool>, void *> *> >' requested here __assign_multi(__u.begin(), __u.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/unordered_map:939:18: note: in instantiation of member function 'std::__1::__hash_table<std::__1::__hash_value_type<int, bool>, std::__1::__unordered_map_hasher<int, std::__1::__hash_value_type<int, bool>, pm::hash_func<int, pm::is_scalar>, true>, std::__1::__unordered_map_equal<int, std::__1::__hash_value_type<int, bool>, std::__1::equal_to<int>, true>, std::__1::allocator<std::__1::__hash_value_type<int, bool> > >::operator=' requested here __table_ = __u.__table_; ^ /Users/yueren/polymake-beta/include/core/polymake/hash_map:33:7: note: in instantiation of member function 'std::__1::unordered_map<int, bool, pm::hash_func<int, pm::is_scalar>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<const int, bool> > >::operator=' requested here class hash_map ^ /Users/yueren/polymake-beta/include/core/polymake/Graph.h:2688:14: note: in instantiation of member function 'pm::graph::Graph<pm::graph::Directed>::NodeHashMapData<bool>::copy' requested here cp->copy(*map); ^ /Users/yueren/polymake-beta/include/core/polymake/Graph.h:3332:11: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) map=copy(t); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/wrappers.h:911:19: note: in instantiation of member function 'pm::perl::Copy<pm::graph::NodeHashMap<pm::graph::Directed, bool>, void>::func' requested here Copy<T>::func(), ^ /Users/yueren/polymake-beta/include/core/polymake/perl/wrappers.h:958:78: note: in instantiation of member function 'pm::perl::ContainerClassRegistrator<pm::graph::NodeHashMap<pm::graph::Directed, bool>, std::__1::forward_iterator_tag>::create_vtbl' requested here return register_me(name, cpperl_file, inst_num, someref, generated_by, create_vtbl()); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/wrappers.h:1187:13: note: in instantiation of member function 'pm::perl::ContainerClassRegistrator<pm::graph::NodeHashMap<pm::graph::Directed, bool>, std::__1::forward_iterator_tag>::register_it' requested here this->register_it(name, this->queue, nullptr, cpperl_file, inst_num); ^ /Users/yueren/polymake-beta/include/core/polymake/client.h:93:32: note: in instantiation of member function 'polymake::perl_bindings::Class<pm::graph::NodeHashMap<pm::graph::Directed, bool> >::add__me' requested here .add__me(std::forward<Args>(args)...); ^ /Users/yueren/polymake-beta/apps/common/cpperl/generated/NodeHashMap.cc:16:1: note: in instantiation of function template specialization 'polymake::common::(anonymous namespace)::QueueingRegistrator4perl<polymake::perl_bindings::Class<pm::graph::NodeHashMap<pm::graph::Directed, bool> >, 1>::QueueingRegistrator4perl<char const (&)[50], char const (&)[12], int>' requested here Class4perl(1, Polymake::common::NodeHashMap_A_Directed_I_Bool_Z, NodeHashMap<Directed, bool>); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/macros.h:36:40: note: expanded from macro 'Class4perl' #define Class4perl(inst_num, pkg, ...) ClassInstance4perl(#pkg, POLYMAKE_CPPERL_FILE, inst_num, __VA_ARGS__) ^ /Users/yueren/polymake-beta/include/core/polymake/perl/macros.h:33:4: note: expanded from macro 'ClassInstance4perl' RegistratorInstance4perl( QueueingRegistrator4perl<polymake::perl_bindings::Class<__VA_ARGS__>, inst_num> ) \ ^ /Users/yueren/polymake-beta/include/core/polymake/perl/macros.h:30:40: note: expanded from macro 'RegistratorInstance4perl' template<> __VA_ARGS__ __VA_ARGS__::r ^ /Users/yueren/polymake-beta/include/core/polymake/pair.h:107:8: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'const pair<const std::__1::__hash_value_type<int, bool>::key_type, std::__1::__hash_value_type<int, bool>::mapped_type>' to 'const pair<int &, bool &>' for 1st argument struct pair<T1&, T2&> { ^ 1 error generated. [6/445] COMPILE /Users/yueren/polymake-beta/build/Opt/apps/common/cpperl/Matrix.o FAILED: /Users/yueren/polymake-beta/build/Opt/apps/common/cpperl/Matrix.o g++ -c -o /Users/yueren/polymake-beta/build/Opt/apps/common/cpperl/Matrix.o -MMD -MT /Users/yueren/polymake-beta/build/Opt/apps/common/cpperl/Matrix.o -MF /Users/yueren/polymake-beta/build/Opt/apps/common/cpperl/Matrix.o.d -fPIC -pipe -std=c++14 -Wno-logical-op-parentheses -Wno-shift-op-parentheses -Wno-mismatched-tags -Wno-unused-local-typedef -Wno-error=unneeded-internal-declaration -Wshadow -DPOLYMAKE_DEBUG=0 -DNDEBUG -O3 -DPOLYMAKE_APPNAME=common -I/Users/yueren/polymake-beta/include/app-wrappers -I/Users/yueren/polymake-beta/include/apps -I/Users/yueren/polymake-beta/include/external/permlib -I/Users/yueren/polymake-beta/include/external/TOSimplex -I/Users/yueren/polymake-beta/include/core-wrappers -I/Users/yueren/polymake-beta/include/core /Users/yueren/polymake-beta/apps/common/cpperl/generated/Matrix.cc && : 'COMPILER_USED=10.0.1' In file included from /Users/yueren/polymake-beta/apps/common/cpperl/generated/Matrix.cc:6: In file included from /Users/yueren/polymake-beta/include/core-wrappers/polymake/IncidenceMatrix.h:20: In file included from /Users/yueren/polymake-beta/include/core/polymake/IncidenceMatrix.h:28: In file included from /Users/yueren/polymake-beta/include/core/polymake/permutations.h:26: In file included from /Users/yueren/polymake-beta/include/core-wrappers/polymake/hash_map:20: In file included from /Users/yueren/polymake-beta/include/core/polymake/hash_map:20: /Library/Developer/CommandLineTools/usr/include/c++/v1/unordered_map:654:17: error: no viable overloaded '=' __ref() = __v.__get_value(); ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/__hash_table:1754:47: note: in instantiation of member function 'std::__1::__hash_value_type<int, pm::Rational>::operator=' requested here __cache->__upcast()->__value_ = *__first; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/__hash_table:1547:9: note: in instantiation of function template specialization 'std::__1::__hash_table<std::__1::__hash_value_type<int, pm::Rational>, std::__1::__unordered_map_hasher<int, std::__1::__hash_value_type<int, pm::Rational>, pm::hash_func<int, pm::is_scalar>, true>, std::__1::__unordered_map_equal<int, std::__1::__hash_value_type<int, pm::Rational>, std::__1::equal_to<int>, true>, std::__1::allocator<std::__1::__hash_value_type<int, pm::Rational> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<int, pm::Rational>, void *> *> >' requested here __assign_multi(__u.begin(), __u.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/unordered_map:939:18: note: in instantiation of member function 'std::__1::__hash_table<std::__1::__hash_value_type<int, pm::Rational>, std::__1::__unordered_map_hasher<int, std::__1::__hash_value_type<int, pm::Rational>, pm::hash_func<int, pm::is_scalar>, true>, std::__1::__unordered_map_equal<int, std::__1::__hash_value_type<int, pm::Rational>, std::__1::equal_to<int>, true>, std::__1::allocator<std::__1::__hash_value_type<int, pm::Rational> > >::operator=' requested here __table_ = __u.__table_; ^ /Users/yueren/polymake-beta/include/core/polymake/hash_map:33:7: note: in instantiation of member function 'std::__1::unordered_map<int, pm::Rational, pm::hash_func<int, pm::is_scalar>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<const int, pm::Rational> > >::operator=' requested here class hash_map ^ /Users/yueren/polymake-beta/include/core/polymake/perl/Value.h:1236:10: note: in instantiation of function template specialization 'pm::perl::Value::retrieve<pm::hash_map<int, pm::Rational> >' requested here me.retrieve(x); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/Value.h:1407:9: note: (skipping 45 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) elem >> x; ^ /Users/yueren/polymake-beta/include/core/polymake/perl/wrappers.h:1021:14: note: in instantiation of member function 'pm::perl::ContainerClassRegistrator<pm::Matrix<pm::UniPolynomial<pm::Rational, int> >, std::__1::bidirectional_iterator_tag>::create_vtbl' requested here return create_vtbl(bool_constant<super::is_associative>()); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/wrappers.h:1077:23: note: in instantiation of member function 'pm::perl::ContainerClassRegistrator<pm::Matrix<pm::UniPolynomial<pm::Rational, int> >, std::__1::bidirectional_iterator_tag>::create_vtbl' requested here SV* vtbl=super::create_vtbl(); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/wrappers.h:1187:13: note: in instantiation of member function 'pm::perl::ContainerClassRegistrator<pm::Matrix<pm::UniPolynomial<pm::Rational, int> >, std::__1::random_access_iterator_tag>::register_it' requested here this->register_it(name, this->queue, nullptr, cpperl_file, inst_num); ^ /Users/yueren/polymake-beta/include/core/polymake/client.h:93:32: note: in instantiation of member function 'polymake::perl_bindings::Class<pm::Matrix<pm::UniPolynomial<pm::Rational, int> > >::add__me' requested here .add__me(std::forward<Args>(args)...); ^ /Users/yueren/polymake-beta/apps/common/cpperl/generated/Matrix.cc:22:1: note: in instantiation of function template specialization 'polymake::common::(anonymous namespace)::QueueingRegistrator4perl<polymake::perl_bindings::Class<pm::Matrix<pm::UniPolynomial<pm::Rational, int> > >, 4>::QueueingRegistrator4perl<char const (&)[77], char const (&)[7], int>' requested here Class4perl(4, Polymake::common::Matrix_A_UniPolynomial_A_Rational_I_Int_Z_I_NonSymmetric_Z, Matrix<UniPolynomial<Rational, int>>); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/macros.h:36:40: note: expanded from macro 'Class4perl' #define Class4perl(inst_num, pkg, ...) ClassInstance4perl(#pkg, POLYMAKE_CPPERL_FILE, inst_num, __VA_ARGS__) ^ /Users/yueren/polymake-beta/include/core/polymake/perl/macros.h:33:4: note: expanded from macro 'ClassInstance4perl' RegistratorInstance4perl( QueueingRegistrator4perl<polymake::perl_bindings::Class<__VA_ARGS__>, inst_num> ) \ ^ /Users/yueren/polymake-beta/include/core/polymake/perl/macros.h:30:40: note: expanded from macro 'RegistratorInstance4perl' template<> __VA_ARGS__ __VA_ARGS__::r ^ /Users/yueren/polymake-beta/include/core/polymake/pair.h:107:8: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'const pair<const std::__1::__hash_value_type<int, pm::Rational>::key_type, std::__1::__hash_value_type<int, pm::Rational>::mapped_type>' to 'const pair<int &, pm::Rational &>' for 1st argument struct pair<T1&, T2&> { ^ In file included from /Users/yueren/polymake-beta/apps/common/cpperl/generated/Matrix.cc:6: In file included from /Users/yueren/polymake-beta/include/core-wrappers/polymake/IncidenceMatrix.h:20: In file included from /Users/yueren/polymake-beta/include/core/polymake/IncidenceMatrix.h:28: In file included from /Users/yueren/polymake-beta/include/core/polymake/permutations.h:26: In file included from /Users/yueren/polymake-beta/include/core-wrappers/polymake/hash_map:20: In file included from /Users/yueren/polymake-beta/include/core/polymake/hash_map:20: /Library/Developer/CommandLineTools/usr/include/c++/v1/unordered_map:654:17: error: no viable overloaded '=' __ref() = __v.__get_value(); ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/__hash_table:1754:47: note: in instantiation of member function 'std::__1::__hash_value_type<pm::Rational, pm::Rational>::operator=' requested here __cache->__upcast()->__value_ = *__first; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/__hash_table:1547:9: note: in instantiation of function template specialization 'std::__1::__hash_table<std::__1::__hash_value_type<pm::Rational, pm::Rational>, std::__1::__unordered_map_hasher<pm::Rational, std::__1::__hash_value_type<pm::Rational, pm::Rational>, pm::hash_func<pm::Rational, pm::is_scalar>, true>, std::__1::__unordered_map_equal<pm::Rational, std::__1::__hash_value_type<pm::Rational, pm::Rational>, std::__1::equal_to<pm::Rational>, true>, std::__1::allocator<std::__1::__hash_value_type<pm::Rational, pm::Rational> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<pm::Rational, pm::Rational>, void *> *> >' requested here __assign_multi(__u.begin(), __u.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/unordered_map:939:18: note: in instantiation of member function 'std::__1::__hash_table<std::__1::__hash_value_type<pm::Rational, pm::Rational>, std::__1::__unordered_map_hasher<pm::Rational, std::__1::__hash_value_type<pm::Rational, pm::Rational>, pm::hash_func<pm::Rational, pm::is_scalar>, true>, std::__1::__unordered_map_equal<pm::Rational, std::__1::__hash_value_type<pm::Rational, pm::Rational>, std::__1::equal_to<pm::Rational>, true>, std::__1::allocator<std::__1::__hash_value_type<pm::Rational, pm::Rational> > >::operator=' requested here __table_ = __u.__table_; ^ /Users/yueren/polymake-beta/include/core/polymake/hash_map:33:7: note: in instantiation of member function 'std::__1::unordered_map<pm::Rational, pm::Rational, pm::hash_func<pm::Rational, pm::is_scalar>, std::__1::equal_to<pm::Rational>, std::__1::allocator<std::__1::pair<const pm::Rational, pm::Rational> > >::operator=' requested here class hash_map ^ /Users/yueren/polymake-beta/include/core/polymake/perl/Value.h:1236:10: note: in instantiation of function template specialization 'pm::perl::Value::retrieve<pm::hash_map<pm::Rational, pm::Rational> >' requested here me.retrieve(x); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/Value.h:1407:9: note: (skipping 60 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) elem >> x; ^ /Users/yueren/polymake-beta/include/core/polymake/perl/wrappers.h:1021:14: note: in instantiation of member function 'pm::perl::ContainerClassRegistrator<pm::Matrix<pm::PuiseuxFraction<pm::Max, pm::Rational, pm::Rational> >, std::__1::bidirectional_iterator_tag>::create_vtbl' requested here return create_vtbl(bool_constant<super::is_associative>()); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/wrappers.h:1077:23: note: in instantiation of member function 'pm::perl::ContainerClassRegistrator<pm::Matrix<pm::PuiseuxFraction<pm::Max, pm::Rational, pm::Rational> >, std::__1::bidirectional_iterator_tag>::create_vtbl' requested here SV* vtbl=super::create_vtbl(); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/wrappers.h:1187:13: note: in instantiation of member function 'pm::perl::ContainerClassRegistrator<pm::Matrix<pm::PuiseuxFraction<pm::Max, pm::Rational, pm::Rational> >, std::__1::random_access_iterator_tag>::register_it' requested here this->register_it(name, this->queue, nullptr, cpperl_file, inst_num); ^ /Users/yueren/polymake-beta/include/core/polymake/client.h:93:32: note: in instantiation of member function 'polymake::perl_bindings::Class<pm::Matrix<pm::PuiseuxFraction<pm::Max, pm::Rational, pm::Rational> > >::add__me' requested here .add__me(std::forward<Args>(args)...); ^ /Users/yueren/polymake-beta/apps/common/cpperl/generated/Matrix.cc:24:1: note: in instantiation of function template specialization 'polymake::common::(anonymous namespace)::QueueingRegistrator4perl<polymake::perl_bindings::Class<pm::Matrix<pm::PuiseuxFraction<pm::Max, pm::Rational, pm::Rational> > >, 6>::QueueingRegistrator4perl<char const (&)[90], char const (&)[7], int>' requested here Class4perl(6, Polymake::common::Matrix_A_PuiseuxFraction_A_Max_I_Rational_I_Rational_Z_I_NonSymmetric_Z, Matrix<PuiseuxFraction<Max, Rational, Rational>>); ^ /Users/yueren/polymake-beta/include/core/polymake/perl/macros.h:36:40: note: expanded from macro 'Class4perl' #define Class4perl(inst_num, pkg, ...) ClassInstance4perl(#pkg, POLYMAKE_CPPERL_FILE, inst_num, __VA_ARGS__) ^ /Users/yueren/polymake-beta/include/core/polymake/perl/macros.h:33:4: note: expanded from macro 'ClassInstance4perl' RegistratorInstance4perl( QueueingRegistrator4perl<polymake::perl_bindings::Class<__VA_ARGS__>, inst_num> ) \ ^ /Users/yueren/polymake-beta/include/core/polymake/perl/macros.h:30:40: note: expanded from macro 'RegistratorInstance4perl' template<> __VA_ARGS__ __VA_ARGS__::r ^ /Users/yueren/polymake-beta/include/core/polymake/pair.h:107:8: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'const pair<const std::__1::__hash_value_type<pm::Rational, pm::Rational>::key_type, std::__1::__hash_value_type<pm::Rational, pm::Rational>::mapped_type>' to 'const pair<pm::Rational &, pm::Rational &>' for 1st argument struct pair<T1&, T2&> { ^ 2 errors generated. [10/445] COMPILE /Users/yueren/polymake-beta/build/Opt/apps/common/cpperl/Matrix-6.o ninja: build stopped: subcommand failed. make: *** [all] Error 1
My g++ is the following version:

Code: Select all

mb029:polymake-beta yueren$ g++ --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

User avatar
gawrilow
Main Author
Posts: 347
Joined: 25 Dec 2010, 17:40

Re: Compiling polymake on macOS 10.14

Postby gawrilow » 22 May 2019, 11:15

Are you on the master branch of polymake, on release 3.4, or something else?

I've just retried `./configure --defaults; ninja -C build/Opt` on a Mac with 10.14.4 and XCode 10.0.1, everything runs smoothly.

Maybe you've "inherited" some obsolete configuration options from old releases in your build tree? --defaults should help to get rid of them, as well as any other non-trivial option like --with-SOMETHING or --without-SOMETHING.

ren
Posts: 30
Joined: 03 May 2011, 15:21

Re: Compiling polymake on macOS 10.14

Postby ren » 22 May 2019, 13:39

I see, maybe I'll try cloning the release version from GitHub, I think I downloaded the perpetual beta.

edit: compiling the release version worked, thanks!

User avatar
gawrilow
Main Author
Posts: 347
Joined: 25 Dec 2010, 17:40

Re: Compiling polymake on macOS 10.14

Postby gawrilow » 01 Jun 2019, 16:52

Perpetual betas are all outdated, I think we should abandon them from GitHub altogether.


Return to “Installing polymake”

cron