Bug 1074 - Build errors with gcc 3.3.5 and python 2.4.2
Build errors with gcc 3.3.5 and python 2.4.2
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
ns-3.10
All All
: P5 normal
Assigned To: Mathieu Lacage
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-16 18:15 UTC by Billy
Modified: 2011-08-10 13:18 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Billy 2011-03-16 18:15:03 UTC
First off, I apologize if I am filing this bug on the wrong section.  At the moment, I am trying to build the NS-3 by running the command:

./build.py

The build finished the configuration.  However, it reaches a point where I get an error message saying:

../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/attribute.cc:54:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/boolean.cc:66:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/integer.cc:26:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
In file included from ../src/core/attribute.h:25,
                 from ../src/core/uinteger.h:23,
                 from ../src/core/uinteger.cc:20:
../src/core/ptr.h:63: warning: all member functions in class `
   ns3::Ptr<T>::Tester' are private
In file included from ../src/core/object-base.h:23,
                 from ../src/core/object-base.cc:20:
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeAccessor>':
../src/core/type-id.h:302:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeAccessor>' is 
   implicitly friends with itself
In file included from ../src/core/attribute-list.h:26,
                 from ../src/core/attribute-list.cc:20:
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeAccessor>':
../src/core/type-id.h:302:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeAccessor>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeValue>':
../src/core/type-id.h:304:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeValue>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeValue>':
../src/core/type-id.h:304:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeValue>' is 
   implicitly friends with itself
In file included from ../src/core/type-id.cc:20:
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeAccessor>':
../src/core/type-id.h:302:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeAccessor>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/type-id.h:308:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/type-id.h:308:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeValue>':
../src/core/type-id.h:304:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeValue>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/type-id.h:308:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
../src/core/ptr.h:512: warning: `ns3::Ptr<T>::Tester' is implicitly a typename
../src/core/ptr.h:512: warning: implicit typename is deprecated, please see the 
   documentation for details
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/string.cc:5:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
In file included from ../src/core/object-base.h:23,
                 from ../src/core/object.h:29,
                 from ../src/core/pointer.h:24,
                 from ../src/core/pointer.cc:20:
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeAccessor>':
../src/core/type-id.h:302:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeAccessor>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeValue>':
../src/core/type-id.h:304:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeValue>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/type-id.h:308:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
In file included from ../src/core/pointer.h:24,
                 from ../src/core/pointer.cc:20:
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::Object>':
../src/core/object.h:95:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::Object>' is implicitly 
   friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/uinteger.cc:26:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
In file included from ../src/core/object-base.h:23,
                 from ../src/core/object.h:29,
                 from ../src/core/double.cc:21:
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeAccessor>':
../src/core/type-id.h:302:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeAccessor>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeValue>':
../src/core/type-id.h:304:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeValue>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/type-id.h:308:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::TraceSourceAccessor>':
../src/core/type-id.cc:88:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::TraceSourceAccessor>' 
   is implicitly friends with itself
In file included from ../src/core/double.cc:21:
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::Object>':
../src/core/object.h:95:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::Object>' is implicitly 
   friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::TraceSourceAccessor>':
../src/core/object-base.cc:301:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::TraceSourceAccessor>' 
   is implicitly friends with itself
In file included from debug/ns3/callback.h:24,
                 from ../src/core/command-line.h:27,
                 from ../src/core/command-line.cc:20:
debug/ns3/ptr.h:63: warning: all member functions in class `ns3::Ptr<T>::Tester
   ' are private
In file included from ../src/core/object.h:27,
                 from ../src/core/object.cc:22:
../src/core/ptr.h:63: warning: all member functions in class `
   ns3::Ptr<T>::Tester' are private
debug/ns3/ptr.h:512: warning: `ns3::Ptr<T>::Tester' is implicitly a typename
debug/ns3/ptr.h:512: warning: implicit typename is deprecated, please see the 
   documentation for details
../src/core/ptr.h:512: warning: `ns3::Ptr<T>::Tester' is implicitly a typename
../src/core/ptr.h:512: warning: implicit typename is deprecated, please see the 
   documentation for details
