I'm getting an error that is seemingly related to "catch-adapter" when trying to compile NJOY21. I can compile NJOY2016 fine.
It looks similar to the issue defined here: CoatiSoftware/Sourcetrail#1185
I tried switching the FetchContent to go get Catch2, but it resulted in more errors b/c it's looking for a catch.hpp in the wrong place.
- Hardware: Apple M2
- OS: Ventura 13.6.2
- GCC: Apple clang version 15.0.0 (clang-1500.0.40.1)
- gfortran: GNU Fortran (Homebrew GCC 13.2.0) 13.2.0
- cmake: 3.27.7
- python: 3.11.6
The error looks like this:
/Users/<>/NJOY21/src/njoy21/Version/test/Version.test.cpp:14:3: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not?
CHECK( "1.2.3" == njoy21::Version::version() );
^
/Users/<>/NJOY21/build/_deps/catch-adapter-src/src/single_include/catch.hpp:11603:23: note: expanded from macro 'CHECK'
#define CHECK( expr ) INTERNAL_CATCH_TEST( "CHECK", Catch::ResultDisposition::ContinueOnFailure, expr )
^
/Users/<>/NJOY21/build/_deps/catch-adapter-src/src/single_include/catch.hpp:2235:9: note: expanded from macro 'INTERNAL_CATCH_TEST'
INTERNAL_CATCH_REACT( __catchResult ) \
^
/Users/<>/NJOY21/build/_deps/catch-adapter-src/src/single_include/catch.hpp:2219:44: note: expanded from macro 'INTERNAL_CATCH_REACT'
if( resultBuilder.shouldDebugBreak() ) CATCH_BREAK_INTO_DEBUGGER(); \
^
/Users/<>/NJOY21/build/_deps/catch-adapter-src/src/single_include/catch.hpp:2155:75: note: expanded from macro 'CATCH_BREAK_INTO_DEBUGGER'
#define CATCH_BREAK_INTO_DEBUGGER() if( Catch::isDebuggerActive() ) { CATCH_TRAP(); }
^
/Users/<>/NJOY21/build/_deps/catch-adapter-src/src/single_include/catch.hpp:2133:38: note: expanded from macro 'CATCH_TRAP'
#define CATCH_TRAP() __asm__("int $3\n" : : /* NOLINT */ )
^
<inline asm>:1:2: note: instantiated into assembly here
int $3
I'm getting an error that is seemingly related to "catch-adapter" when trying to compile NJOY21. I can compile NJOY2016 fine.
It looks similar to the issue defined here: CoatiSoftware/Sourcetrail#1185
I tried switching the
FetchContentto go get Catch2, but it resulted in more errors b/c it's looking for acatch.hppin the wrong place.The error looks like this: