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

Fails to compile (unknown type name "pthread_mutex_t" and so on) #6

Open
Logarithmus opened this issue Feb 23, 2020 · 4 comments
Open

Comments

@Logarithmus
Copy link

Hello! Firstly, thank you very much for providing this patch. But at the very first attempt it didn't compile:

Error: unknown type name "pthread_mutex_t"
Error: implicit declaration of clock_gettime
Error: use of undeclared identifier 'M_PI'
@Logarithmus
Copy link
Author

I've managed to fix those errors by adding some include and define macros. Now I'd like to share those fixes with the community (first time in my life!).
Pull request: #7

@xtknight
Copy link
Owner

I appreciate the patch. Sorry for the long delay in responding. Could you let me know what kind of compile environment you're on (OS and version, architecture, gcc/clang)? Just want to make sure not to break the compile for different environments.

@Logarithmus
Copy link
Author

Logarithmus commented Apr 18, 2020

OS: Arch Linux x86_64
Compiler: Clang 9.x.x (Arch is rolling-release, so I'm not sure what exact version of Clang I used in February)
CFLAGS from my /etc/makepkg.conf:
CFLAGS="-std=c11 -march=native -ffast-math -O3 -pipe -fstack-protector-strong -fno-plt"

@Logarithmus
Copy link
Author

@xtknight hey, are you still busy? It's such a small patch that it won't take much of your time to merge.

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