pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Qt6 (x11/qt6-qtbase) fails to build with gcc12



So instead of Gtk 4, I tried Qt 6.

The build of x11/qt6-qtbase fails with


[ 33%] Building CXX object src/corelib/CMakeFiles/Core.dir/mimetypes/qmimeprovider.cpp.o
[ 33%] Building CXX object src/corelib/CMakeFiles/Core.dir/mimetypes/qmimetype.cpp.o
[ 33%] Building CXX object src/corelib/CMakeFiles/Core.dir/mimetypes/qmimetypeparser.cpp.o
[ 33%] Linking CXX shared library ../../lib/libQt6Core.so
/usr/bin/ld: CMakeFiles/Core.dir/global/qfloat16.cpp.o: in function `qFloatToFloat16(qfloat16*, float const*, long long)':
qfloat16.cpp:(.text+0x2fe): undefined reference to `__truncsfhf2'
/usr/bin/ld: CMakeFiles/Core.dir/global/qfloat16.cpp.o: in function `qFloatFromFloat16(float*, qfloat16 const*, long long)':
qfloat16.cpp:(.text+0x35d): undefined reference to `__extendhfsf2'
/usr/bin/ld: CMakeFiles/Core.dir/global/qfloat16.cpp.o: in function `operator>>(QTextStream&, qfloat16&)':
qfloat16.cpp:(.text+0x3c7): undefined reference to `__truncsfhf2'
/usr/bin/ld: CMakeFiles/Core.dir/global/qfloat16.cpp.o: in function `operator<<(QTextStream&, qfloat16)':
qfloat16.cpp:(.text+0x402): undefined reference to `__extendhfsf2'
/usr/bin/ld: CMakeFiles/Core.dir/kernel/qmetatype.cpp.o: in function `QtPrivate::QEqualityOperatorForType<qfloat16, true>::equals(QtPrivate::QMetaTypeInterface const*, void const*, void const*)':
qmetatype.cpp:(.text._ZN9QtPrivate24QEqualityOperatorForTypeI8qfloat16Lb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS7_[_ZN9QtPrivate24QEqualityOperatorForTypeI8qfloat16Lb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS7_]+0x19): undefined reference to `__extendhfsf2'
/usr/bin/ld: qmetatype.cpp:(.text._ZN9QtPrivate24QEqualityOperatorForTypeI8qfloat16Lb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS7_[_ZN9QtPrivate24QEqualityOperatorForTypeI8qfloat16Lb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS7_]+0x28): undefined reference to `__extendhfsf2'
/usr/bin/ld: qmetatype.cpp:(.text._ZN9QtPrivate24QEqualityOperatorForTypeI8qfloat16Lb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS7_[_ZN9QtPrivate24QEqualityOperatorForTypeI8qfloat16Lb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS7_]+0x40): undefined reference to `__extendhfsf2'
/usr/bin/ld: qmetatype.cpp:(.text._ZN9QtPrivate24QEqualityOperatorForTypeI8qfloat16Lb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS7_[_ZN9QtPrivate24QEqualityOperatorForTypeI8qfloat16Lb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS7_]+0x4f): undefined reference to `__extendhfsf2'
/usr/bin/ld: CMakeFiles/Core.dir/kernel/qmetatype.cpp.o:qmetatype.cpp:(.text._ZN9QtPrivate24QLessThanOperatorForTypeI8qfloat16Lb1EE8lessThanEPKNS_18QMetaTypeInterfaceEPKvS7_[_ZN9QtPrivate24QLessThanOperatorForTypeI8qfloat16Lb1EE8lessThanEPKNS_18QMetaTypeInterfaceEPKvS7_]+0x12): more undefined references to `__extendhfsf2' follow
/usr/bin/ld: CMakeFiles/Core.dir/kernel/qvariant.cpp.o: in function `(anonymous namespace)::qConvertToRealNumber(QVariant::Private const*)':
qvariant.cpp:(.text+0x701): undefined reference to `__extendhfdf2'
/usr/bin/ld: CMakeFiles/Core.dir/serialization/qcborvalue.cpp.o: in function `decodeBasicValueFromCbor(QCborStreamReader&)':
qcborvalue.cpp:(.text+0x6b): undefined reference to `__extendhfdf2'
/usr/bin/ld: CMakeFiles/Core.dir/serialization/qcborvalue.cpp.o: in function `writeDoubleToCbor(QCborStreamWriter&, double, QFlags<QCborValue::EncodingOption>)':
qcborvalue.cpp:(.text+0x183): undefined reference to `__truncsfhf2'
/usr/bin/ld: qcborvalue.cpp:(.text+0x18c): undefined reference to `__extendhfsf2'
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/corelib/CMakeFiles/Core.dir/build.make:3639: lib/libQt6Core.so.6.5.2] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2988: src/corelib/CMakeFiles/Core.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
*** Error code 2

I can't find references to extendhfdf2 in the source code so it seems
some compiler-internal thing. Adding "FORCE_CXX_STD=gnu++17" or similar
doesn't help.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            <rhialto/at/falu.nl>
\X/ There is no AI. There is just someone else's work.           --I. Rose

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index