Closed sjackman closed 4 years ago
thanks for the report! I don't own a Mac. Any idea what's a simple fix here?
I suspect (but haven't tried) that you could reproduce this error with clang
on Linux.
Worth a try !
(base) [rayan@blok-bok bcalm]$ mkdir buildclang
(base) [rayan@blok-bok bcalm]$ cd buildclang
(base) [rayan@blok-bok buildclang]$ export CC=/usr/bin/clang
(base) [rayan@blok-bok buildclang]$ export CXX=/usr/bin/clang++
(base) [rayan@blok-bok buildclang]$ cmake .. && make -j8
-- The C compiler identification is Clang 9.0.0
-- The CXX compiler identification is Clang 9.0.0
[..]
6 warnings generated.
6 warnings generated.
[100%] Linking CXX executable bcalm
[100%] Built target bcalm
"unfortunately" it works with clang 9.0.0 on Linux
Do you have CI set up for this repository? I'm really liking GitHub Actions for CI. It has both Linux and macOS runners.
yes in fact there's Travis (with clang 3.7) that generates Mac binaries every release. Good to know about Github Actions!
The error is from this line
GraphVector<Node> predecessors = graph->template predecessors (node);
error: 'predecessors' following the 'template' keyword does not refer to a template
In the current gatb-core
that line removes the template
word:
GraphVector<Node> predecessors = graph->predecessors (node);
I have no idea which one it should be.
ha thanks for the investigation! according to https://github.com/GATB/gatb-core/issues/28#issuecomment-497351218 it should be the latter! so problem should go away in next release
Glad to hear it. Thanks, Rayan!
Bcalm 2.2.1 fails to build with clang on macOS 10.15.
See https://github.com/brewsci/homebrew-bio/pull/870/checks?check_run_id=399734948#step:3:1373 and https://github.com/brewsci/homebrew-bio/pull/870