Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Nov 2023 21:24:23 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a4c89641bb05 - main - science/cantera: Fix build on FreeBSD 12
Message-ID:  <202311142124.3AELONxh092215@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a4c89641bb058f8aae3b4d5389881f8330e89628

commit a4c89641bb058f8aae3b4d5389881f8330e89628
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-14 21:03:43 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-14 21:19:39 +0000

    science/cantera: Fix build on FreeBSD 12
    
    c++ -o build/src/base/global.os -c -isystem include/cantera/ext -isystem /usr/local/include -isystem /usr/local/include/eigen3 -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -pthread -O3 -Wall -include-pch src/pch/system.h.gch -fPIC -DNDEBUG -DGIT_COMMIT=\"unknown\" -Iinclude -Ibuild/src src/base/global.cpp
    In file included from src/base/global.cpp:11:
    In file included from /usr/local/include/boost/stacktrace.hpp:15:
    In file included from /usr/local/include/boost/stacktrace/frame.hpp:38:
    In file included from /usr/local/include/boost/stacktrace/safe_dump_to.hpp:217:
    /usr/local/include/boost/stacktrace/detail/collect_unwind.ipp:101:7: error: no member named '_Unwind_Backtrace' in the global namespace
        ::_Unwind_Backtrace(&boost::stacktrace::detail::unwind_callback, &state);
        ~~^
    1 error generated.
---
 science/cantera/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/science/cantera/Makefile b/science/cantera/Makefile
index 7fea4f5d81c0..437f335b6372 100644
--- a/science/cantera/Makefile
+++ b/science/cantera/Makefile
@@ -26,6 +26,8 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	Cantera
 GH_TUPLE=	LLNL:sundials:887af43:sundials/ext/sundials # bundled sundials is only needed for the Octave option
 
+CXXFLAGS+=	${CXXFLAGS_${OPSYS}_${OSREL:R}}
+CXXFLAGS_FreeBSD_12=	-D_GNU_SOURCE
 MAKE_ARGS=	system_eigen='y' \
 		system_sundials='n' \
 		system_fmt='y' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311142124.3AELONxh092215>