@Hannas: the CFLAGS helps, thanks!
@Stefan: this is because, as of Mavericks, the command "gcc" is not really GCC any more, it's just a copy of Clang: $ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix $ clang -v Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix
thanks. that's what I wanted to know, i.e., this is not only not gcc, but also different from the clang 3.3 that's available on Linux. Apparently, the latter (still?) supports -pthread while the Apple one does no(t| longer).
which doesn't support GCC-only flags. Can we some how update our configure script or something to deal with this in a more elegant way than having to set "export CFLAGS..." each time?
sure. See e.g. what we do already do for clang, icc, and certain (old) versions of gcc. But I propose to check carefully and understand why configure itself or our checks in our configure.ag does not (yet) detect that Apple clang 5.0 does not support -pthread (the way it is currently used). Stefan
Jennie
On Mar 04, 2014, at 13:29, Stefan Manegold
wrote: Thanks Hannes!
... I'd prefer, though, to understand why it works with nightly testing, but fails for Jennie (and you?), respectively how to distinguish working from failing setups, and then "fix" our configure (in a "conservative" manner), such that all our environments do work ...
Best, Stefan
----- Original Message -----
Hello Jennie (and Stefan),
On 04.03.2014, at 11:45, Ying Zhang
wrote: clang: error: argument unused during compilation: '-pthread’
If you set
export CFLAGS="-Qunused-arguments”
it should compile.
Best,
Hannes
_______________________________________________ developers-list mailing list developers-list@monetdb.org https://www.monetdb.org/mailman/listinfo/developers-list
-- | Stefan.Manegold@CWI.nl | DB Architectures (DA) | | www.CWI.nl/~manegold/ | Science Park 123 (L321) | | +31 (0)20 592-4212 | 1098 XG Amsterdam (NL) |
_______________________________________________ developers-list mailing list developers-list@monetdb.org https://www.monetdb.org/mailman/listinfo/developers-list
_______________________________________________ developers-list mailing list developers-list@monetdb.org https://www.monetdb.org/mailman/listinfo/developers-list
-- | Stefan.Manegold@CWI.nl | DB Architectures (DA) | | www.CWI.nl/~manegold/ | Science Park 123 (L321) | | +31 (0)20 592-4212 | 1098 XG Amsterdam (NL) |