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

Unresolved symbol clock_gettime with MinGW 8.1 x64 (win32 threads) #78

Open
HappySeaFox opened this issue Aug 7, 2021 · 2 comments
Open

Comments

@HappySeaFox
Copy link

MinGW 8.1 x64 from https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-win32/seh/

@maartenuni
Copy link

Many thanks for making munit available to all!

When I'm using munit with:

gcc.exe (Rev1, Built by MSYS2 project) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Munit runs perfectly.

However, when running with:

$ cc --version
clang version 18.1.8
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/clang64/bin

I'm also running in to the linking error: clock_gettime not being defined. It seems to arrive from here:

ld.lld: error: undefined symbol: clock_gettime
>>> referenced by ../tests/munit.c:536

@maartenuni
Copy link

maartenuni commented Dec 20, 2024

If you are willing to sacrifice timing you may define MUNIT_DISABLE_TIMING when compiling, the timing is removed from the output, but you can still compile/run your unittests./

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants