Bug 688 - ns-3.5.1 build problem
ns-3.5.1 build problem
Status: RESOLVED WONTFIX
Product: ns-3
Classification: Unclassified
Component: build system
pre-release
Other Linux
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-23 12:20 UTC by Jamil Shihab
Modified: 2009-09-25 07:34 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jamil Shihab 2009-09-23 12:20:21 UTC
Hello,

I am having build problems with NS-3 version 3.5.1. I did not use Mercurial to download and did not put the allinone folder in a repos folder. I instead created an ns3 folder and unzipped the tar file into it.

I then ran /.build.py in the allinone folder and it was compiling well for quite a while. Much later the build exited with the error below.

Any suggestion on how I could resolve this issue?

I am using a Fedora machine.

Thanks,
Jamil


, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>]’ to match its type
Waf: Leaving directory `/home/jshihab1/ns3/ns-allinone-3.5.1/ns-3.5.1/build'
Build failed
 -> task failed (err #1):
        {task: cxx ns3module.cc -> ns3module_3.o}
 -> task failed (err #1):
        {task: cxx ns3module_helpers.cc -> ns3module_helpers_3.o}
 -> task failed (err #1):
        {task: cxx ns3_module_stats.cc -> ns3_module_stats_3.o}
 -> task failed (err #1):
        {task: cxx ns3_module_node.cc -> ns3_module_node_3.o}
Traceback (most recent call last):
  File "./build.py", line 117, in <module>
    sys.exit(main(sys.argv))
  File "./build.py", line 108, in main
    build_ns3(config)
  File "./build.py", line 56, in build_ns3
    run_command(["python", "waf"])
  File "/home/jshihab1/ns3/ns-allinone-3.5.1/util.py", line 24, in run_command
    raise CommandError("Command %r exited with code %i" % (argv, retval))


util.CommandError: Command ['python', 'waf'] exited with code 1
bash-3.2$
Comment 1 Jamil Shihab 2009-09-23 12:21:34 UTC
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:493:   instantiated from ‘std::list<_Tp, _Alloc>::list(const std::list<_Tp, _Alloc>&) [with _Tp = ns3::Callback<void, ns3::Ptr<const ns3::Packet>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>, _Alloc = std::allocator<ns3::Callback<void, ns3::Ptr<const ns3::Packet>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> >]’
debug/ns3/traced-callback.h:44:   instantiated from here
debug/ns3/ptr.h:69: warning: lowering visibility of ‘U* ns3::GetPointer(const ns3::Ptr<U>&) [with U = U, T = ns3::CallbackImpl<void, ns3::Ptr<const ns3::Packet>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>]’ to match its type
debug/ns3/ptr.h:71: warning: lowering visibility of ‘U* ns3::PeekPointer(const ns3::Ptr<U>&) [with U = U, T = ns3::CallbackImpl<void, ns3::Ptr<const ns3::Packet>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>]’ to match its type
Waf: Leaving directory `/home/jshihab1/ns3/ns-allinone-3.5.1/ns-3.5.1/build'
Build failed
 -> task failed (err #1):
Comment 2 Gustavo J. A. M. Carneiro 2009-09-25 07:34:37 UTC
This is a bug in the patched GCC found in some Fedora versions.  Try a different compiler version (hint: you can use the CXX environment variable to switch to a different compiler).  See also: http://groups.google.com/group/ns-3-users/msg/8397ec195c80e01a