You are not logged in.

#1 2011-07-10 22:16:36

longname
Member
Registered: 2011-07-10
Posts: 2

./waf configure failing on "Add options(opt): opt.load('compiler_c')"

The subject says it all. I've tried to build two different python2 programs out of subversion today. Both failed in this manner. Two hours of googling turned up no results that really added up conclusively. I'm stumped.

Offline

#2 2011-07-10 22:27:14

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: ./waf configure failing on "Add options(opt): opt.load('compiler_c')"

No, the subject doesn't it all. Posting the whole error with context, would. If I had to take a guess, I'd say you haven't installed the 'base-devel' group.

Offline

#3 2011-07-10 23:04:16

longname
Member
Registered: 2011-07-10
Posts: 2

Re: ./waf configure failing on "Add options(opt): opt.load('compiler_c')"

Sorry, I had to run and wanted to get the post in quickly before I left.

Python2 version is 2 2.7.2-2.

I figured I was missing some link between python and gcc at first too. There is little regular error output, which is making it tougher than usual. I presume it's an outdated package or wrong version of something at the source of things... I did an -syu, but I have subversion locked at 1.6.17-4, db 5.1.25-1, raptor 1.4.21-2, rasqal 0.9.21-1 and redland 1.0.12-6 (newest versions aren't playing well with ardour3). Most of those are still fairly recent. Anyways, here is what seems like the most relevent chunk of debug output (which I probably should have been looking over 2 hours ago):


Jalv Configuration
import waflib.Tools # directory /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools
import waflib.Tools # from /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/__init__.py
# wrote /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/__init__.pyc
import waflib.Tools.compiler_c # from /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/compiler_c.py
# wrote /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/compiler_c.pyc
import waflib.Tools.ccroot # from /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/ccroot.py
# wrote /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/ccroot.pyc
import waflib.Tools.c_aliases # from /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/c_aliases.py
# wrote /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/c_aliases.pyc
import waflib.Tools.c_preproc # from /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/c_preproc.py
# wrote /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/c_preproc.pyc
import waflib.Tools.c_config # from /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/c_config.py
# wrote /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/c_config.pyc
import waflib.Tools.c_osx # from /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/c_osx.py
# wrote /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/c_osx.pyc
# /usr/lib/python2.7/platform.pyc has bad mtime
import platform # from /usr/lib/python2.7/platform.py
# can't create /usr/lib/python2.7/platform.pyc
import waflib.Tools.c_tests # from /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/c_tests.py
# wrote /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/.waf-1.6.6-158eec7a0749a003782d4a9a502e3d08/waflib/Tools/c_tests.pyc
Add options(opt): opt.load('compiler_c')
(complete log in /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/build/config.log)
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] _bisect


... and so on. There's a whole lot of "*.pyc has bad mtime" output before that.

The log says very little:


# project jalv (0.0.0) configured on Sun Jul 10 18:52:16 2011 by
# waf 1.6.6 (abi 98, python 20702f0 on linux2)
# using waf configure --prefix=/usr --mandir=/usr/share/man
#
----------------------------------------
Setting top to
/tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build
----------------------------------------
Setting out to
/tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build/build
from /tmp/yaourt-tmp-yt/aur-jalv/src/jalv-build: Add options(opt): opt.load('compiler_c')

I double checked the presence of base-devel to make sure I'm not being *that* stupid.

Offline

#4 2011-07-11 00:43:49

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: ./waf configure failing on "Add options(opt): opt.load('compiler_c')"

It's an upstream bug in the wscript. Literally, you need to add opt.load('compiler_c') within 'def options(opt):'

I get an error after that about a missing header. I'd say you should be talking to upstream about this...

Offline

Board footer

Powered by FluxBB