嵌入式爱好者

查看: 1933|回复: 1

[Linux] 内核全编译到qt这一步报错。

[复制链接]

4

主题

9

帖子

20

积分

RK3568通行证

扫一扫,手机访问本帖
发表于 2023-9-5 10:31:15 | 显示全部楼层 |阅读模式
2023-09-05T10:11:40 >>> qt5base 5.14.2 Extracting
2023-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[2]: *** [Makefile:384: qutfcodec.o] Error 1
2023-09-05T10:13:03 gmake[2]: *** 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[2]: *** [Makefile:339: qendian.o] Error 1
2023-09-05T10:13:08 make[1]: *** [package/pkg-generic.mk:221: /home/z/3568/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2/.stamp_configured] Error 2
2023-09-05T10:13:08 make: *** [/home/z/3568/OK3568-linux-source/buildroot/output/OK3568/Makefile:16: _all] 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
回复

使用道具 举报

0

主题

124

帖子

668

积分

A40i/T3/T507/T527通行证i.MX6Q通行证i.MX6UL通行证i.MX8MM通行证i.MX8MP通行证RK3568通行证RK3399通行证LS1028A通行证LS1012A通行证LS1043A\46A通行证TCU通行证FDU产品通行证FCU1401通行证FCU1301通行证FCU11xx通行证FCU1201通行证FCU2201通行证FCU2301/FCU2302通行证FCU2401通行证5G转接卡通行证FCU3001通行证AM5718通行证Hi3519A通信证AM335x通行证i.MX RT通行证XX18通行证

发表于 2023-9-5 10:44:24 | 显示全部楼层
您可以使用我们提供的虚拟机进行编译,如果是自己的虚拟机,需要确保安装了编译手册中提到的必要库,并且配置虚拟机为8G(及以上)内存,处理器数量为 4,每个处理器的内核数量为 1,删除/OK3568-linux-source/buildroot/output/OK3568/build/qt5base-5.14.2再进行编译测试。
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-20 18:16

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表