polymake fails to compile on FreeBSD with clang 19.1.5

Discussions on installation issues go here.
Philipp
Posts: 12
Joined: 17 Jun 2021, 20:30

polymake fails to compile on FreeBSD with clang 19.1.5

Postby Philipp » 01 Jan 2025, 23:15

polymake 4.13 fails to build on FreeBSD with clang 19.1.5 due to missing template argument lists. The complete build log is attached.

This is on FreeBSD 14.2-STABLE amd64 with clang 19.1.5:

Code: Select all

$ c++ -v FreeBSD clang version 19.1.5 (https://github.com/llvm/llvm-project.git llvmorg-19.1.5-0-gab4b5a2db582) Target: x86_64-unknown-freebsd14.2 Thread model: posix InstalledDir: /usr/bin
Attachments
polymake-4.13-buildlog.txt
(218.56 KiB) Downloaded 16 times

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

Re: polymake fails to compile on FreeBSD with clang 19.1.5

Postby blorenz » 02 Jan 2025, 10:25

Please try the attached patch (it contains changes for these template arguments and some more compatibility fixes). Unfortunately these changes didn't make it into 4.13 but they will be included in the next release.

Best,
Benjamin
Attachments
pm413_cxxcompat.patch
(15.77 KiB) Downloaded 11 times

Philipp
Posts: 12
Joined: 17 Jun 2021, 20:30

Re: polymake fails to compile on FreeBSD with clang 19.1.5

Postby Philipp » 03 Jan 2025, 18:18

Hi Benjamin,

thank you very much! This fixes the compilation errors. I just filed a bug report with the FreeBSD project, so they should hit the tree hopefully soon.

Best
Philipp


Return to “Installing polymake”