内核全编译到qt这一步报错。
2023-09-05T10:11:40 >>> qt5base 5.14.2 Extracting2023-09-05T10:11:45 >>> qt5base 5.14.2 Patching
2023-09-05T10:11:46 >>> qt5base 5.14.2 Configuring
Done in 1h 34min 22s(error code: 2)
log saved on /home/z/3568/OK3568-linux-source/br.log
2023-09-05T10:13:01 295 | class numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> : public numeric_limits<float>
2023-09-05T10:13:01 | ^~~~~~~~~~~~~~
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:336:28: error: expected template-name before '<' token
2023-09-05T10:13:01 336 | : public numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> {};
2023-09-05T10:13:01 | ^
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:337:18: error: 'numeric_limits' is not a class template
2023-09-05T10:13:01 337 | template<> class numeric_limits<const volatile QT_PREPEND_NAMESPACE(qfloat16)>
2023-09-05T10:13:01 | ^~~~~~~~~~~~~~
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:337:78: error: 'std::numeric_limits' is not a template
2023-09-05T10:13:01 337 | template<> class numeric_limits<const volatile QT_PREPEND_NAMESPACE(qfloat16)>
2023-09-05T10:13:01 | ^
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:295:7: note: previous declaration here
2023-09-05T10:13:01 295 | class numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> : public numeric_limits<float>
2023-09-05T10:13:01 | ^~~~~~~~~~~~~~
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:338:28: error: expected template-name before '<' token
2023-09-05T10:13:01 338 | : public numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> {};
2023-09-05T10:13:01 | ^
2023-09-05T10:13:01 In file included from /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/qendian.h:1,
2023-09-05T10:13:01 from /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/codecs/qutfcodec.cpp:43:
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qendian.h: In static member function 'static constexpr QSpecialInteger<S> QSpecialInteger<S>::max()':
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qendian.h:331:30: error: 'std::numeric_limits' is not a template
2023-09-05T10:13:01 331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }
2023-09-05T10:13:01 | ^~~
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qendian.h:331:54: error: incomplete type 'std::numeric_limits' used in nested name specifier
2023-09-05T10:13:01 331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }
2023-09-05T10:13:01 | ^~~
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qendian.h: In static member function 'static constexpr QSpecialInteger<S> QSpecialInteger<S>::min()':
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qendian.h:333:30: error: 'std::numeric_limits' is not a template
2023-09-05T10:13:01 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
2023-09-05T10:13:01 | ^~~
2023-09-05T10:13:01 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qendian.h:333:54: error: incomplete type 'std::numeric_limits' used in nested name specifier
2023-09-05T10:13:01 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
2023-09-05T10:13:01 | ^~~
2023-09-05T10:13:02 /usr/bin/g++ -c -o qendian.o -std=c++11 -ffunction-sections -fdata-sections -O2 -g-I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/qmake -I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/qmake/library -I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/qmake/generators -I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/qmake/generators/unix -I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/qmake/generators/win32 -I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/qmake/generators/mac -I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include -I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore -I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/5.14.2 -I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/5.14.2/QtCore -I../src/corelib/global -I/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/mkspecs/linux-g++ -DQT_VERSION_STR="5.14.2" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=14 -DQT_VERSION_PATCH=2 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/global/qendian.cpp
2023-09-05T10:13:03 gmake: *** Error 1
2023-09-05T10:13:03 gmake: *** Waiting for unfinished jobs....
2023-09-05T10:13:04 In file included from /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/qfloat16.h:1,
2023-09-05T10:13:04 from /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/global/qendian.h:44,
2023-09-05T10:13:04 from /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/global/qendian.cpp:41:
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:295:7: error: 'numeric_limits' is not a class template
2023-09-05T10:13:04 295 | class numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> : public numeric_limits<float>
2023-09-05T10:13:04 | ^~~~~~~~~~~~~~
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:295:77: error: expected template-name before '<' token
2023-09-05T10:13:04 295 | class numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> : public numeric_limits<float>
2023-09-05T10:13:04 | ^
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:295:77: error: expected '{' before '<' token
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:333:18: error: 'numeric_limits' is not a class template
2023-09-05T10:13:04 333 | template<> class numeric_limits<const QT_PREPEND_NAMESPACE(qfloat16)>
2023-09-05T10:13:04 | ^~~~~~~~~~~~~~
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:333:69: error: 'std::numeric_limits' is not a template
2023-09-05T10:13:04 333 | template<> class numeric_limits<const QT_PREPEND_NAMESPACE(qfloat16)>
2023-09-05T10:13:04 | ^
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:295:7: note: previous declaration here
2023-09-05T10:13:04 295 | class numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> : public numeric_limits<float>
2023-09-05T10:13:04 | ^~~~~~~~~~~~~~
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:334:28: error: expected template-name before '<' token
2023-09-05T10:13:04 334 | : public numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> {};
2023-09-05T10:13:04 | ^
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:335:18: error: 'numeric_limits' is not a class template
2023-09-05T10:13:04 335 | template<> class numeric_limits<volatile QT_PREPEND_NAMESPACE(qfloat16)>
2023-09-05T10:13:04 | ^~~~~~~~~~~~~~
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:335:72: error: 'std::numeric_limits' is not a template
2023-09-05T10:13:04 335 | template<> class numeric_limits<volatile QT_PREPEND_NAMESPACE(qfloat16)>
2023-09-05T10:13:04 | ^
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:295:7: note: previous declaration here
2023-09-05T10:13:04 295 | class numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> : public numeric_limits<float>
2023-09-05T10:13:04 | ^~~~~~~~~~~~~~
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:336:28: error: expected template-name before '<' token
2023-09-05T10:13:04 336 | : public numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> {};
2023-09-05T10:13:04 | ^
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:337:18: error: 'numeric_limits' is not a class template
2023-09-05T10:13:04 337 | template<> class numeric_limits<const volatile QT_PREPEND_NAMESPACE(qfloat16)>
2023-09-05T10:13:04 | ^~~~~~~~~~~~~~
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:337:78: error: 'std::numeric_limits' is not a template
2023-09-05T10:13:04 337 | template<> class numeric_limits<const volatile QT_PREPEND_NAMESPACE(qfloat16)>
2023-09-05T10:13:04 | ^
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:295:7: note: previous declaration here
2023-09-05T10:13:04 295 | class numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> : public numeric_limits<float>
2023-09-05T10:13:04 | ^~~~~~~~~~~~~~
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qfloat16.h:338:28: error: expected template-name before '<' token
2023-09-05T10:13:04 338 | : public numeric_limits<QT_PREPEND_NAMESPACE(qfloat16)> {};
2023-09-05T10:13:04 | ^
2023-09-05T10:13:04 In file included from /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/global/qendian.cpp:41:
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/global/qendian.h: In static member function 'static constexpr QSpecialInteger<S> QSpecialInteger<S>::max()':
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/global/qendian.h:331:30: error: 'std::numeric_limits' is not a template
2023-09-05T10:13:04 331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }
2023-09-05T10:13:04 | ^~~
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/global/qendian.h:331:54: error: incomplete type 'std::numeric_limits' used in nested name specifier
2023-09-05T10:13:04 331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }
2023-09-05T10:13:04 | ^~~
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/global/qendian.h: In static member function 'static constexpr QSpecialInteger<S> QSpecialInteger<S>::min()':
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/global/qendian.h:333:30: error: 'std::numeric_limits' is not a template
2023-09-05T10:13:04 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
2023-09-05T10:13:04 | ^~~
2023-09-05T10:13:04 /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/src/corelib/global/qendian.h:333:54: error: incomplete type 'std::numeric_limits' used in nested name specifier
2023-09-05T10:13:04 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
2023-09-05T10:13:04 | ^~~
2023-09-05T10:13:05 gmake: *** Error 1
2023-09-05T10:13:08 make: *** Error 2
2023-09-05T10:13:08 make: *** Error 2
Command exited with non-zero status 1
you take 1:34:22 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 565:
/usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG
您可以使用我们提供的虚拟机进行编译,如果是自己的虚拟机,需要确保安装了编译手册中提到的必要库,并且配置虚拟机为8G(及以上)内存,处理器数量为 4,每个处理器的内核数量为 1,删除/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2再进行编译测试。
页:
[1]