Comment #2 on issue 897 by [email protected]: Can't select
/opt/csw/gcc4/bin/g{cc,++} as the compiler in the presence of /usr/bin/cc
http://code.google.com/p/v8/issues/detail?id=897
vitalyr, thanks for the response. I tried it; passing CC and CXX solves
some other problems, but not this particular one. In this case, the
problem seems to be the GuessToolchain() function, which looks into
the 'TOOLS' component of the object returned by the Environment()
function. I don't know yet what mechanism Environment() uses, but it seems
to be hard to tell it which paths to scan for compilers. Here's how I
tried it:
mac...@testing10x [testing10x]:~/src/v8/build-solaris >
CC=/opt/csw/gcc4/bin/gcc CXX=CC=/opt/csw/gcc4/bin/g++ \
RANLIB=/opt/csw/gcc4/bin/ranlib \
LD=/opt/csw/bin/gld \
AR=/opt/csw/bin/gar \
scons -Y .. visibility=default library=shared
scons: Reading SConscript files ...
TypeError: cannot concatenate 'str' and 'NoneType' objects:
File "/home/maciej/src/v8/SConstruct", line 671:
'help': 'the toolchain to use (' + TOOLCHAIN_GUESS + ')'
It seems to me that the information about /opt/csw/gcc4/bin/gcc must be
somehow passed to the Environment() calls in SConstruct. Am I right?
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev