Sudden 'type_traits' file not found"
Unsolved
General and Desktop
-
Hi,
things were running fine until 15min ago. I had a segfault with my program (it happens) and tried to run the program again from Qt Creator, but got the error "fatal error: 'type_traits' file not found". I haven't changed anything, but now I can't even run a completely new program, not with any of my Qt versions. Here's the output on a fresh project:
23:39:55: Running steps for project ATESTCOMPLETELYNEW... 23:39:55: Configuration unchanged, skipping qmake step. 23:39:55: Starting: "/bin/make" -j12 clang++ -c -pipe -g -std=gnu++1z -Wall -Wextra -fPIC -D_REENTRANT -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/mnt/F/My\ Files/Various/Programming/ATESTCOMPLETELYNEW/ATESTCOMPLETELYNEW -I. -I../../../Qt6.8/6.8.1/gcc_64/include -I../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets -I../../../Qt6.8/6.8.1/gcc_64/include/QtGui -I../../../Qt6.8/6.8.1/gcc_64/include/QtCore -I. -I. -I../../../Qt6.8/6.8.1/gcc_64/mkspecs/linux-clang -o main.o /mnt/F/My\ Files/Various/Programming/ATESTCOMPLETELYNEW/ATESTCOMPLETELYNEW/main.cpp clang++ -c -pipe -g -std=gnu++1z -Wall -Wextra -fPIC -D_REENTRANT -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/mnt/F/My\ Files/Various/Programming/ATESTCOMPLETELYNEW/ATESTCOMPLETELYNEW -I. -I../../../Qt6.8/6.8.1/gcc_64/include -I../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets -I../../../Qt6.8/6.8.1/gcc_64/include/QtGui -I../../../Qt6.8/6.8.1/gcc_64/include/QtCore -I. -I. -I../../../Qt6.8/6.8.1/gcc_64/mkspecs/linux-clang -o mainwindow.o /mnt/F/My\ Files/Various/Programming/ATESTCOMPLETELYNEW/ATESTCOMPLETELYNEW/mainwindow.cpp clang++ -c -pipe -g -std=gnu++1z -Wall -Wextra -fPIC -D_REENTRANT -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/mnt/F/My\ Files/Various/Programming/ATESTCOMPLETELYNEW/ATESTCOMPLETELYNEW -I. -I../../../Qt6.8/6.8.1/gcc_64/include -I../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets -I../../../Qt6.8/6.8.1/gcc_64/include/QtGui -I../../../Qt6.8/6.8.1/gcc_64/include/QtCore -I. -I. -I../../../Qt6.8/6.8.1/gcc_64/mkspecs/linux-clang -o moc_mainwindow.o moc_mainwindow.cpp In file included from /mnt/F/My Files/Various/Programming/ATESTCOMPLETELYNEW/ATESTCOMPLETELYNEW/main.cpp:1: In file included from /mnt/F/My Files/Various/Programming/ATESTCOMPLETELYNEW/ATESTCOMPLETELYNEW/mainwindow.h:4: In file included from ../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets/QMainWindow:1: In file included from ../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets/qmainwindow.h:7: In file included from ../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:7: In file included from ../../../Qt6.8/6.8.1/gcc_64/include/QtGui/qtguiglobal.h:7: ../../../Qt6.8/6.8.1/gcc_64/include/QtCore/qglobal.h:13:12: fatal error: 'type_traits' file not found 13 | # include <type_traits> | ^~~~~~~~~~~~~ In file included from moc_mainwindow.cpp:9: In file included from ./../../../../../mnt/F/My Files/Various/Programming/ATESTCOMPLETELYNEW/ATESTCOMPLETELYNEW/mainwindow.h:4: In file included from ../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets/QMainWindow:1: In file included from ../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets/qmainwindow.h:7: In file included from ../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:7: In file included from ../../../Qt6.8/6.8.1/gcc_64/include/QtGui/qtguiglobal.h:7: ../../../Qt6.8/6.8.1/gcc_64/include/QtCore/qglobal.h:13:12: fatal error: 'type_traits' file not found In file included from /mnt/F/My Files/Various/Programming/ATESTCOMPLETELYNEW/ATESTCOMPLETELYNEW/mainwindow.cpp13 | :# i1nc: luIn file included from de/mnt/F/My Files/Various/Programming/ATESTCOMPLETELYNEW/ATESTCOMPLETELYNEW/mainwindow.h <:t4: In file included from ../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets/QMainWindow:1: In file included from ../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets/qmainwindow.h:7y: pIn file included from e../../../Qt6.8/6.8.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h_:tr7a: itIn file included from s>../../../Qt6.8/6.8.1/gcc_64/include/QtGui/qtguiglobal.h : 7| ^~~~~~~~~~~~~: ../../../Qt6.8/6.8.1/gcc_64/include/QtCore/qglobal.h:13:12: fatal error: 'type_traits' file not found 13 | # include <type_traits> | ^~~~~~~~~~~~~ 1 error generated. 1 error generated. make: *** [Makefile:1847: moc_mainwindow.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:1641: main.o] Error 1 1 error generated. make: *** [Makefile:1844: mainwindow.o] Error 1 23:39:56: The process "/bin/make" exited with code 2. 23:39:56: Error while building/deploying project ATESTCOMPLETELYNEW (kit: Qt 6.8.1) 23:39:56: When executing step "Make" 23:39:56: Elapsed time: 00:00.
Any ideas? Thanks.
Best wishes,
Angela -
Same. Hopefully someone has an idea:
In file included from ../build/Qt_6_8_0_for_macOS-Debug/_deps/ds-build/src/imports/effects_qt6/quickstudioeffects_qmltyperegistrations.cpp::7: In file included from /Qt/6.8.0/macos/lib/QtQml.framework/Headers/qqml.h::7: In file included from /Qt/6.8.0/macos/lib/QtQml.framework/Headers/qqmlprivate.h::18: In file included from /Qt/6.8.0/macos/lib/QtQml.framework/Headers/qjsprimitivevalue.h::7: In file included from /Qt/6.8.0/macos/lib/QtQml.framework/Headers/qtqmlglobal.h::8: /Qt/6.8.0/macos/lib/QtCore.framework/Headers/qglobal.h:13:12: fatal error: 'type_traits' file not found 13 | # include <type_traits>
-
Same. Hopefully someone has an idea:
In file included from ../build/Qt_6_8_0_for_macOS-Debug/_deps/ds-build/src/imports/effects_qt6/quickstudioeffects_qmltyperegistrations.cpp::7: In file included from /Qt/6.8.0/macos/lib/QtQml.framework/Headers/qqml.h::7: In file included from /Qt/6.8.0/macos/lib/QtQml.framework/Headers/qqmlprivate.h::18: In file included from /Qt/6.8.0/macos/lib/QtQml.framework/Headers/qjsprimitivevalue.h::7: In file included from /Qt/6.8.0/macos/lib/QtQml.framework/Headers/qtqmlglobal.h::8: /Qt/6.8.0/macos/lib/QtCore.framework/Headers/qglobal.h:13:12: fatal error: 'type_traits' file not found 13 | # include <type_traits>
@ggalt
Hi,
I actually solved it by installing a different g++ version viasudo apt install g++-14
Apparently clang found version 14 and wanted to use it but only 13 was installed. Don't asked me why. I also don't really know if that was the right way to solve it but it works so far.