Opened 6 months ago

Closed 6 months ago

#70096 closed defect (fixed)

bali-phy fails to build with gcc-13: error: 'bitset' has not been declared in 'std'

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: reneeotten (Renee Otten)
Port: bali-phy

Description

[106/295] /opt/local/bin/g++-mp-13 -Isrc/libbaliphy.a.p -Isrc -I../BAli-Phy-3.6.1/src -I. -I../BAli-Phy-3.6.1 -I../BAli-Phy-3.6.1/src/util/include -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++17 -O3 -DHAVE_CONFIG_H -Wno-sign-compare -Wno-maybe-uninitialized -Woverloaded-virtual -Wstrict-aliasing -Wno-unknown-pragmas -fdiagnostics-show-template-tree -funroll-loops -fno-math-errno -fno-signed-zeros -DNDEBUG_DP -fvisibility=default -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -isystem/opt/local/include/eigen3 -DBOOST_RANDOM_DYN_LINK -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_ALL_NO_LIB -MD -MQ src/libbaliphy.a.p/dp_hmm.cc.o -MF src/libbaliphy.a.p/dp_hmm.cc.o.d -o src/libbaliphy.a.p/dp_hmm.cc.o -c ../BAli-Phy-3.6.1/src/dp/hmm.cc
FAILED: src/libbaliphy.a.p/dp_hmm.cc.o 
/opt/local/bin/g++-mp-13 -Isrc/libbaliphy.a.p -Isrc -I../BAli-Phy-3.6.1/src -I. -I../BAli-Phy-3.6.1 -I../BAli-Phy-3.6.1/src/util/include -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++17 -O3 -DHAVE_CONFIG_H -Wno-sign-compare -Wno-maybe-uninitialized -Woverloaded-virtual -Wstrict-aliasing -Wno-unknown-pragmas -fdiagnostics-show-template-tree -funroll-loops -fno-math-errno -fno-signed-zeros -DNDEBUG_DP -fvisibility=default -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -isystem/opt/local/include/eigen3 -DBOOST_RANDOM_DYN_LINK -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_ALL_NO_LIB -MD -MQ src/libbaliphy.a.p/dp_hmm.cc.o -MF src/libbaliphy.a.p/dp_hmm.cc.o.d -o src/libbaliphy.a.p/dp_hmm.cc.o -c ../BAli-Phy-3.6.1/src/dp/hmm.cc
../BAli-Phy-3.6.1/src/dp/hmm.cc:69:12: error: 'bitset' has not been declared in 'std'
   69 | using std::bitset;
      |            ^~~~~~

Change History (2)

comment:1 Changed 6 months ago by barracuda156

Okay, I have a fix, the source simply does not included the needed <bitset> header.

https://github.com/macports/macports-ports/pull/24169

Last edited 6 months ago by barracuda156 (previous) (diff)

comment:2 Changed 6 months ago by barracuda156

Owner: set to barracuda156
Resolution: fixed
Status: newclosed

In bdbd9150fd3e0e8e873f2161c6ca45ad2a6825d2/macports-ports (master):

bali-phy: add missing include

Fixes: #70096

Note: See TracTickets for help on using tickets.