Comments (14)
4.1.2-4.7.2都测试过没问题。
ubuntu 10.04带的什么版本的gcc?什么错误信息?
在 2013年5月12日下午9:35,XuJian [email protected]写道:
三丰兄:
就我自己的使用情况来看,目前的blade只支持高版本gcc,如gcc4.7,我用ubuntu10.04自带的gcc是无法成功变异的,我升级到ubuntu12.04后,就顺利编译成功了,ubuntu12.04默认是gcc4.7或者接近的版本(具体我记不太清了),如果能在readme中说明一下支持的gcc版本,就容易理解多了,否则大家使用的时候总是碰到各种各样的编译错误。
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31
.
from blade-build.
在百度的gcc 3.4.5上也顺利运行起来了。
在 2013年5月12日下午9:52,Chen Feng [email protected]写道:
4.1.2-4.7.2都测试过没问题。
ubuntu 10.04带的什么版本的gcc?什么错误信息?在 2013年5月12日下午9:35,XuJian [email protected]写道:
三丰兄:
就我自己的使用情况来看,目前的blade只支持高版本gcc,如gcc4.7,我用ubuntu10.04自带的gcc是无法成功变异的,我升级到ubuntu12.04后,就顺利编译成功了,ubuntu12.04默认是gcc4.7或者接近的版本(具体我记不太清了),如果能在readme中说明一下支持的gcc版本,就容易理解多了,否则大家使用的时候总是碰到各种各样的编译错误。
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31
.
from blade-build.
下面是我目前gcc4.2.1编译遇到的错误,回头我把ubuntu10.04的贴给你。但是用ubuntu12.04就完全没有问题。
In file included from /usr/include/c++/4.2.1/locale:47,
from /usr/include/c++/4.2.1/bits/ostream.tcc:47,
from /usr/include/c++/4.2.1/ostream:636,
from /usr/include/c++/4.2.1/iostream:46,
from common/common.cpp:3:
/usr/include/c++/4.2.1/bits/locale_facets.tcc: In member function '_InIter std::money_get<_CharT, _InIter>::_M_extract(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, std::string&) const':
/usr/include/c++/4.2.1/bits/locale_facets.tcc:1388: error: suggest a space before ';' or explicit braces around empty body in 'for' statement
/usr/include/c++/4.2.1/bits/locale_facets.tcc:1469: error: suggest a space before ';' or explicit braces around empty body in 'for' statement
/usr/include/c++/4.2.1/bits/locale_facets.tcc:1481: error: suggest a space before ';' or explicit braces around empty body in 'for' statement
from blade-build.
安装g++4.8之后,就完全正常了。
Blade(info): Auto upgrade success: Skipped '/Users/xujian/Work/typhoon-blade-master'
Blade(info): ccache found
Blade(info): distcc found
Blade(warning): DISTCC_HOSTS not set but you have distcc installed, will just build locally
Blade(info): loading BUILDs...
Blade(info): loading done.
Blade(info): analyzing dependency graph...
Blade(info): analyzing done.
Blade(info): generating build rules...
Blade(warning): common is not under version control
Blade(info): CPP=cpp
Blade(info): CC=gcc
Blade(info): CXX=g++
Blade(info): LD=g++
Blade(info): generating done.
Blade(info): tunes the parallel jobs number(-j N) to be 8
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build64_release
Compiling common/common.cpp
version information updated
Creating Static Library build64_release/common/libcommon.a
Ranlib Library build64_release/common/libcommon.a
scons: done building targets.
from blade-build.
/usr/include/c++/4.2.1/bits/locale_facets.tcc
发来瞧瞧?
2013/5/12 XuJian [email protected]
安装g++4.8之后,就完全正常了。
Blade(info): Auto upgrade success: Skipped
'/Users/xujian/Work/typhoon-blade-master'
Blade(info): ccache found
Blade(info): distcc found
Blade(warning): DISTCC_HOSTS not set but you have distcc installed, will
just build locally
Blade(info): loading BUILDs...
Blade(info): loading done.
Blade(info): analyzing dependency graph...
Blade(info): analyzing done.
Blade(info): generating build rules...
Blade(warning): common is not under version control
Blade(info): CPP=cpp
Blade(info): CC=gcc
Blade(info): CXX=g++
Blade(info): LD=g++
Blade(info): generating done.
Blade(info): tunes the parallel jobs number(-j N) to be 8
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build64_release
Compiling common/common.cpp
version information updated
Creating Static Library build64_release/common/libcommon.a
Ranlib Library build64_release/common/libcommon.a
scons: done building targets.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-17779170
.
from blade-build.
文件已使用邮件发至你gmail邮箱,请查收
from blade-build.
收到,谢谢
2013/5/13 XuJian [email protected]
文件已使用邮件发至你gmail邮箱,请查收
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-17780442
.
from blade-build.
哦,补充一下,我的这个gcc是使用command line tools for xcode 添加的,不知道跟这个是否有关系,apple的软件一向另类.....
from blade-build.
明白了,这是gcc 4.2的bug造成的,Blade开启了空语句的警告
"-Werror=empty-body",
用来检测
if (x == 0);
printf("x");
这样的可能是因为写错的代码。
locale_facets.tcc里恰好有这样的代码,虽然文件开头本来是有#pragma GCC
system_header能抑制警告的,但是由于gcc的bug,没有抑制住。
修改方式:
修改blade目录下的blade.conf,把这个警告去掉即可。
其他版本都没有发现这个问题。
2013/5/13 Chen Feng [email protected]
收到,谢谢
2013/5/13 XuJian [email protected]
文件已使用邮件发至你gmail邮箱,请查收
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-17780442
.
from blade-build.
I am a bug detector......
from blade-build.
原来是mac,我同事提过类似的问题
http://cxwangyi.github.io/2013/02/22/use-blade-with-mac-os-x/
对mac的正式支持后面会引入,目前确实还不够完善,欢迎fork+pull。
在 2013年5月13日上午12:27,Chen Feng [email protected]写道:
明白了,这是gcc 4.2的bug造成的,Blade开启了空语句的警告
"-Werror=empty-body",
用来检测
if (x == 0);
printf("x");
这样的可能是因为写错的代码。
locale_facets.tcc里恰好有这样的代码,虽然文件开头本来是有#pragma GCC
system_header能抑制警告的,但是由于gcc的bug,没有抑制住。
修改方式:
修改blade目录下的blade.conf,把这个警告去掉即可。
其他版本都没有发现这个问题。2013/5/13 Chen Feng [email protected]
收到,谢谢
2013/5/13 XuJian [email protected]
文件已使用邮件发至你gmail邮箱,请查收
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-17780442
.
from blade-build.
Thanks for report.
from blade-build.
不客气,希望有机会fork and pull
from blade-build.
//hand
2013/5/13 XuJian [email protected]
不客气,希望有机会fork and pull
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-17780678
.
from blade-build.
Related Issues (20)
- support build in sandbox for different system from local's
- C++
- 请问Blade是否支持类似cmake的add_subdirectory功能?
- Support ISPC
- 采用blade编译protobuf出错 HOT 1
- Support export-symbols-regex and export-symbols on link stage
- Support windows platform
- Support proto_plugin
- 请问一下应该怎样使用blade的install辅助功能,有没有代码示例呢 HOT 1
- Support doctest as test library
- Build Mac app
- 目前支持C++17 编译吗 HOT 2
- blade支持自己创建新的rule吗? HOT 1
- 怎么清理原来的编译文件,重新编译呢 HOT 1
- inclusion check will still be triggered in a second blade build HOT 2
- Add compare_version function
- Support sanitizers
- Using ar/link wrapper to check inclusion correctness.
- 用blade build编译时的默认并发度可以在BLADE_ROOT文件里面设置吗? HOT 1
- Generate separated debug file during linking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blade-build.