In file included from ../src/core/config.h:23,
                 from ../src/core/random-variable.cc:37:
../src/core/ptr.h:63: warning: all member functions in class `
   ns3::Ptr<T>::Tester' are private
../src/core/ptr.h:512: warning: `ns3::Ptr<T>::Tester' is implicitly a typename
../src/core/ptr.h:512: warning: implicit typename is deprecated, please see the 
   documentation for details
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/enum.cc:49:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
In file included from ../src/core/object-base.h:23,
                 from ../src/core/object.h:29,
                 from ../src/core/object.cc:22:
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeAccessor>':
../src/core/type-id.h:302:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeAccessor>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeValue>':
../src/core/type-id.h:304:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeValue>' is 
   implicitly friends with itself
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/type-id.h:308:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
In file included from ../src/core/object.cc:22:
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::Object>':
../src/core/object.h:95:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::Object>' is implicitly 
   friends with itself
In file included from ../src/core/object.cc:23:
../src/core/object-factory.h: In member function `ns3::Ptr<T> 
   ns3::ObjectFactory::Create() const':
../src/core/object-factory.h:111: error: parse error before `>' token
../src/core/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/random-variable.cc:176:   instantiated from here
../src/core/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
In file included from ../src/core/command-line.cc:23:
debug/ns3/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeChecker>':
../src/core/global-value.h:149:   instantiated from here
debug/ns3/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeChecker>' is 
   implicitly friends with itself
In file included from ../src/core/command-line.cc:24:
debug/ns3/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeAccessor>':
../src/core/type-id.h:302:   instantiated from here
debug/ns3/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeAccessor>' is 
   implicitly friends with itself
debug/ns3/ptr.h: In instantiation of `ns3::Ptr<const ns3::AttributeValue>':
../src/core/type-id.h:304:   instantiated from here
debug/ns3/ptr.h:63: error: class `ns3::Ptr<const ns3::AttributeValue>' is 
   implicitly friends with itself
../src/core/log.cc: In constructor `
   ns3::ParameterLogger::ParameterLogger(std::ostream&)':
../src/core/log.cc:381: error: no matching function for call to `
   std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const 
   <anonymous>**)'
/afs/rcf.mitre.org/lang/gcc/@sys/3.3.5/include/c++/3.3.5/iosfwd:64: error: candidates
   are: std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const 
   std::basic_ostream<char, std::char_traits<char> >&)
/afs/rcf.mitre.org/lang/gcc/@sys/3.3.5/include/c++/3.3.5/ostream:106: error:    
                std::basic_ostream<_CharT, 
   _Traits>::basic_ostream(std::basic_streambuf<_CharT, _Traits>*) [with _CharT 
   = char, _Traits = std::char_traits<char>]
../src/core/command-line.cc: In member function `void 
   ns3::CommandLine::AddValue(const std::string&, const std::string&, 
   ns3::Callback<bool, std::string, ns3::empty, ns3::empty, ns3::empty, 
   ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>)':
../src/core/command-line.cc:301: error: declaration of `clog' not in a 
   namespace surrounding `std'
../src/core/command-line.cc:301: error: no matching function for call to `
   ns3::ParameterLogger::ParameterLogger()'
../src/core/log.h:363: error: candidates are: 
   ns3::ParameterLogger::ParameterLogger(const ns3::ParameterLogger&)
../src/core/log.h:367: error:                 
   ns3::ParameterLogger::ParameterLogger(std::ostream&)
