Bugzilla – Bug 308
build fails on i386 machine unless python disabled
Last modified: 2008-09-05 11:55:21 UTC
machine: ns-old.ee.washington.edu (i386 Linux), python 2.4.3 (unfortunately, can't access this machine or a machine that can fetch pybindgen from my current location, so I can't give more detailed error log at this time) ./waf configure --python-disable works on this machine
ns-old:~/hg/ns-3-dev$ ./waf Entering directory `/home/tomh/hg/ns-3-dev/build' [211/532] command-output: bindings/python/ns3modulegen.py build/debug/bindings/python/everything.h bindings/python/ns3modulegen_generated.py bindings/python/ns3modulegen_core_customizations.py bindings/python/ns3_module_node.py bindings/python/ns3_module_bridge.py bindings/python/ns3_module_csma.py bindings/python/ns3_module_simulator.py bindings/python/ns3_module_mobility.py bindings/python/ns3_module_olsr.py bindings/python/ns3_module_packet_sink.py bindings/python/ns3_module_wifi.py bindings/python/ns3_module_onoff.py bindings/python/ns3_module_stats.py bindings/python/ns3_module_global_routing.py bindings/python/ns3_module_internet_stack.py bindings/python/ns3_module_udp_echo.py bindings/python/ns3_module_contrib.py bindings/python/ns3_module_common.py bindings/python/ns3_module_helper.py bindings/python/ns3_module_core.py bindings/python/ns3_module_point_to_point.py -> build/debug/bindings/python/ns3module.cc build/debug/bindings/python/ns3modulegen.log build/debug/bindings/python/ns3module.h build/debug/bindings/python/ns3_module_node.cc build/debug/bindings/python/ns3_module_bridge.cc build/debug/bindings/python/ns3_module_csma.cc build/debug/bindings/python/ns3_module_simulator.cc build/debug/bindings/python/ns3_module_mobility.cc build/debug/bindings/python/ns3_module_olsr.cc build/debug/bindings/python/ns3_module_packet_sink.cc build/debug/bindings/python/ns3_module_wifi.cc build/debug/bindings/python/ns3_module_onoff.cc build/debug/bindings/python/ns3_module_stats.cc build/debug/bindings/python/ns3_module_global_routing.cc build/debug/bindings/python/ns3_module_internet_stack.cc build/debug/bindings/python/ns3_module_udp_echo.cc build/debug/bindings/python/ns3_module_contrib.cc build/debug/bindings/python/ns3_module_common.cc build/debug/bindings/python/ns3_module_helper.cc build/debug/bindings/python/ns3_module_core.cc build/debug/bindings/python/ns3_module_point_to_point.cc Build failed -> task failed (err #1): [bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3module.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3modulegen.log, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3module.h, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_node.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_bridge.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_csma.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_simulator.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_mobility.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_olsr.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_packet_sink.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_wifi.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_onoff.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_stats.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_global_routing.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_internet_stack.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_udp_echo.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_contrib.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_common.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_helper.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_core.cc, bld:///home/tomh/hg/ns-3-dev/bindings/python/ns3_module_point_to_point.cc]
I suspect this "build fails with Python 2.4", because I am having such a problem: cc1plus: warnings being treated as errors debug/bindings/python/ns3_module_core.cc:1096: warning: deprecated conversion from string constant to ‘char*’ debug/bindings/python/ns3_module_core.cc:1306: warning: deprecated conversion from string constant to ‘char*’ debug/bindings/python/ns3_module_core.cc:1602: warning: deprecated conversion from string constant to ‘char*’ debug/bindings/python/ns3_module_core.cc:1756: warning: deprecated conversion from string constant to ‘char*’ [...] Should be easy to fix in PyBindGen, now that I know what Python version to test...
(In reply to comment #2) > I suspect this "build fails with Python 2.4", because I am having such a > problem: > cc1plus: warnings being treated as errors > debug/bindings/python/ns3_module_core.cc:1096: warning: deprecated conversion > from string constant to ‘char*’ > debug/bindings/python/ns3_module_core.cc:1306: warning: deprecated conversion > from string constant to ‘char*’ > debug/bindings/python/ns3_module_core.cc:1602: warning: deprecated conversion > from string constant to ‘char*’ > debug/bindings/python/ns3_module_core.cc:1756: warning: deprecated conversion > from string constant to ‘char*’ > [...] > > Should be easy to fix in PyBindGen, now that I know what Python version to > test... > This should be fixed now. If it's the same bug as what is being reported here, then we can close.
OK, now should _really_ be fixed. I tested on ns-old.ee.washington.edu, thanks to Tom giving me access. It was a bug in Python itself (deepcopy), crazy as it sounds, so I just worked around it.