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

Cannot compile library #1257

Closed
ark0f opened this issue Apr 21, 2018 · 1 comment · Fixed by #1271
Closed

Cannot compile library #1257

ark0f opened this issue Apr 21, 2018 · 1 comment · Fixed by #1271
Labels

Comments

@ark0f
Copy link
Contributor

ark0f commented Apr 21, 2018

Description

I can't compile this library.
Error

Steps to reproduce

Just try to compile the library using CMake GLOB_RECURSE and compiler which you can see in Extra information. If you want to full reproduce, you'll look through this repo. Use this script:

git clone --recursive https://github.com/Good-Pudge/okhttp-fork.git
cd okhttp-fork
mkdir build
cd build
cmake .. -DBUILD_TESTING=ON -G "MinGW Makefiles"
cmake --build . --target ohf_tests -- -j4

Extra information

  • Catch version: v2.2.2
  • Operating System: Windows 10 Pro v1709 x64
  • Compiler+version: MinGW-w64 7.2.0
@horenmar
Copy link
Member

Define CATCH_CONFIG_NO_POSIX_SIGNALS to fix it for now.

The underlying problem is that MinGW is detected as generic GCC variant, so POSIX signals are expected to work. However, they do not.

@horenmar horenmar added the Bug label Apr 22, 2018
horenmar added a commit that referenced this issue Apr 24, 2018
ark0f added a commit to ark0f/Catch2 that referenced this issue May 1, 2018
@ark0f ark0f mentioned this issue May 1, 2018
horenmar added a commit that referenced this issue Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants