奇怪的 scons v8 编译问题
我使用 fedora 15,这是我尝试运行 scons 时得到的结果:
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o obj/release/accessors.o -c -fno-rtti -fno-exceptions -fvisibility=hidden -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -DENABLE_DEBUGGER_SUPPORT -Isrc src/accessors.cc
scons: *** [obj/release/accessors.o] Error 127
scons: building terminated because of errors.
如果我尝试运行 g++ 命令,它不会出现任何警告,并且会生成 .o 文件。
奇怪的是它在另一台装有 fedora 15 的计算机上运行。
有什么帮助吗?谢谢。
PS:scons -v:
SCons by Steven Knight et al.:
script: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine path: ['/usr/lib/scons/SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation
I use fedora 15, here is what i get when i try to run scons :
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o obj/release/accessors.o -c -fno-rtti -fno-exceptions -fvisibility=hidden -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -DENABLE_DEBUGGER_SUPPORT -Isrc src/accessors.cc
scons: *** [obj/release/accessors.o] Error 127
scons: building terminated because of errors.
If i try to run the g++ command, it works w/out any warning and the .o file is generated.
What's weird is that it's working on another computer w/ fedora 15.
Any help? Thanks.
PS : scons -v :
SCons by Steven Knight et al.:
script: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine path: ['/usr/lib/scons/SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查 SConscript 中的 $PATH 变量。
错误 127 意味着您的构建器(此处为 scons)无法找到所需的可执行文件 (g++)。
如果您的 PATH 正常,请查看是否可以手动设置 g++ 完整路径。
Check your $PATH variable in the SConscript.
Error 127 means that your builder (scons, here) has not been able to locate a required executable (g++).
If your PATH is OK, see if you can set manually the g++ full path.