Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749330 - dev-python/pyside2-5.15.1 : /.../cstddef: fatal error: stddef.h file not found
Summary: dev-python/pyside2-5.15.1 : /.../cstddef: fatal error: stddef.h file not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew Ammerlaan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-15 17:30 UTC by Toralf Förster
Modified: 2022-09-26 16:14 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.72 KB, text/plain)
2020-10-15 17:30 UTC, Toralf Förster
Details
dev-python:pyside2-5.15.1:20201015-164049.log (dev-python:pyside2-5.15.1:20201015-164049.log,42.48 KB, text/plain)
2020-10-15 17:30 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,184.36 KB, text/plain)
2020-10-15 17:30 UTC, Toralf Förster
Details
environment (environment,141.57 KB, text/plain)
2020-10-15 17:30 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,24.96 KB, application/x-bzip)
2020-10-15 17:30 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.40 KB, application/x-bzip)
2020-10-15 17:30 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,37.45 KB, application/x-bzip)
2020-10-15 17:30 UTC, Toralf Förster
Details
buildlog (build.log,125.47 KB, text/x-log)
2020-10-23 23:56 UTC, ppdplayer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-10-15 17:30:01 UTC
qt.shiboken: (core) CLANG builtins includes directory: /usr/lib/clang/11.0.0/include
(core) clang_parseTranslationUnit2(0x0, cmd[10]=-isystem/usr/lib/clang/11.0.0/include -fPIC -Wno-constant-logical-operand -std=c++14 -I/var/tmp/portage/dev-python/pyside2-5.15.1/work/pyside-setup-opensource-src-5.15.1/sources/pyside2/PySide2 -I/usr/include/qt5 -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/lib64/qt5/mkspecs/linux-g++ /var/tmp/portage/dev-python/pyside2-5.15.1/temp/QtCore_global_JRWmqd.hpp)
/usr/include/c++/v1/cstddef:44:15: fatal error: 'stddef.h' file not found
(core) Errors in /var/tmp/portage/dev-python/pyside2-5.15.1/temp/QtCore_global_JRWmqd.hpp:
/usr/include/c++/v1/cstddef:44:15: fatal: 'stddef.h' file not found
   /var/tmp/portage/dev-python/pyside2-5.15.1/temp/QtCore_global_JRWmqd.hpp:1:10: note: in file included from /var/tmp/portage/dev-python/pyside2-5.15.1/temp/QtCore_global_JRWmqd.hpp:1:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-libressl-20201008-134631

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.0.0
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems)
  [3]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.47.0
  [2]   rust-1.47.0 *
The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Oct 15 04:05:16 PM UTC 2020
/var/db/repos/libressl	Fri Oct  9 07:35:07 PM UTC 2020

emerge -qpvO dev-python/pyside2
[ebuild  N    ] dev-python/pyside2-5.15.1  USE="gui multimedia network svg widgets xml -3d -charts -concurrent -datavis -designer -gles2-only -help -location -positioning -printsupport -qml -quick -script -scripttools -scxml -sensors -speech -sql -test -testlib -webchannel -webengine -websockets -x11extras -xmlpatterns" PYTHON_TARGETS="python3_7 -python3_6 -python3_8"
Comment 1 Toralf Förster gentoo-dev 2020-10-15 17:30:02 UTC
Created attachment 665897 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-10-15 17:30:04 UTC
Created attachment 665900 [details]
dev-python:pyside2-5.15.1:20201015-164049.log
Comment 3 Toralf Förster gentoo-dev 2020-10-15 17:30:06 UTC
Created attachment 665903 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-10-15 17:30:08 UTC
Created attachment 665906 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-10-15 17:30:09 UTC
Created attachment 665909 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-10-15 17:30:10 UTC
Created attachment 665912 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-10-15 17:30:12 UTC
Created attachment 665915 [details]
temp.tbz2
Comment 8 ppdplayer 2020-10-23 23:56:57 UTC
Created attachment 668210 [details]
buildlog
Comment 9 ppdplayer 2020-10-23 23:57:13 UTC
Ran into this as well.
Comment 10 ppdplayer 2020-10-24 00:44:02 UTC
Same thing happened when compiling with gcc-10.2
Comment 11 ppdplayer 2020-10-24 22:02:39 UTC
Fixed by forcing dev-python/shiboken2 to be compiled with clang toolkit.
Comment 12 Andrew Ammerlaan gentoo-dev 2021-06-03 08:33:26 UTC
Does this problem still occur? The ebuild appears to have some lines that look a lot like they are a workaround around this issue.
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-06-03 09:14:29 UTC
Yes, that's why I CC-ed you — I can't build the new version.
Comment 14 Andrew Ammerlaan gentoo-dev 2021-06-03 09:34:38 UTC
I'm confused, both versions build just fine for me, I didn't have to force clang on shiboken2. It compiled with clang instead of gcc automatically.
Comment 15 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-06-04 09:20:02 UTC
It might be due to USE="default-compiler-rt default-libcxx" on clang.
Comment 16 Andrew Ammerlaan gentoo-dev 2021-06-04 20:31:12 UTC
(In reply to Michał Górny from comment #15)
> It might be due to USE="default-compiler-rt default-libcxx" on clang.

Yes, this appears to be the case, with those flags I can reproduce this issue (CC="gcc" emerge -1 shiboken && emerge -1 pyside2 fails). Without those flags everything works fine, even if I force CC="gcc".

I'm not sure what the best course of action is to fix this, we could force CC="clang", but that doesn't really make sense since it actually does compile with CC="gcc", just not if clang has those flags.
Comment 17 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-06-04 20:50:10 UTC
I don't get why pyside2 insists on using clang in the first place.  This is just asking for trouble.
Comment 18 Andrew Ammerlaan gentoo-dev 2021-06-04 21:09:21 UTC
(In reply to Michał Górny from comment #17)
> I don't get why pyside2 insists on using clang in the first place.  This is
> just asking for trouble.

Shiboken2 apparently requires clang at runtime to do its thing, so my guess is that upstream simply assumes that everyone will be building shiboken2/pyside2 with clang as well and therefore doesn't really care about supporting anything other than clang.
Comment 19 Bogdan 2022-05-15 06:08:06 UTC
I have the same error.
I resolve this by forcing both shiboken2 and pyside2 packages to be compiled with clang.
Comment 20 Bernd 2022-09-26 06:47:23 UTC
Is this issue still valid for 5.15.5?