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

Error with compilation (-pthread argument unused) #4

Closed
rkrn opened this issue Dec 17, 2015 · 3 comments
Closed

Error with compilation (-pthread argument unused) #4

rkrn opened this issue Dec 17, 2015 · 3 comments

Comments

@rkrn
Copy link

rkrn commented Dec 17, 2015

I couldn't get it to build on Yosemite 10.10.3. Bootstrap script worked fine.

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in src
/bin/sh ../libtool  --tag=CC   --mode=link gcc -iquote  -D_THREAD_SAFE -pthread -Wall -Winline -Werror -Wundef -Wpointer-arith -Werror-implicit-function-declaration -Wbad-function-cast -Wcast-align -Wmissing-declarations -pipe -fno-strict-aliasing -O2   -L/ -flat_namespace  -o memsizes memsizes.o
libtool: link: gcc -iquote -D_THREAD_SAFE -pthread -Wall -Winline -Werror -Wundef -Wpointer-arith -Werror-implicit-function-declaration -Wbad-function-cast -Wcast-align -Wmissing-declarations -pipe -fno-strict-aliasing -O2 -flat_namespace -o memsizes memsizes.o  -L/ -pthread
clang: error: argument unused during compilation: '-pthread'
clang: error: argument unused during compilation: '-pthread'
make[2]: *** [memsizes] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

My compiler configuration:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
@colding
Copy link
Owner

colding commented Dec 17, 2015

Thanks for the report :-) I've never tried building with anything but gcc. I'll appreciate a patch to add clang support if you have the time.

Cheers, jules

@colding
Copy link
Owner

colding commented Dec 17, 2015

kev009 made it build on FreeBSD with clang, so it shouldn't be too much work...

@rkrn
Copy link
Author

rkrn commented Dec 23, 2015

Yep no problem, just reporting so people are aware of it. Sure, I'll spend some time to patch it when I'm free. Thanks and happy holidays.

@colding colding closed this as completed Nov 11, 2018
This issue was closed.
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