
Hi, I migrated from my old Celeron to a virtual machine (KVM) on AMD64 (but the VM is 32 bit). I checked out the Yhc repo, but cannot even start building because of strange error scons reports: ============================= [dima@dmgdevel yhc]$ scons core=1 prefix=/home2/dima/install/ build scons: Reading SConscript files ... Building version 0.7.0-20070712053136-custom. Checking for architecture... x86 Checking for operating system... linux2 Checking for Subversion binary... "svn" Checking for Subversion version... Found version 1.4.4. Checking for GHC binary... "ghc" Checking for GHC version 6.4.1 or later... Found version 6.6.1. Checking for C header file gmp.h... yes Checking for mpz_t integ; mpz_init (integ) in C library gmp... yes Checking for libgmp version... 4.2.1 scons: *** File "/home2/dima/repos/yhc/build/configure.py", line 109, in configure ============================= The file with problem (build/configure.py): 108 def configure(env, Configure, args): 109 conf = Configure(env, checks) 110 111 if not conf.CheckPythonVersion(env): 112 print "Error. Python 2.3 or later must be used to compile Yhc" Looks like that Configure is a pointer to some function passed as a parameter . If I try to get some debug information from scons, I get (only debug=includes gave me something) ============================= [dima@dmgdevel yhc]$ scons --debug=includes core=1 prefix=/home2/dima/install/ build scons: Reading SConscript files ... Building version 0.7.0-20070712053136-custom. Checking for architecture... x86 Checking for operating system... linux2 Checking for Subversion binary... "svn" Checking for Subversion version... Found version 1.4.4. Checking for GHC binary... "ghc" Checking for GHC version 6.4.1 or later... Found version 6.6.1. Checking for C header file gmp.h... yes Checking for mpz_t integ; mpz_init (integ) in C library gmp... TypeError: 'NoneType' object is not callable: File "Sconstruct", line 84: gmp_configure(env, Configure, ARGUMENTS) File "/home2/dima/repos/yhc/build/configure.py", line 95: if not conf.CheckLibWithHeader("gmp", "gmp.h", "C", "mpz_t integ; mpz_init (integ);", 0): File "/home2/dima/install/lib/scons/SCons/SConf.py", line 354: ret = apply(self.test, (context,) + args, kw) File "/home2/dima/install/lib/scons/SCons/SConf.py", line 750: call = call, language = language, autoadd = autoadd) File "/home2/dima/install/lib/scons/SCons/Conftest.py", line 387: ret = context.BuildProg(text, suffix) File "/home2/dima/install/lib/scons/SCons/SConf.py", line 599: res = self.TryBuild(self.env.Program, text, ext) File "/home2/dima/install/lib/scons/SCons/SConf.py", line 573: return apply(self.sconf.TryBuild, args, kw) File "/home2/dima/install/lib/scons/SCons/SConf.py", line 279: ret = self.BuildNodes(nodesToBeBuilt) File "/home2/dima/install/lib/scons/SCons/SConf.py", line 229: jobs.run() File "/home2/dima/install/lib/scons/SCons/Job.py", line 67: self.job.start() File "/home2/dima/install/lib/scons/SCons/Job.py", line 120: task.executed() File "/home2/dima/install/lib/scons/SCons/Script/__init__.py", line 146: tree = t.render_include_tree() File "/home2/dima/install/lib/scons/SCons/Node/__init__.py", line 795: return SCons.Util.render_tree(s, f, 1) File "/home2/dima/install/lib/scons/SCons/Util.py", line 932: children = child_func(root) File "/home2/dima/install/lib/scons/SCons/Node/__init__.py", line 794: return node.get_found_includes(env, scanner, target) File "/home2/dima/install/lib/scons/SCons/Node/FS.py", line 1504: includes = scanner(self, env, path) File "/home2/dima/install/lib/scons/SCons/Scanner/__init__.py", line 216: return self.select(node)(node, env, path) ============================= Any ideas what this could be? This occurred with both most recent scons (0.97) and Python (2.5.1), and after I downgraded to scons 0.96.1 and Python 2.4.4c1 (these worked fine on my old Celeron) I don't believe there are any issues based on the fact that this is VM: I was able to compile ghc 6.6.1 from sources (several hours), and there were no problems (except that gcc 4.2.1 did not work, I used gcc-3.3, but this is a known issue related to gcc itself). The VM runs (output from uname -a) Linux dmgdevel 2.6.22-rc5-ARCH #1 SMP PREEMPT Sun Jun 24 11:12:27 CEST 2007 i686 QEMU Virtual CPU version 0.9.0 AuthenticAMD GNU/Linux libc 2.6 Thanks. -- Dimitry Golubovsky Anywhere on the Web