build.py problems

561 views
Skip to first unread message

Johnny

unread,
Feb 14, 2011, 8:13:24 AM2/14/11
to ns-3-users
Hello everybody,
I am new to Cygwin and NS3. I am running Windows 7 with the latest
version of Cygwin and NS3 version ns3.10. I have Cygwin and NS3
installed but when I try to run build.py, I get the following error
message:

$ ./build.py
# Build NSC
Entering directory `nsc-0.5.2'
=> python scons.py linux-2.6.18
0 [main] python 5392 C:\cygwin\bin\python.exe: *** fatal error -
unable to
remap \\?\C:\cygwin\lib\python2.6\lib-dynload\select.dll to same
address as par
ent: 0x2F0000 != 0x360000
Stack trace:
Frame Function Args
0028A628 6102749B (0028A628, 00000000, 00000000, 00000000)
0028A918 6102749B (61177B80, 00008000, 00000000, 61179977)
0028B948 61004AFB (611A136C, 6123F7D4, 002F0000, 00360000)
End of stack trace
0 [main] python 8172 fork: child 5392 - died waiting for dll
loading, errn
o 11
Traceback (most recent call last):
File "./build.py", line 121, in <module>
sys.exit(main(sys.argv))
File "./build.py", line 97, in main
build_nsc()
File "./build.py", line 16, in build_nsc
run_command(['python', 'scons.py', kernels])
File "/home/john/ns3/ns-3.10/util.py", line 21, in run_command
cmd = subprocess.Popen(*args, **kwargs)
$
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1049, in
_execute_child
self.pid = os.fork()
OSError:[Errno 11] Resource temporarily unavailable


I have search the web for solutions and found some suggestions to run
rebaseall as fix. I have no success. I have tried the following
sequences of commands but did not fix my problem.

C:\> cd cygwin\bin

$ /usr/bin/ rebaseall

/ur/lib/cygicudata.dll; skipped because nonexistent
/ur/lib/cygicuil8n.dll; skipped because nonexistent
/ur/lib/cygicuio.dll; skipped because nonexistent
/ur/lib/cygicule.dll; skipped because nonexistent
/ur/lib/cygiculex.dll; skipped because nonexistent
/ur/lib/cygicutu.dll; skipped because nonexistent
/ur/lib/cygicuuc.dll; skipped because nonexistent
FixImage (/usr/x86_64-w64-mingw32/sys-root/mingw/bin/
libgcc_s_sjlj-1.dll) failed
With las error = 13



After I ran rebaseall, I tried to run build.py and got the original
problem as explained above.


Any help would be appreciated.

Thanks,
Johnny

Tom Henderson

unread,
Feb 14, 2011, 9:19:10 AM2/14/11
to ns-3-...@googlegroups.com

It seems that build.py is not properly detecting that you are on a
Windows machine. It should disable the build of nsc since nsc is not
supported on Windows (it is an optional ns-3 component).

This snippet of build.py is supposed to detect the platform; I'm not
sure why, though, because I thought that win32 would catch both 32- and
64-bit Windows:

elif sys.platform in ['darwin', 'win32']:
print "# Skip NSC (platform not supported)"

As a workaround, you can pass the "--disable-nsc" option to build.py and
it will skip it. I am not sure whether you will next hit this issue
with recent Cygwin:
http://www.nsnam.org/wiki/index.php/Troubleshooting#Cygwin

If you can figure out a more robust way for us to detect your platform,
let me know. Also, I am curious whether you will get past the above
issue in the wiki; if so, can you let me know what version of Cygwin works?

- Tom

Johnny

unread,
Feb 14, 2011, 9:05:03 PM2/14/11
to ns-3-users
Thanks Tom,

I attempted to disable the NSC with the following sequence of commands
and it return a list of commands and options and an error at the end.

~/ns-allione-3.10/ns-3.10
$./waf configure --disable-nsc

waf [command] [options]

.
.
.
.

waf: error: no such option: --disable-nsc


I am new to Cygwnin and not sure if this is the right directory to
disable NSC.

Any help would be appreciated.

Thanks,
Johnny



> - Tom- Hide quoted text -
>
> - Show quoted text -

Tom Henderson

unread,
Feb 14, 2011, 11:12:28 PM2/14/11
to ns-3-...@googlegroups.com
On Mon, 14 Feb 2011 18:05:03 -0800 (PST), Johnny <jarr...@gmail.com>
wrote:

> Thanks Tom,
>
> I attempted to disable the NSC with the following sequence of commands
> and it return a list of commands and options and an error at the end.
>
> ~/ns-allione-3.10/ns-3.10
> $./waf configure --disable-nsc
>
> waf [command] [options]
>
> .
> .
> .
> .
>
> waf: error: no such option: --disable-nsc
>
>
> I am new to Cygwnin and not sure if this is the right directory to
> disable NSC.
>
> Any help would be appreciated.
>
> Thanks,
> Johnny
>
>

Try passing the --disable-nsc to build.py instead. Or, if you are in the
ns-3.10 directory, you should just be able to try "./waf --configure" and
if NSC has not been built, waf should pick it up.

build.py is a separate python program in the ns-allinone-3.10 directory
that builds ns-3 as well as other optional components such as NSC. waf is
the build framework for ns-3.10 itself.

- Tom

Johnny

unread,
Feb 15, 2011, 7:06:23 AM2/15/11
to ns-3-users
Thanks Tom,

I passed --disable-nsc to build.py and it appears to have disabled the
NSC, but it looks like I have additional problems. The following is
the results:


$ ./build.py
# Skip NSC (by user request)
# Build NSC NS-3
Entering directory ‘./ns-3.10’
Note: configuring ns-3 without NSC
=> python waf configure –with-pybindgen ../pybindgen-0.15.0
Checking for pgrogram gcc or cc : /usr/bin/gcc
0 [main] python 696 C:\cygwin\bin\python.exe: *** fatal error -
unable to
remap \\?\C:\cygwin\lib\python2.6\lib-dynload\functools.dll to same
address as
parent: 0x2F0000 != 0x360000
Stack trace:
Frame Function Args
0028A628 6102749B (00289168, 00000000, 00000000, 00000000)
0028A918 6102749B (61177B80, 00008000, 00000000, 61179977)
0028B948 61004AFB (611A136C, 61240954, 00320000, 00360000)
End of stack trace
0 [main] python 3292 fork: child 696 - died waiting for dll
loading, errno
11
/home/john/ns-allinone-3.10/ns-3.10/wscript:217: error: could not
configure a c
compiler!

Traceback (most recent call last):
File "./build.py", line 121, in <module>
sys.exit(main(sys.argv))
File "./build.py", line 112, in main
build_nsc(config)
File "./build.py", line 59, in build_ns3
run_command([cmd])
File "/home/john/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’, ‘configure’, ‘—with-
pybindgen’, u’
../pybindgen-0.15.0’] exited with code 1


I do not know what is the problem. Any help would be appreciated.

Thanks,
Johnny



On Feb 14, 11:12 pm, Tom Henderson <t...@tomh.org> wrote:
> On Mon, 14 Feb 2011 18:05:03 -0800 (PST), Johnny <jarra...@gmail.com>

Johnny

unread,
Feb 16, 2011, 9:26:34 AM2/16/11
to ns-3-users
Does any one know what might be the problem?
> > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages