Giter VIP home page Giter VIP logo

Comments (14)

chen3feng avatar chen3feng commented on August 25, 2024

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.

chen3feng avatar chen3feng commented on August 25, 2024

在百度的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.

xujianjlu avatar xujianjlu commented on August 25, 2024

下面是我目前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.

xujianjlu avatar xujianjlu commented on August 25, 2024

安装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.

chen3feng avatar chen3feng commented on August 25, 2024

/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.

xujianjlu avatar xujianjlu commented on August 25, 2024

文件已使用邮件发至你gmail邮箱,请查收

from blade-build.

chen3feng avatar chen3feng commented on August 25, 2024

收到,谢谢

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.

xujianjlu avatar xujianjlu commented on August 25, 2024

哦,补充一下,我的这个gcc是使用command line tools for xcode 添加的,不知道跟这个是否有关系,apple的软件一向另类.....

from blade-build.

chen3feng avatar chen3feng commented on August 25, 2024

明白了,这是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.

xujianjlu avatar xujianjlu commented on August 25, 2024

I am a bug detector......

from blade-build.

chen3feng avatar chen3feng commented on August 25, 2024

原来是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.

chen3feng avatar chen3feng commented on August 25, 2024

Thanks for report.

from blade-build.

xujianjlu avatar xujianjlu commented on August 25, 2024

不客气,希望有机会fork and pull

from blade-build.

chen3feng avatar chen3feng commented on August 25, 2024

//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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.