clang dependencies

Yaakov Selkowitz yselkowitz@cygwin.com
Tue Feb 13 23:35:00 GMT 2018


On 2018-02-13 12:07, Alberto Escrig Vidal wrote:
> Consider the following program:
> #include <iostream>
> int main() {}
> 
> If I compile it with
> clang++ -stdlib=libc++ foo.cpp
> i get the error:
> /usr/include/c++/v1/locale:197:10: fatal error: 'nl_types.h' file not found
> #include <nl_types.h>
> 
> The reason is that libcatgets-devel 1.1-2 was obsoleted by cygwin-devel.

It sounds like you did not update cygwin/cygwin-devel and
catgets/libcatgets-devel in sync.  Could you check:

$ cygcheck -c cygwin cygwin-devel
Cygwin Package Information
Package              Version        Status
cygwin               2.10.0-1       OK
cygwin-devel         2.10.0-1       OK

If either those say Incomplete instead of OK -- which I suspect at least
cygwin-devel will -- then reinstall that/those package(s).

> On the other hand, if I compile it with:
> clang++ -stdlib=libc++ foo.cpp

You mean clang++ -stdlib=libstdc++ here?

> it fails to link via gcc because -liconv is missing, yet I got libiconv installed.> I had to manually install libiconv-dev for libiconv.a to be in /usr/lib/.

libiconv-devel should have been pulled in by something else, but I'll
have to take a look.

-- 
Yaakov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180213/cb83b876/attachment.sig>


More information about the Cygwin mailing list