You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In CMakeLists.txt, check_cxx_compiler_flag(-stdlib=libc++ HAVE_LIBCPP) is used to determine whether to use LLVM's C++ stdlib - libc++, or the system's own GNU one (libstdc++).
Unfortunately, those distros do not ship with that library (per the clip below) - and yet the test succeeds - yielding failure later in the build process due to lots of missing header files.
The cause is that CMake's check_cxx_compiler_flag(-stdlib=libc++ HAVE_LIBCPP) test which is used in Salmon only tests if the compiler accepts the flag (the test code it uses doesn't have any includes - just main() {return 0;}) rather than if it works.
I don't know the whys behind the missing library - the library is available on OS/X for example - however it seems this behaviour should be changed for now on Linux platforms.
The text was updated successfully, but these errors were encountered:
dslarm
added a commit
to dslarm/salmon
that referenced
this issue
Oct 23, 2024
In CMakeLists.txt,
check_cxx_compiler_flag(-stdlib=libc++ HAVE_LIBCPP)
is used to determine whether to use LLVM's C++ stdlib - libc++, or the system's own GNU one (libstdc++).Unfortunately, those distros do not ship with that library (per the clip below) - and yet the test succeeds - yielding failure later in the build process due to lots of missing header files.
The cause is that CMake's
check_cxx_compiler_flag(-stdlib=libc++ HAVE_LIBCPP)
test which is used in Salmon only tests if the compiler accepts the flag (the test code it uses doesn't have any includes - justmain() {return 0;}
) rather than if it works.I don't know the whys behind the missing library - the library is available on OS/X for example - however it seems this behaviour should be changed for now on Linux platforms.
The text was updated successfully, but these errors were encountered: