You are not logged in.

#1 2017-07-29 18:19:26

jethronsun7
Member
Registered: 2016-04-29
Posts: 44
Website

[SOLVED] Compiling errors from ns3, should I file a bug report?

Hi,

I just adopt the ns3 AUR package and am trying to fix it and then upgrade the version. A problem I encountered is that the compiling failed and I saw something about file a bug report. Should I go ahead and do it let the upstream take care of it or dig into it a little more? The last part of the log goes:

# =====================================================

'configure' finished successfully (5.691s)
 =>  /usr/bin/python2 waf build --progress
Waf: Entering directory `/home/vagrant/workspace/ns3/src/ns-allinone-3.25/ns-3.25/build'
[ 924/1916][48%][\][===================================================================================================>                                                                                                             ][38.626s]{standard input}: Assembler messages:
{standard input}:3370: Warning: end of file not at end of a line; newline inserted
{standard input}:4122: Error: no such instruction: `cal'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <[url]https://bugs.archlinux.org/[/url]> for instructions.

[924/924][100%][|][===============================================================================================================================================================================================================>][2m33.083s]
Waf: Leaving directory `/home/vagrant/workspace/ns3/src/ns-allinone-3.25/ns-3.25/build'
Build failed
 -> task in 'ns3-wifi' failed (exit status 4): 
	{task 139762032091984: cxx mac-low.cc -> mac-low.cc.1.o}
['/usr/bin/g++', '-march=x86-64', '-mtune=generic', '-O2', '-pipe', '-fstack-protector-strong', '-fno-plt', '-fPIC', '-pthread', '-D_FORTIFY_SOURCE=2', '-I.', '-I..', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DDL=1', '-DXML2=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '../src/wifi/model/mac-low.cc', '-c', '-o', '/home/vagrant/workspace/ns3/src/ns-allinone-3.25/ns-3.25/build/src/wifi/model/mac-low.cc.1.o']
Traceback (most recent call last):
  File "./build.py", line 171, in <module>
    sys.exit(main(sys.argv))
  File "./build.py", line 162, in main
    build_ns3(config, build_examples, build_tests, args, build_options)
  File "./build.py", line 82, in build_ns3
    run_command([sys.executable, "waf", "build"] + build_options)
  File "/home/vagrant/workspace/ns3/src/ns-allinone-3.25/util.py", line 25, in run_command
    raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python2', 'waf', 'build', '--progress'] exited with code 1
==> ERROR: A failure occurred in build().
    Aborting...

It happened to the old version ns3 too. The new PKGBUILD I am working on goes: https://github.com/shwsun/pkgbuilds/blo … 3/PKGBUILD
Note that pygoocanvas is breaking thus to build it you will need https://raw.githubusercontent.com/dnut/ … s/PKGBUILD


Any thoughts?

Last edited by jethronsun7 (2017-07-31 19:16:50)

Offline

#2 2017-07-29 18:37:17

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] Compiling errors from ns3, should I file a bug report?

Please use code tags for terminal output. It helps with readability. Thanks. smile


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2017-07-29 22:03:41

jethronsun7
Member
Registered: 2016-04-29
Posts: 44
Website

Re: [SOLVED] Compiling errors from ns3, should I file a bug report?

Did it. thank you for the advice

Offline

#4 2017-07-30 02:56:15

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: [SOLVED] Compiling errors from ns3, should I file a bug report?

It failto build in a clean chroot too?


Well, I suppose that this is somekind of signature, no?

Offline

#5 2017-07-30 03:28:42

jethronsun7
Member
Registered: 2016-04-29
Posts: 44
Website

Re: [SOLVED] Compiling errors from ns3, should I file a bug report?

Yes, the current the ns3 is breaking and I am simply trying to fix it.

Offline

#6 2017-07-30 15:02:59

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: [SOLVED] Compiling errors from ns3, should I file a bug report?

Those look like the kind of errors you get when running a python3 program with python2 .

The AUR ns3 package has version 3.25-1 , but ns3 3.26 was released on oct 2016 .\

Are you trying to build ns3 3.26 ?
If so, please post your WIP PKGBUILD .
If not, is there a good reason to stay with 3.25 ?

Added
Regardless of version, check the upstrem provided waf.

Last edited by Lone_Wolf (2017-07-30 15:06:30)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2017-07-31 19:16:15

jethronsun7
Member
Registered: 2016-04-29
Posts: 44
Website

Re: [SOLVED] Compiling errors from ns3, should I file a bug report?

Hi all,

Thanks for all your advice. I figured out that the error is because ns3 requires at least 2G memory o/w it will throw these compiling error msgs. I have published the newest version, you can take a look if interested:
https://aur.archlinux.org/packages/ns3/

I am glad that I dont have to file a bug report and bug those developers smile

Last edited by jethronsun7 (2017-07-31 19:17:30)

Offline

#8 2017-08-01 13:27:11

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: [SOLVED] Compiling errors from ns3, should I file a bug report?

The PKGBUILD has some weird stuff :

It looks like there are several build processes that run in prepare() function , openflow + click + brite + nsc .
Makes me wonder if those shouldn't be separate packages .

The dependencies .
cmake, cvs and bzr don't look like they're used.
Are unzip and 7zip really needed for ns3 ?
gdb and valgrind are usually meant for debugging / troubleshooting . I'd more expect them as makedepends and optdepends .
boost and boost-libs : usually boost is makedepend, boost-libs normal depend.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB