Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail to compile #3191

Open
2 tasks done
yurivict opened this issue Sep 10, 2023 · 2 comments
Open
2 tasks done

Tests fail to compile #3191

yurivict opened this issue Sep 10, 2023 · 2 comments
Labels
bug faulty or wrong behaviour of code response needed stalled since more user information is needed

Comments

@yurivict
Copy link

Does this problem persist on the current master?

  • I have verified the issue on the current master

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

See the log.

gcc-13
FreeBSD 13.2

Expected Behavior

n/a

Steps To Reproduce

Regular test run.

Environment

- Operating system: FreeBSD 13.2
- SeqAn version: 3.3.0
- Compiler: gcc-13

Anything else?

No response

@yurivict yurivict added the bug faulty or wrong behaviour of code label Sep 10, 2023
@eseiler
Copy link
Member

eseiler commented Sep 10, 2023

Hey there, the beginning of the log states

===> Testing for seqan3-3.0.2.1195_2
 -- The CXX compiler identification is Clang 10.0.1

Looks like 3.0.2 instead of 3.3.0. Also, clang is not supported.

Can you check whether the log or the build is wrong?

Edit: Log was updated :)

@eseiler
Copy link
Member

eseiler commented Sep 11, 2023

undefined reference to `testing::internal::EqFailure(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
collect2: error: ld returned 1 exit status

The error happens when linking against the system-provided GoogleTest (1.14.0).

Looks like either GoogleTest or seqan3 was compiled with pre-cxx11-abi (-D_GLIBCXX_USE_CXX11_ABI={0,1}), while the other was not.
Or there is some other linking issue because GoogleTest and seqan3 were compiled differently.
There are some other packages where we use the system-provided GoogleTest and we haven't encountered this issue yet.

In any case, you can also pass -DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE to CMake to force seqan3 to fetch GoogleTest from source.

@eseiler eseiler added the response needed stalled since more user information is needed label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug faulty or wrong behaviour of code response needed stalled since more user information is needed
Projects
None yet
Development

No branches or pull requests

2 participants