Error when running from scratch

66 views
Skip to first unread message

Asayel A

unread,
Feb 10, 2019, 11:02:13 AM2/10/19
to ns-3-users
Greetings,
I get the following error when I run from scratch, any idea how to fix it?
n@n-VirtualBox:~/workplace/ns-allinone-3.26/ns-3.26$ ./waf --run scratch/scratch-simulator
Waf: Entering directory `/home/norah/workplace/ns-allinone-3.26/ns-3.26/build/optimized'
[ 891/1773] Compiling src/wifi/helper/athstats-helper.cc
[ 930/1773] Compiling src/wave/model/bsm-application.cc
[ 936/1773] Compiling src/uan/helper/acoustic-modem-energy-model-helper.cc
[ 943/1773] Compiling src/uan/model/uan-noise-model-default.cc
[ 960/1773] Compiling src/stats/model/gnuplot.cc
[ 972/1773] Compiling src/spectrum/model/spectrum-model-300kHz-300GHz-log.cc
[ 989/1773] Compiling src/nix-vector-routing/helper/ipv4-nix-vector-helper.cc
[1015/1773] Compiling src/network/model/socket.cc
[1016/1773] Compiling src/network/model/packet-metadata.cc
[1023/1773] Compiling src/mpi/model/remote-channel-bundle-manager.cc
[1024/1773] Compiling src/mpi/model/null-message-mpi-interface.cc
In file included from /usr/lib/openmpi/include/mpi.h:253:0,
                 from ../../src/mpi/model/parallel-communication-interface.h:34,
                 from ../../src/mpi/model/null-message-mpi-interface.h:25,
                 from ../../src/mpi/model/null-message-mpi-interface.cc:22:
/usr/lib/openmpi/include/mpi_portable_platform.h:374:34: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
              _STRINGIFY(__GNUC__)"."_STRINGIFY(__GNUC_MINOR__)"."_STRINGIFY(__GNUC_PATCHLEVEL__)
                                  ^
/usr/lib/openmpi/include/mpi_portable_platform.h:374:63: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
              _STRINGIFY(__GNUC__)"."_STRINGIFY(__GNUC_MINOR__)"."_STRINGIFY(__GNUC_PATCHLEVEL__)
                                                               ^
cc1plus: all warnings being treated as errors

Waf: Leaving directory `/home/norah/workplace/ns-allinone-3.26/ns-3.26/build/optimized'
Build failed
 -> task in 'ns3-mpi' failed (exit status 1): 
{task 140189664264336: cxx null-message-mpi-interface.cc -> null-message-mpi-interface.cc.1.o}
['/usr/bin/g++', '-O3', '-g', '-Wall', '-Werror', '-march=native', '-fstrict-overflow', '-Wstrict-overflow=2', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-pthread', '-I.', '-I../..', '-I/usr/lib/openmpi/include', '-I/usr/lib/openmpi/include/openmpi', '-DNS3_BUILD_PROFILE_OPTIMIZED', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_MPI=1', '-DNS3_OPENMPI', '-DNS3_MPI', '../../src/mpi/model/null-message-mpi-interface.cc', '-c', '-o', '/home/norah/workplace/ns-allinone-3.26/ns-3.26/build/optimized/src/mpi/model/null-message-mpi-interface.cc.1.o']

Ns3 lover

unread,
Feb 11, 2019, 10:12:03 AM2/11/19
to ns-3-...@googlegroups.com
the problem it is not related to scratch , as I think you have problem in your code related to something about the mpi that u have used in your code

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

pdbarnes

unread,
Feb 12, 2019, 11:11:22 PM2/12/19
to ns-3-users
Actually it is a problem in the distributed simulator (mpi) module in ns-3. Thanks for reporting it.

Could you please say what compiler and version you are using?

Thanks,
Peter
(I’m the mpi module maintainer)

Asayel A

unread,
Mar 22, 2019, 6:38:35 PM3/22/19
to ns-3-users
I'm running waf for ns-3.26 in ubuntu 14.04 VM, for my VM it's gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
Reply all
Reply to author
Forward
0 new messages