[PySide] Problems with clang 10. Qt 5.13.2, and pyside2, git branch 5.13.2

Tim Roberts timr at probo.com
Fri Nov 15 19:36:50 CET 2019


Kacvinsky, Tom wrote:
> I still had problems finding stddef.h (included by cstddef), until I set the clang environment
> variable CPATH (which was set to the include paths generated by "gcc -v -xc++ /dev/null")
>
> That fixed the problem with cstddef, but now I have this problem:
>
> /home/BUILD64/bin/gcc-8.3.0-2/include/c++/8.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
>   #include_next <stdlib.h>
>                 ^~~~~~~~~~
> Not sure if this is a PySide2 problem or a LLVM (version 10, BTW) problem.  I just find it
> out that the cstddef issue was fixed but not the cstdlib issue, as they have a similar chain
> of includes.

You said you have a custom build of llvm, yes?  Did you configure the 
default set of include paths?  The normal include paths would put the 
C++ includes first, followed by the C includes, and the use of 
"include_next" makes that mandatory.   <cstdlib> is a C++ include, and 
"include_next" says "don't look everywhere for this file, instead start 
looking at the NEXT directory in the include list.

It is, frankly, an abomination, and if you can't figure out how to 
adjust the INLCUDE path, you should just change the "include_next" to 
"include".  That should also solve the problem.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3389 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20191115/392b04cf/attachment.bin>


More information about the PySide mailing list