Hi, I had the same issues.
I fixed it by hard coding env['GCC']=True and commenting some lines
out:
#env['GCC'] = False
env['GCC']=True
env['SUNCC'] = False
env['ICC'] = False
#env['GCC'] = subprocess.Popen(env['CXX'] + ' --version', shell=True,
# stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
# close_fds=True).communicate()[0].find('GCC') >= 0
#env['SUNCC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True,
# stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
# close_fds=True).communicate()[0].find('Sun C++') >= 0
#env['ICC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True,
# stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
# close_fds=True).communicate()[0].find('Intel') >= 0
if env['GCC'] + env['SUNCC'] + env['ICC'] > 1:
print 'Error: How can we have two at the same time?'
Exit(1)
However, I still have issues while compiling:
Checking for C header file Python.h... no
Error: can't find Python.h header in /usr/include/python2.6
Weird enough the file Python.h is located in /usr/include/python2.6,
so this shouldn't be a problem.
Skipping this error, leads me into a third error:
Checking for C library python2.6... no
Error: can't find Python library python2.6
Any ideas?
Thanks!
On Feb 17, 6:42 am, Jiayuan Meng <
meng.jiay...@gmail.com> wrote:
> Hi Kapil,
>
> That seems to be a problem with scon. Can you try to locate where the error
> message is printed and assign the scons variable to the gcc compiler you
> installed? I'm sure there is such a variable in scons.
>
> Jiayuan
>