D13613: RFC: Fix libclang default include paths on FreeBSD.

Gleb Popov noreply at phabricator.kde.org
Fri Jun 22 10:01:34 UTC 2018


arrowd added a comment.


  In D13613#281509 <https://phabricator.kde.org/D13613#281509>, @aaronpuchert wrote:
  
  > In D13613#281365 <https://phabricator.kde.org/D13613#281365>, @arrowd wrote:
  >
  > > I was asking what's the right way. Do you think I should change the test?
  >
  >
  > I think it would be a good first step to understand the problem, because the test seems to work on Linux. Which test specifically fails and how? I see that some tests use system headers or C++ standard library headers (e.g. `testMissingInclude_data` uses `<vector>`), but they all work on my machine.
  
  
  Yes, it is exactly `testMissingInclude` that fails. It should generate only one problem, but on FreeBSD it also contains:
  
  > Error: 'sys/endian.h' file not found in /usr/include/c++/v1/__config:[(212,10),(212,24)]: <no explanation> (found by Semantic analysis)" ,
  >  "Error: 'wchar.h' file not found in /usr/include/c++/v1/wchar.h:[(118,14),(118,23)]: <no explanation> (found by Semantic analysis)" , 
  >  "Error: 'stddef.h' file not found in /usr/include/c++/v1/cstddef:[(43,14),(43,24)]: <no explanation> (found by Semantic analysis)" , 
  >  "Error: 'string.h' file not found in /usr/include/c++/v1/string.h:[(60,14),(60,24)]: <no explanation> (found by Semantic analysis)" ,
  >  "Error: 'stdint.h' file not found in /usr/include/c++/v1/stdint.h:[(118,14),(118,24)]: <no explanation> (found by Semantic analysis)" ,
  >  "Error: 'stdlib.h' file not found in /usr/include/c++/v1/stdlib.h:[(93,14),(93,24)]: <no explanation> (found by Semantic analysis)" ,
  >  "Error: 'assert.h' file not found in /usr/include/c++/v1/cassert:[(20,9),(20,19)]: <no explanation> (found by Semantic analysis)" , 
  >  "Error: 'limits.h' file not found in /usr/include/c++/v1/limits.h:[(57,14),(57,24)]: <no explanation> (found by Semantic analysis)" ,
  >  "Error: 'limits.h' file not found in /usr/include/c++/v1/limits.h:[(61,14),(61,24)]: <no explanation> (found by Semantic analysis)"
  
  I think, the cause is that standard C++ library on FreeBSD is libc++, and it uses libc headers under the hood.

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D13613

To: arrowd, #kdevelop, mwolff
Cc: mwolff, aaronpuchert, kdevelop-devel, antismap, iodelay, vbspam, njensen, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180622/012ff965/attachment-0001.html>


More information about the KDevelop-devel mailing list