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++头文件不见了. .. 第一次发现 ...
随机推荐
- EF 踩过的坑
ef + mysql-8.0.12-winx64 这个版本的mysql,当一个类为树型结构,会迁移报错. 数据迁移提示:No connection string named 'TaoBaoEntiti ...
- 吴裕雄 16-MySQL UNION 操作符
描述MySQL UNION 操作符用于连接两个以上的 SELECT 语句的结果组合到一个结果集合中.多个 SELECT 语句会删除重复的数据. 语法MySQL UNION 操作符语法格式:SELECT ...
- idea中maven中jdk版本的选择(转)
转自:https://www.cnblogs.com/joshul/p/6222398.html IntelliJ IDEA中Maven项目的默认JDK版本 在IntelliJ IDEA 15中使 ...
- python错题整理
1.列表list去重 l1 = [1,1,2,3,5,5,4,4,4,5,6] set1 = set(l1) # print(set1) # set是集合 l2 = list(set1) # 将集合转 ...
- spring注解之@Lazy
今天主要从以下几方面来介绍一下@Lazy注解 @Lazy注解是什么 @Lazy注解怎么使用 1,@Lazy注解是什么 @Lazy注解用于标识bean是否需要延迟加载,源码如下: @Target({ ...
- 数据库类型空间效率探索(三)-char
测试环境 表信息 表数据量22.23万,占用空间44.494M 用到的sql语句 增加列:alter table t_type add column new_column char(1) defaul ...
- 155. Min Stack (stack)
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. pu ...
- Python+Selenium学习--操作测试对象
场景 前面已经讲解了如果定位对象,定位之后需要对这个对象进行操作.是鼠标点击还是键盘输入,取决于我们定位的对象缩支持的操作. webdriver中比较常用的操作元素的方法有下面几个: clear ...
- 在linux 中启动anaconda
anaconda-navigator $ source ~/anaconda3/bin/activate root ###在bin 目录下打开终端 敲 ./activate root $ a ...
- Django import相关
from django.shortcuts import render,redirect from django.contrib.auth import authenticate,logout,log ...