Checking if a polytope is a matroid polytope

General discussion on polymake goes here.
blorenz
Developer
Posts: 140
Joined: 10 Jan 2011, 17:21

Re: Checking if a polytope is a matroid polytope

Postby blorenz » 09 Jun 2020, 15:39

polymake: ERROR: C++/perl Interface module compilation failed; most likely due to a type mismatch.
Set the variable $Polymake::User::Verbose::cpp to a positive value and repeat for more details.

How can I fix this?
Please try increasing the verbosity with:

Code: Select all

$Polymake::User::Verbose::cpp=3;
Then rerun your command and post the error messages.

Benjamin

mbrandt
Posts: 7
Joined: 25 Sep 2017, 21:20

Re: Checking if a polytope is a matroid polytope

Postby mbrandt » 09 Jun 2020, 19:42

Hi,

I did as you suggested. Here are the error messages:

Code: Select all

polytope > print matroidal(edge_directions($PC->GRAPH, $p->VERTICES)); polymake: WARNING: Compiling temporary shared module, please be patient... {"app": "polytope", "embed": "edge_directions.cc", "inst": [ {"args": ["void", "perl::Canned<const Matrix<Rational>&>"], "func": "edge_directions", "include": ["polymake/IncidenceMatrix.h", "polymake/Matrix.h", "polymake/Rational.h"], "sig": "edge_directions.B.X"}, null ], "version": 3} ninja: Entering directory `/var/folders/cp/fjm7hnj909v23w19qvy49gbw0000gp/T//poly15326Taaaa0001' [2/3] COMPILE wrap-edge_directions.o FAILED: wrap-edge_directions.o clang++ -c -o wrap-edge_directions.o -MMD -MT wrap-edge_directions.o -MF wrap-edge_directions.o.d -fPIC -pipe -fpic -DPIC -DLIBSINGULAR -m64 -march=x86-64 -I/Applications/polymake.app/Contents/Resources/include -std=c++14 -Wno-logical-op-parentheses -Wno-shift-op-parentheses -Wno-mismatched-tags -Wno-unused-local-typedef -Wno-error=unneeded-internal-declaration -Wshadow -Wconversion -Wno-sign-conversion -Wzero-as-null-pointer-constant -I/Applications/polymake.app/Contents/Resources/include -I/Applications/polymake.app/Contents/Resources/include/boost_1_66_0 -DPOLYMAKE_WITH_FLINT -DPOLYMAKE_DEBUG=0 -DNDEBUG -O3 -DPOLYMAKE_APPNAME=polytope -DPOLYMAKE_DEFINITION_SOURCE_DIR="/Applications/polymake.app/Contents/Resources/polymake/share/polymake/apps/polytope/src" -DPOLYMAKE_NO_EMBEDDED_RULES -I/Applications/polymake.app/Contents/Resources/polymake/include/polymake/external -I/Applications/polymake.app/Contents/Resources/polymake/include wrap-edge_directions.cc && : 'COMPILER_USED=8.0' xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun ninja: build stopped: subcommand failed. polymake: ERROR: C++/perl Interface module compilation failed; see the generated code and the error log below. #include <unistd.h> namespace { void delete_temp_file() __attribute__((destructor)); void delete_temp_file() { unlink("/var/folders/cp/fjm7hnj909v23w19qvy49gbw0000gp/T//poly15326N1_aaaa0002.bundle"); } } #define POLYMAKE_CPPERL_FILE "wrap-edge_directions" #include "polymake/perl/macros.h" #include FindDefinitionSource4perl(edge_directions.cc) #include "polymake/IncidenceMatrix.h" #include "polymake/Matrix.h" #include "polymake/Rational.h" namespace polymake { namespace polytope { namespace { FunctionCallerStart4perl { enum class edge_directions; }; FunctionCaller4perl(edge_directions, free); FunctionTemplateInstance4perl(0, edge_directions, free, edge_directions.B.X, perl::Returns::normal, 0, (void, perl::Canned<const Matrix<Rational>&>)); } } } ===========================================
Thanks for your help!!

blorenz
Developer
Posts: 140
Joined: 10 Jan 2011, 17:21

Re: Checking if a polytope is a matroid polytope

Postby blorenz » 09 Jun 2020, 20:46

It seems that your Apple command line tools are not working correctly, please run:

Code: Select all

xcode-select --install
You might need to do this every time you upgrade Mac OS X.

Benjamin


Return to “General Discussion”