latest ns3 build faling

94 views
Skip to first unread message

Mr.Carra

unread,
Sep 9, 2009, 7:00:39 AM9/9/09
to ns-3-users
Hi, I got latest ns3 from mercury, but now it can not build...
running
->./waf configure
Checking for program g++ : ok /usr/bin/g++
Checking for program cpp : ok /usr/bin/cpp
Checking for program ar : ok /usr/bin/ar
Checking for program ranlib : ok /usr/bin/ranlib
Checking for g++ : ok
Checking for program pkg-config : ok /usr/bin/pkg-config
Checking for regression reference traces : ok ../ns-3-dev-ref-traces
(guessed)
Checking for -Wno-error=deprecated-declarations support : no
Checking for -Wl,--soname=foo support : yes
Checking for header stdlib.h : ok
Checking for header signal.h : ok
Checking for header pthread.h : ok
Checking for high precision time implementation : 128-bit
integer
Checking for header stdint.h : ok
Checking for header inttypes.h : ok
Checking for header sys/inttypes.h : not found
Checking for library rt : ok
Checking for header netpacket/packet.h : ok
Checking for pkg-config flags for GSL : ok
Checking for header linux/if_tun.h : ok
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
Package 'cairo', required by 'Pango Cairo', not found
Checking for pkg-config flags for GTK_CONFIG_STORE : not found
Checking for pkg-config flags for LIBXML2 : ok
Checking for library sqlite3 : ok
Checking for NSC location : ok ../nsc
(guessed)
Checking for library dl : ok
Checking for NSC supported architecture x86_64 : ok
Checking for program python : ok /usr/
local/bin/python
Checking for Python version >= 2.3 : ok 2.4.3
Checking for library python2.4 : ok
Checking for program python2.4-config : not found
Checking for program python-config-2.4 : not found
Checking for header Python.h : ok
Checking for -fvisibility=hidden support : yes
Checking for pybindgen location : ok ../
pybindgen (guessed)
Checking for Python module pybindgen : ok
Checking for pybindgen version : ok
0.11.0.697
Checking for Python module pygccxml : ok
Checking for pygccxml version : ok 1.0.0
Checking for program gccxml : ok /usr/
local/bin/gccxml
Checking for gccxml version : ok 0.9.0
Checking for program sudo : ok /usr/bin/
sudo
Checking for program hg : ok /usr/bin/
hg
Checking for program valgrind : ok /usr/bin/
valgrind
---- Summary of optional NS-3 features:
Threading Primitives : enabled
Real Time Simulator : enabled
Emulated Net Device : enabled
GNU Scientific Library (GSL) : enabled
Tap Bridge : enabled
GtkConfigStore : not enabled (library 'gtk+-2.0 >=
2.12' not found)
XmlIo : enabled
SQlite stats data output : enabled
Network Simulation Cradle : enabled
Python Bindings : enabled
Python API Scanning Support : enabled
Use sudo to set suid bit : not enabled (option --enable-sudo not
selected)
Static build : not enabled (option --enable-static
not selected)

and ./waf chech
running ./waf check from ns-3-dev generates:
Waf: Leaving directory `/home/lauril/ns3/repos/ns-3-allinone/ns-3-dev/
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_csma.cc -> ns3_module_csma_3.o}
-> task failed (err #1):
{task: cxx ns3_module_onoff.cc -> ns3_module_onoff_3.o}
-> task failed (err #1):
{task: cxx ns3_module_udp_echo.cc -> ns3_module_udp_echo_3.o}
-> task failed (err #1):
{task: cxx ns3_module_simulator.cc -> ns3_module_simulator_3.o}
-> task failed (err #1):
{task: cxx ns3_module_internet_stack.cc ->
ns3_module_internet_stack_3.o}
-> task failed (err #1):
{task: cxx ns3_module_list_routing.cc -> ns3_module_list_routing_3.o}

running ./build from ns-3-allinone
besides countless varnings, fails

Waf: Leaving directory `/home/lauril/ns3/repos/ns-3-allinone/ns-3-dev/
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_udp_echo.cc -> ns3_module_udp_echo_3.o}
-> task failed (err #1):
{task: cxx ns3_module_csma.cc -> ns3_module_csma_3.o}
-> task failed (err #1):
{task: cxx ns3_module_onoff.cc -> ns3_module_onoff_3.o}
-> task failed (err #1):
{task: cxx ns3_module_simulator.cc -> ns3_module_simulator_3.o}
-> task failed (err #1):
{task: cxx ns3_module_list_routing.cc -> ns3_module_list_routing_3.o}
-> task failed (err #1):
{task: cxx ns3_module_internet_stack.cc ->
ns3_module_internet_stack_3.o}
Traceback (most recent call last):
File "./build.py", line 117, in ?
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/lauril/ns3/repos/ns-3-allinone/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 sugestions?

Gustavo Carneiro

unread,
Sep 9, 2009, 7:10:54 AM9/9/09
to ns-3-...@googlegroups.com
You say " besides countless varnings, fails".  But it is precisely those countless warnings that you should report to us (if too many, at least include as attachment) in order to fix the problem...


2009/9/9 Mr.Carra <laurynas...@gmail.com>



--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert

Mr.Carra

unread,
Sep 9, 2009, 7:24:06 AM9/9/09
to ns-3-users
I tryed to capture output with
./build.log but non of the varnings ended up in the file

On 9 Sep, 13:10, Gustavo Carneiro <gjcarne...@gmail.com> wrote:
> You say " besides countless varnings, fails".  But it is precisely those
> countless warnings that you should report to us (if too many, at least
> include as attachment) in order to fix the problem...
>
> 2009/9/9 Mr.Carra <laurynas.rilis...@gmail.com>

Mr.Carra

unread,
Sep 9, 2009, 7:26:35 AM9/9/09
to ns-3-users
At least some of warnings:
http://pastebin.com/m43b65dc2

Gustavo Carneiro

unread,
Sep 9, 2009, 7:34:16 AM9/9/09
to ns-3-...@googlegroups.com
As noted here, one possible ([2]) culprit could be a compiler patch specific to redhat and gcc 4.1.1.  Any chance you could use a different compiler version and see if it solves the issue?

2009/9/9 Mr.Carra <laurynas...@gmail.com>

Mr.Carra

unread,
Sep 9, 2009, 8:06:16 AM9/9/09
to ns-3-users
can report that this issue is centos related.
I have successfully build ns-3 on ubuntu.
Reply all
Reply to author
Forward
0 new messages