|
Bugzilla – Full Text Bug Listing |
| Summary: | ./waf crashes on FC10 | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Nicola Baldo <nicola> |
| Component: | build system | Assignee: | Vedran Miletić <vedran> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs, tomh, tommaso.pecorella, vedran |
| Priority: | P5 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Possible fix | ||
|
Description
Nicola Baldo
2013-05-13 10:36:50 UTC
I've found that the problem is solved by updating waf-tools/boost.py to a more recent version which I found here: https://code.google.com/p/waf/source/browse/waflib/extras/boost.py?r=95449949a237133e8651a2e3fc3fa9e671e86608 Is this bug still valid ? T. yes, I just tested with changeset: 9919:5596934962c2 and the bug is still there I can take a look at this if someone can provide me SSH to FC10 machine. I think it's worth checking if changing the boost.py fixes the issue (and if it doesn't bring issues to other OSes). Unfortunately I don't have a FC10 available. Maybe there's one on Jenkins. T. I actually wonder if this is a result of our modifications, since we took latest boost.py with waf upgrade. Unfortunately I can't give you ssh access to the FC10 machine I am using. However I can test other versions of boost.py if you wish. Vedran is right, it is one of our modifications to that file.
If you check the differences between the "original" boost.py and "our" boost.py, the error message pints to one of our additions.
for cxxflags in (['/MD', '/EHsc'], []):
self.env.stash()
self.env["CXXFLAGS_%s" % var] += cxxflags
try:
try_link()
self.end_msg("ok: winning cxxflags combination: %s" % (self.env["CXXFLAGS_%s" % var]))
e = None
break
except Errors.ConfigurationError as exc:
self.env.revert()
e = exc
And from this point on, I'll leave it to whoever knows something about Python. For me it's more or less like reading Chinese.
This might be relevant... http://www.gossamer-threads.com/lists/python/python/785327 It seems that "as" might cause errors on older Pythons. Aaaaand: - building on a Fedora Core 10 (gcc 4.3.2, python 2.5.2) It seems that the correct syntax is: except Exception, exc: No idea if this syntax will do the work and will work as intended on newer Pythons as well. Created attachment 1627 [details]
Possible fix
Try this one please.
it works on the FC10 machine!! (In reply to comment #11) > it works on the FC10 machine!! Good, can we check if it works on other systems as well ? On MacOSX (10.8) it works. T. works also on ubuntu 12.04 64bit and 10.04 32bit Fixed in changeset: 9920:e90d966ba939 |