I'm working on building PySide2 for Fedora and have a problem with clang segfaulting only on armv7hf[1]...
The source package has shiboken2, pyside2, and pyside2-tools in one big archive but I am building shiboken2 and pyside2-tools with GCC and only pyside2 with clang because if makes use of something clang specific.
[ 1%] Building CXX object libpyside/CMakeFiles/pyside2.dir/pysidesignal.cpp.o
cd /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/armv7hl-linux/pyside2/libpyside && /usr/bin/clang++ -DPYSIDE_EXPORTS -DPYSIDE_QML_PRIVATE_API_SUPPORT=1 -DPYSIDE_QML_SUPPORT=1 -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QML_LIB -I/builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside -I/builddir/build/BUILD/python-pyside2_5.12.1/include/shiboken2 -I/usr/include/python3.7m -I/usr/include/qt5/QtQml/5.12.1 -I/usr/include/qt5/QtQml/5.12.1/QtQml -I/usr/include/qt5/QtNetwork/5.12.1 -I/usr/include/qt5/QtNetwork/5.12.1/QtNetwork -I/usr/include/qt5/QtCore/5.12.1 -I/usr/include/qt5/QtCore/5.12.1/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard -Wall -fvisibility=hidden -Wno-strict-aliasing -D QT_NO_CAST_FROM_ASCII -D QT_NO_CAST_TO_ASCII -fPIC -fPIC -std=gnu++11 -o CMakeFiles/pyside2.dir/pysidesignal.cpp.o -c /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside/pysidesignal.cpp
make[2]: Leaving directory '/builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/armv7hl-linux/pyside2'
clang-8: warning: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Wunused-command-line-argument]
clang-8: warning: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' [-Wunused-command-line-argument]
Stack dump:
0. Program arguments: /usr/bin/clang-8 -cc1 -triple armv7-unknown-linux-gnueabihf -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name pysidesignal.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic -target-feature -fp-only-sp -target-feature +d16 -target-feature +vfp3 -target-feature -fp16 -target-feature -vfp4 -target-feature -fp-armv8 -target-feature -neon -target-feature -crypto -target-abi aapcs-linux -mfloat-abi hard -fallow-half-arguments-and-returns -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -coverage-notes-file /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/armv7hl-linux/pyside2/libpyside/CMakeFiles/pyside2.dir/pysidesignal.cpp.gcno -resource-dir /usr/lib/clang/8.0.0 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-g++ -D PYSIDE_EXPORTS -D PYSIDE_QML_PRIVATE_API_SUPPORT=1 -D PYSIDE_QML_SUPPORT=1 -D QT_CORE_LIB -D QT_NETWORK_LIB -D QT_NO_DEBUG -D QT_QML_LIB -I /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside -I /builddir/build/BUILD/python-pyside2_5.12.1/include/shiboken2 -I /usr/include/python3.7m -I /usr/include/qt5/QtQml/5.12.1 -I /usr/include/qt5/QtQml/5.12.1/QtQml -I /usr/include/qt5/QtNetwork/5.12.1 -I /usr/include/qt5/QtNetwork/5.12.1/QtNetwork -I /usr/include/qt5/QtCore/5.12.1 -I /usr/include/qt5/QtCore/5.12.1/QtCore -D QT_NO_CAST_FROM_ASCII -D QT_NO_CAST_TO_ASCII -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -internal-isystem /usr/bin/../lib/gcc/armv7hl-redhat-linux-gnueabi/9/../../../../include/c++/9 -internal-isystem /usr/bin/../lib/gcc/armv7hl-redhat-linux-gnueabi/9/../../../../include/c++/9/armv7hl-redhat-linux-gnueabi -internal-isystem /usr/bin/../lib/gcc/armv7hl-redhat-linux-gnueabi/9/../../../../include/c++/9/backward -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/8.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wall -Werror=format-security -Wall -Wno-strict-aliasing -std=gnu++11 -fdeprecated-macro -fdebug-compilation-dir /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/armv7hl-linux/pyside2/libpyside -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -stack-protector 2 -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o CMakeFiles/pyside2.dir/pysidesignal.cpp.o -x c++ /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside/pysidesignal.cpp -dwarf-debug-flags /usr/bin/clang-8 --driver-mode=g++ -D PYSIDE_EXPORTS -D PYSIDE_QML_PRIVATE_API_SUPPORT=1 -D PYSIDE_QML_SUPPORT=1 -D QT_CORE_LIB -D QT_NETWORK_LIB -D QT_NO_DEBUG -D QT_QML_LIB -I /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside -I /builddir/build/BUILD/python-pyside2_5.12.1/include/shiboken2 -I /usr/include/python3.7m -I /usr/include/qt5/QtQml/5.12.1 -I /usr/include/qt5/QtQml/5.12.1/QtQml -I /usr/include/qt5/QtNetwork/5.12.1 -I /usr/include/qt5/QtNetwork/5.12.1/QtNetwork -I /usr/include/qt5/QtCore/5.12.1 -I /usr/include/qt5/QtCore/5.12.1/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-command-line -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard -Wall -fvisibility=hidden -Wno-strict-aliasing -D QT_NO_CAST_FROM_ASCII -D QT_NO_CAST_TO_ASCII -fPIC -fPIC -std=gnu++11 -o CMakeFiles/pyside2.dir/pysidesignal.cpp.o -c /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside/pysidesignal.cpp -faddrsig
1. <eof> parser at end of file
2. /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside/pysidesignal.cpp:596:11: LLVM IR generation of declaration 'PySide'
3. /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside/pysidesignal.cpp:970:9: Generating code for declaration 'PySide::Signal::getCallbackSignature'
4. /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside/pysidesignal.cpp:984:45: LLVM IR generation of compound statement ('{}')
5. /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside/pysidesignal.cpp:990:23: LLVM IR generation of compound statement ('{}')
6. /builddir/build/BUILD/pyside-setup-everywhere-src-5.12.1/sources/pyside2/libpyside/pysidesignal.cpp:995:57: LLVM IR generation of compound statement ('{}')
clang-8: error: unable to execute command: Segmentation fault (core dumped)
clang-8: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 8.0.0 (Fedora 8.0.0-1.fc31)
Target: armv7l-unknown-linux-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
clang-8: note: diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed source, and associated run script.
clang-8: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-8: note: diagnostic msg: /tmp/pysidesignal-058743.cpp
clang-8: note: diagnostic msg: /tmp/pysidesignal-058743.sh
clang-8: note: diagnostic msg:
********************
Thanks,
Richard
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx