usr/include/c++/6.4.1/bits/stl_relops.:67: Parse error at "std"
问题描述:
1.编译某qt工程的32位架构二进制包时,出现了上面错误,具体错误信息如下
qmake-qt5 -o ProductLicense/Makefile ProductLicense/ProductLicense.pro CONFIG+=debug
Scanning directory '/builddir/build/BUILD/anaconda-26.48.21/welcome-src/ProductLicense'...
Updating 'productlicense_cn.ts'...
Found source text(s) ( new and already existing)
Scanning directory '/builddir/build/BUILD/anaconda-26.48.21/welcome-src/ProductLicense'...
Updating 'productlicense_en.ts'...
Found source text(s) ( new and already existing)
Updating 'productlicense_cn.qm'...
Generated translation(s) ( finished and unfinished)
Ignored untranslated source text(s)
Updating 'productlicense_en.qm'...
Generated translation(s) ( finished and unfinished)
Ignored untranslated source text(s)
/usr/bin/make -C ProductLicense
make[]: Entering directory '/builddir/build/BUILD/anaconda-26.48.21/welcome-src/ProductLicense'
/usr/lib/qt5/bin/uic productlicense.ui -o ui_productlicense.h
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib/qt5/mkspecs/linux-g++ -o main.o main.cpp
/usr/lib/qt5/bin/rcc -name license license.qrc -o qrc_license.cpp
g++ -pipe -g -Wall -W -dM -E -o moc_predefs.h /usr/lib/qt5/mkspecs/features/data/dummy.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib/qt5/mkspecs/linux-g++ -o productlicense.o productlicense.cpp
/usr/lib/qt5/bin/moc -DQT_DEPRECATED_WARNINGS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include ./moc_predefs.h -I/usr/lib/qt5/mkspecs/linux-g++ -I/builddir/build/BUILD/anaconda-26.48./welcome-src/ProductLicense -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/include/c++/6.4. -I/usr/include/c++/6.4./x86_64-redhat-linux -I/usr/include/c++/6.4./backward -I/usr/lib/gcc/x86_64-redhat-linux/6.4./include -I/usr/local/include -I/usr/include productlicense.h -o moc_productlicense.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib/qt5/mkspecs/linux-g++ -o qrc_license.o qrc_license.cpp
welcome.c: In function 'main':
welcome.c::: warning: passing argument of 'g_timeout_add_seconds' from incompatible pointer type [-Wincompatible-pointer-types]
g_timeout_add_seconds(AUTOEXIT_TIMEOUT, gtk_main_quit, NULL);
^~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h::,
from /usr/include/glib-2.0/glib.h:,
from /usr/include/glib-2.0/gobject/gbinding.h:,
from /usr/include/glib-2.0/glib-object.h:,
from /usr/include/glib-2.0/gio/gioenums.h:,
from /usr/include/glib-2.0/gio/giotypes.h:,
from /usr/include/glib-2.0/gio/gio.h:,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:,
from /usr/include/gtk-2.0/gdk/gdk.h:,
from /usr/include/gtk-2.0/gtk/gtk.h:,
from welcome.c::
/usr/include/glib-2.0/glib/gmain.h::: note: expected 'GSourceFunc {aka int (*)(void *)}' but argument is of type 'void (*)(void)'
guint g_timeout_add_seconds (guint interval,
^~~~~~~~~~~~~~~~~~~~~
usr/include/c++/6.4./bits/stl_relops.:: Parse error at "std"
Makefile:: recipe for target 'moc_productlicense.cpp' failed
make[]: *** [moc_productlicense.cpp] Error
make[]: *** Waiting for unfinished jobs....
make[]: Leaving directory '/builddir/build/BUILD/anaconda-26.48.21/welcome-src/ProductLicense'
Makefile:: recipe for target 'system_install' failed
make[]: Leaving directory '/builddir/build/BUILD/anaconda-26.48.21/welcome-src'
make[]: *** [system_install] Error
Makefile:: recipe for target 'all-recursive' failed
make[]: Leaving directory '/builddir/build/BUILD/anaconda-26.48.21'
make[]: *** [all-recursive] Error
Makefile:: recipe for target 'all' failed
但是编译64位架构的rpm包时并没有报错,网上查询了标题bug相关信息,https://forum.qt.io/topic/56552/solved-pi2-qt5-4-1-std-errors-configure-errors
说是将qt从5.4.1升级到5.4.2即可解决,查看我版本机中32位mock环境的qt版本,发现已经是5.7;

想起该工程的上一次gerrit提交jenkins可以正常编译通过的,包括64位和32架构的二进制包,对比两次提交的文件差异,发现这次提交增加了两个qt相关中间文件,
| ProductLicense.pro.user.82c30c7 |
.qmake.stash
去除这两个文件后32位mock编译正常,真正原因因时间所限制,后面空了再深究。
usr/include/c++/6.4.1/bits/stl_relops.:67: Parse error at "std"的更多相关文章
- /usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory
cc -DDEBUG -mtune=core2 -O2 \ -onvideo nvideo.c \ -I/usr/include/atk-1.0 \ -I/usr/include/cairo \ -I ...
- /usr/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
https://stackoverflow.com/questions/39111930/usr-include-boost-python-detail-wrap-python-hpp5023-fat ...
- [C++]Linux之头文件sys/types.h[/usr/include/sys]
1.查找<sys/types.h>文件 一般地,Linux的C头文件<sys/types.h>路径在如题的途径:/usr/include/sys下,然而博主[Linux For ...
- /usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’
/usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’/usr/include/linux/types.h:13: erro ...
- 解决Cannot find MySQL header files under /usr/include/mysql的错误
按照下面的步骤能成功,亲测.转帖,做笔记 编译php-5.5-6的mysql支持,出现Cannot find MySQL header files under /usr/include/mysql. ...
- 编译安装php Cannot find MySQL header files under /usr/include/mysql.
编译php-5.5-6的mysql支持,出现Cannot find MySQL header files under /usr/include/mysql. Note that the MySQL c ...
- error: /usr/include/objc/objc-class.h: No such file or directory
When i use the example of ShareKit package,i have come across this error:"error: /usr/include/o ...
- error: /usr/include/stdio.h: Permission denied 的一种情况分析
error: /usr/include/stdio.h: Permission denied 的一种情况分析 代码: #include <stdio.h> int main(){ prin ...
- Mac下一个/usr/include失踪
Mac升级到Yosemite后,突然发现vim的YouCompleteMe代码提示所以空头支票成员,排查了一下,原本/usr/include目录中缺少.所有的C/C++头文件不见了. .. 第一次发现 ...
随机推荐
- MySQL内连接,左(外)连接,右(外)连接
用两个表(a_table.b_table),关联字段a_table.a_id和b_table.b_id来演示一下MySQL的内连接.外连接( 左(外)连接.右(外)连接.全(外)连接). MySQL版 ...
- java 基础最全网站
http://www.runoob.com/java/java-tutorial.html
- iptables做端口转发
一.用iptables做本机端口转发 比如80端口转8080端口 代码如下: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT ...
- 使用jquery如何获取现在时间、并且格式化
参考网址:https://www.jb51.net/article/94626.html var now=new Date(); $("#total").html(formatTi ...
- vue 语法糖
el:element 需要获取的元素,一定是HTML中的根容器元素data:用于数据的存储methods:用于存储各种方法数据绑定字面量只加载一次{{* msg}}data里面可以进行简单的运算:me ...
- linus上运行jar包文件增删查
package com.osplat.util; import com.alibaba.fastjson.JSON; import com.osplat.bean.Resultmodel; impor ...
- Mysql 数据类型(基础5)
Mysql 常用的4种数据类型: 整型 int. 浮点型 double. 日期类型 datetime .字符型( varchar char text ) #创建一张表 mysql> create ...
- NIO简单理解
NIO:新IO,同步的非阻塞IO. 1.Java NIO 由以下几个核心部分组成:Channels(通道).Buffers(缓冲区).Selectors(选择器) Channels(通道) 1.所有的 ...
- Wasserstein距离
https://blog.csdn.net/leviopku/article/details/81388306 https://blog.csdn.net/nockinonheavensdoor/ar ...
- Markdown总结整理
今天朋友(SolskGare)向我普及了一个很方便的文本编辑语言Markdown,才意识到之前自己用鼠标一点一点的排版有多low,而且往往还是费力不讨好.今天我就整理一下Markdown的用法,真的是 ...