../src/core/command-line.cc:301: error: parse error before `<<' token
Waf: Leaving directory `/afs/rcf.mitre.org/project/NetworkSim/ns-allinone-3.10/ns-3.10/build'
Build failed:
 -> task failed (err #1): 
        {task: cxx attribute.cc -> attribute_1.o}
 -> task failed (err #1): 
        {task: cxx boolean.cc -> boolean_1.o}
 -> task failed (err #1): 
        {task: cxx rng-stream.cc -> rng-stream_1.o}
 -> task failed (err #1): 
        {task: cxx integer.cc -> integer_1.o}
 -> task failed (err #1): 
        {task: cxx pointer.cc -> pointer_1.o}
 -> task failed (err #1): 
        {task: cxx string.cc -> string_1.o}
 -> task failed (err #1): 
        {task: cxx uinteger.cc -> uinteger_1.o}
 -> task failed (err #1): 
        {task: cxx double.cc -> double_1.o}
 -> task failed (err #1): 
        {task: cxx object-base.cc -> object-base_1.o}
 -> task failed (err #1): 
        {task: cxx attribute-list.cc -> attribute-list_1.o}
 -> task failed (err #1): 
        {task: cxx type-id.cc -> type-id_1.o}
 -> task failed (err #1): 
        {task: cxx enum.cc -> enum_1.o}
 -> task failed (err #1): 
        {task: cxx log.cc -> log_1.o}
 -> task failed (err #1): 
        {task: cxx command-line.cc -> command-line_1.o}
 -> task failed (err #1): 
        {task: cxx random-variable.cc -> random-variable_1.o}
 -> task failed (err #1): 
        {task: cxx object.cc -> object_1.o}
Traceback (most recent call last):
  File "./build.py", line 121, in ?
    sys.exit(main(sys.argv))
  File "./build.py", line 112, in main
    build_ns3(config)
  File "./build.py", line 60, in build_ns3
    run_command(["python", "waf"])
  File "/afs/rcf.mitre.org/project/NetworkSim/ns-allinone-3.10/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

Any idea for fixing this problem?

Thanks!
Comment 1 Billy 2011-03-17 18:20:18 UTC
Update:

I upgraded my g++ to 4.1.2, and I got a lot further on the compilation.  Now the error that I am seeing is this:

Waf: Leaving directory `/afs/rcf.mitre.org/project/NetworkSim/ns-allinone-3.10/ns-3.10/build'
Build failed:
 -> task failed (err #1): 
        {task: cxx ns3module_helpers.cc -> ns3module_helpers_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_flame.cc -> ns3_module_flame_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_dot11s.cc -> ns3_module_dot11s_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_mpi.cc -> ns3_module_mpi_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_mobility.cc -> ns3_module_mobility_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_point_to_point.cc -> ns3_module_point_to_point_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_aodv.cc -> ns3_module_aodv_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_bulk_send.cc -> ns3_module_bulk_send_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_packet_sink.cc -> ns3_module_packet_sink_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_nix_vector_routing.cc -> ns3_module_nix_vector_routing_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_v4ping.cc -> ns3_module_v4ping_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_csma.cc -> ns3_module_csma_3.o}
 -> task failed (err #1): 
        {task: cxx ns3module.cc -> ns3module_3.o}
 -> task failed (err #1): 
        {task: cxx ns3_module_wimax.cc -> ns3_module_wimax_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_spectrum.cc -> ns3_module_spectrum_3.o}
Traceback (most recent call last):
  File "./build.py", line 121, in ?
    sys.exit(main(sys.argv))
  File "./build.py", line 112, in main
    build_ns3(config)
  File "./build.py", line 60, in build_ns3
    run_command(["python", "waf"])
  File "/afs/rcf.mitre.org/project/NetworkSim/ns-allinone-3.10/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

Am I missing a file?  Any help would be greatly appreciated.

Thanks,
Billy
Comment 2 Tom Henderson 2011-08-09 16:05:59 UTC
are we supporting gcc-3.3.5? (have we ever?)

Should investigate or mark as wontfix.
Comment 3 Mathieu Lacage 2011-08-10 13:18:36 UTC
gcc 3.3 is not supported.