Re: build failure while updating pyside2 in raspbian

2020-05-25 Thread peter green

On 24/05/2020 16:01, peter green wrote:


(minimal) Clang: 1 diagnostic messages:
  /pyside2/sources/shiboken2/tests/libminimal/listuser.h:32:10: fatal: 'list' 
file not found
   /tmp/global_pjsLqX.hpp:1:10: note: in file included from 
/tmp/global_pjsLqX.hpp:1:
/pyside2/sources/shiboken2/tests/minimalbinding/global.h:32:10: note: in file 
included from /pyside2/sources/shiboken2/tests/minimalbinding/global.h:32:




Any idea what might be going wrong and what can be done about it?


I found the issue myself, it seems that the issue was caused by having 
libgcc-10-dev but not libstdc++-10-dev installed in the build environment and 
this causes clang to use the gcc-10 directories (which contain no c++ stuff 
because libstdc++-10-dev is not installed) rather than the gcc-9 directories 
(which do contain the c++ stuff).

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961547 for more details.



build failure while updating pyside2 in raspbian

2020-05-24 Thread peter green

Hi, I am trying to update pyside2 in raspbian bullseye to bring it back into 
sync with Debian, we carry a couple of local patches to the packaging to build 
without qtwebengine (which we don't have in raspbian, but serveral Debian 
architectures don't have it either) and to allow the documentation packages to 
be built on 32-bit.

Unfortunately after merging our patches and trying to build I get


(minimal) clang_parseTranslationUnit2(0x0, 
cmd[6]=-isystem/usr/lib/llvm-9/lib/clang/9/include -fPIC 
-Wno-constant-logical-operand -std=c++14 
-I/pyside2/sources/shiboken2/tests/libminimal /tmp/global_pjsLqX.hpp)
/pyside2/sources/shiboken2/tests/libminimal/listuser.h:32:10: fatal error: 
'list' file not found
(minimal) Errors in /tmp/global_pjsLqX.hpp:
/pyside2/sources/shiboken2/tests/libminimal/listuser.h:32:10: fatal: 'list' 
file not found
   /tmp/global_pjsLqX.hpp:1:10: note: in file included from 
/tmp/global_pjsLqX.hpp:1:
/pyside2/sources/shiboken2/tests/minimalbinding/global.h:32:10: note: in file 
included from /pyside2/sources/shiboken2/tests/minimalbinding/global.h:32:


(minimal) Clang: 1 diagnostic messages:
  /pyside2/sources/shiboken2/tests/libminimal/listuser.h:32:10: fatal: 'list' 
file not found
   /tmp/global_pjsLqX.hpp:1:10: note: in file included from 
/tmp/global_pjsLqX.hpp:1:
/pyside2/sources/shiboken2/tests/minimalbinding/global.h:32:10: note: in file 
included from /pyside2/sources/shiboken2/tests/minimalbinding/global.h:32:


Keeping temporary file: /tmp/global_pjsLqX.hpp
shiboken: Error running ApiExtractor.
Command line: 
--project-file=/pyside2/pyside3_build/py3.8-qt5.12.5-32bit-relwithdebinfo/shiboken2/tests/minimalbinding/minimal-binding.txt
make[4]: *** 
[tests/minimalbinding/CMakeFiles/minimal_generator.dir/build.make:66: 
tests/minimalbinding/mjb_rejected_classes.log] Error 1
make[4]: Leaving directory 
'/pyside2/pyside3_build/py3.8-qt5.12.5-32bit-relwithdebinfo/shiboken2'
make[3]: *** [CMakeFiles/Makefile2:2789: 
tests/minimalbinding/CMakeFiles/minimal_generator.dir/all] Error 2
make[3]: *** Waiting for unfinished jobs


Any idea what might be going wrong and what can be done about it?