5G LENA INSTALLATION

706 views
Skip to first unread message

Akanksha k

unread,
Oct 28, 2020, 8:02:01 AM10/28/20
to 5G-LENA-users
I am trying to do 5G LENA installation by following instructions provided in https://gitlab.com/cttc-lena/nr but after cloning the repo inside my ns-3-dev and doing ./waf..I'm getting the following error...Also if I do a git pull nsnam master as given in instruction..im getting permission denied

Kindly help..thanks in advance

$%^&*:~/Desktop/ns-3-dev$ ./waf
Waf: Entering directory `/home/lte/Desktop/ns-3-dev/build'
In file included from /usr/include/c++/7/complex.h:36:0,
                 from ./ns3/three-gpp-spectrum-propagation-loss-model.h:26,
                 from ./ns3/nr-helper.h:31,
                 from ../src/nr/test/nr-system-test-configurations.cc:21:
./ns3/attribute-container-accessor-helper.h:52:79: error: expected ‘>’ before ‘(’ token
 template <typename V, typename T, template <typename...> class U, typename ...I,
                                                                               ^
./ns3/attribute-container-accessor-helper.h:56:28: error: unable to find numeric literal operator ‘operator""iF’
 DoMakeAccessorHelperOne (U<I...> T::*memberContainer)
                            ^
./ns3/attribute-container-accessor-helper.h:56:28: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
In file included from ./ns3/core-module.h:16:0,
                 from ../src/nr/test/nr-system-test-configurations.cc:23:
./ns3/attribute-container-accessor-helper.h:56:29: error: expected parameter pack before ‘...’
 DoMakeAccessorHelperOne (U<I...> T::*memberContainer)
                             ^~~
./ns3/attribute-container-accessor-helper.h:56:32: error: template argument 1 is invalid
 DoMakeAccessorHelperOne (U<I...> T::*memberContainer)
                                ^
In file included from /usr/include/c++/7/complex.h:36:0,
                 from ./ns3/three-gpp-spectrum-propagation-loss-model.h:26,
                 from ./ns3/nr-helper.h:31,
                 from ../src/nr/test/nr-system-test-configurations.cc:21:
./ns3/attribute-container-accessor-helper.h: In function ‘ns3::Ptr<const ns3::AttributeAccessor> ns3::DoMakeAccessorHelperOne(int T::*)’:
./ns3/attribute-container-accessor-helper.h:66:24: error: unable to find numeric literal operator ‘operator""iF’
     MemberContainer (U<I...> T::*memberContainer)
                        ^
./ns3/attribute-container-accessor-helper.h:66:24: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
In file included from ./ns3/core-module.h:16:0,
                 from ../src/nr/test/nr-system-test-configurations.cc:23:
./ns3/attribute-container-accessor-helper.h:66:25: error: expected parameter pack before ‘...’
     MemberContainer (U<I...> T::*memberContainer)
                         ^~~
./ns3/attribute-container-accessor-helper.h:66:28: error: template argument 1 is invalid
     MemberContainer (U<I...> T::*memberContainer)
                            ^
In file included from /usr/include/c++/7/complex.h:36:0,
                 from ./ns3/three-gpp-spectrum-propagation-loss-model.h:26,
                 from ./ns3/nr-helper.h:31,
                 from ../src/nr/test/nr-system-test-configurations.cc:21:
./ns3/attribute-container-accessor-helper.h:94:7: error: unable to find numeric literal operator ‘operator""iF’
     U<I...> T::*m_memberContainer;  // Address of the class data member.
       ^
./ns3/attribute-container-accessor-helper.h:94:7: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
In file included from ./ns3/core-module.h:16:0,
                 from ../src/nr/test/nr-system-test-configurations.cc:23:
./ns3/attribute-container-accessor-helper.h:94:8: error: expected parameter pack before ‘...’
     U<I...> T::*m_memberContainer;  // Address of the class data member.
        ^~~
./ns3/attribute-container-accessor-helper.h:94:11: error: template argument 1 is invalid
     U<I...> T::*m_memberContainer;  // Address of the class data member.
           ^

Waf: Leaving directory `/home/lte/Desktop/ns-3-dev/build'
Build failed
 -> task in 'ns3-nr-test' failed with exit status 1 (run with -v to display more information)

Tom Henderson

unread,
Oct 28, 2020, 1:01:35 PM10/28/20
to Akanksha k, 5G-LENA-users
On 10/28/20 5:02 AM, Akanksha k wrote:
> I am trying to do 5G LENA installation by following instructions
> provided in https://gitlab.com/cttc-lena/nr but after cloning the repo
> inside my ns-3-dev and doing ./waf..I'm getting the following
> error...Also if I do a git pull nsnam master as given in instruction..im
> getting permission denied
>
> Kindly help..thanks in advance

If you are doing a fresh installation, please do not follow the
instructions under 'Switching from CTTC-provided ns-3-dev' but instead
follow 'Brand new installation of ns-3-dev repository'.

Regarding the compilation error, what version of g++ are you using?
What is the output of 'g++ -v'?

- Tom
> --
> You received this message because you are subscribed to the Google
> Groups "5G-LENA-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to 5g-lena-user...@googlegroups.com
> <mailto:5g-lena-user...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/5g-lena-users/eabc32d9-e4b3-4868-a6c0-715b5d72a411n%40googlegroups.com
> <https://groups.google.com/d/msgid/5g-lena-users/eabc32d9-e4b3-4868-a6c0-715b5d72a411n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Biljana Bojovic

unread,
Oct 28, 2020, 1:45:12 PM10/28/20
to Tom Henderson, Akanksha k, 5G-LENA-users
Thanks a lot, Tom for helping out with this. We have detected the commit in ns-3-dev that causes this error to appear when building nr module. We have figured out that in some files in nr we had double header inclusion and that this was triggering to happen this build error. But the real reason how this commit in ns-3-dev/core makes this happen, we dont understand.  So, since attribute-container-accessor-helper is added to ns-3-dev we notice this issue. It was added to ns-3-dev I think on 20th of September.

Akanksha, we will try to push tomorrow this changeset that avoids this issue to appear. I will let you know.

Best regards,
Biljana


To unsubscribe from this group and stop receiving emails from it, send an email to 5g-lena-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/5g-lena-users/7a4832cb-7af3-42ad-58ae-208a59d4a3df%40tomh.org.

Biljana B.

unread,
Oct 28, 2020, 1:53:10 PM10/28/20
to 5G-LENA-users
Hi Akanksha, 

I just got an input from Zoraze that we should check first if you are on the correct branch.  You should use the latest official nr release branch, so this one:  https://gitlab.com/cttc-lena/nr/-/commits/5g-lena-v1.0.y

If the build problem with that branch persists, please let me know.

Best regards,
Biljana

Akanksha k

unread,
Oct 29, 2020, 1:01:43 AM10/29/20
to 5G-LENA-users
Hi Tom,
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

Akanksha k

unread,
Oct 29, 2020, 3:06:25 AM10/29/20
to 5G-LENA-users
I tried cloning the nr.git branch you mentioned and I'm still getting the same errors.

In file included from /usr/include/c++/7/complex.h:36:0,
                 from ./ns3/three-gpp-spectrum-propagation-loss-model.h:26,
                 from ./ns3/nr-helper.h:31,
                 from ../src/nr/test/nr-test-numerology-delay.cc:20:

./ns3/attribute-container-accessor-helper.h:52:79: error: expected ‘>’ before ‘(’ token
 template <typename V, typename T, template <typename...> class U, typename ...I,
                                                                               ^
./ns3/attribute-container-accessor-helper.h:56:28: error: unable to find numeric literal operator ‘operator""iF’
 DoMakeAccessorHelperOne (U<I...> T::*memberContainer)
                            ^
./ns3/attribute-container-accessor-helper.h:56:28: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
In file included from ./ns3/core-module.h:16:0,
                 from ../src/nr/test/nr-test-numerology-delay.cc:22:

./ns3/attribute-container-accessor-helper.h:56:29: error: expected parameter pack before ‘...’
 DoMakeAccessorHelperOne (U<I...> T::*memberContainer)
                             ^~~
./ns3/attribute-container-accessor-helper.h:56:32: error: template argument 1 is invalid
 DoMakeAccessorHelperOne (U<I...> T::*memberContainer)
                                ^
In file included from /usr/include/c++/7/complex.h:36:0,
                 from ./ns3/three-gpp-spectrum-propagation-loss-model.h:26,
                 from ./ns3/nr-helper.h:31,
                 from ../src/nr/test/nr-test-numerology-delay.cc:20:

./ns3/attribute-container-accessor-helper.h: In function ‘ns3::Ptr<const ns3::AttributeAccessor> ns3::DoMakeAccessorHelperOne(int T::*)’:
./ns3/attribute-container-accessor-helper.h:66:24: error: unable to find numeric literal operator ‘operator""iF’
     MemberContainer (U<I...> T::*memberContainer)
                        ^
./ns3/attribute-container-accessor-helper.h:66:24: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
In file included from ./ns3/core-module.h:16:0,
                 from ../src/nr/test/nr-test-numerology-delay.cc:22:

./ns3/attribute-container-accessor-helper.h:66:25: error: expected parameter pack before ‘...’
     MemberContainer (U<I...> T::*memberContainer)
                         ^~~
./ns3/attribute-container-accessor-helper.h:66:28: error: template argument 1 is invalid
     MemberContainer (U<I...> T::*memberContainer)
                            ^
In file included from /usr/include/c++/7/complex.h:36:0,
                 from ./ns3/three-gpp-spectrum-propagation-loss-model.h:26,
                 from ./ns3/nr-helper.h:31,
                 from ../src/nr/test/nr-test-numerology-delay.cc:20:

./ns3/attribute-container-accessor-helper.h:94:7: error: unable to find numeric literal operator ‘operator""iF’
     U<I...> T::*m_memberContainer;  // Address of the class data member.
       ^
./ns3/attribute-container-accessor-helper.h:94:7: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
In file included from ./ns3/core-module.h:16:0,
                 from ../src/nr/test/nr-test-numerology-delay.cc:22:

./ns3/attribute-container-accessor-helper.h:94:8: error: expected parameter pack before ‘...’
     U<I...> T::*m_memberContainer;  // Address of the class data member.
        ^~~
./ns3/attribute-container-accessor-helper.h:94:11: error: template argument 1 is invalid
     U<I...> T::*m_memberContainer;  // Address of the class data member.
           ^

Waf: Leaving directory `/home/lte/ns-3-dev/build'

Build failed
 -> task in 'ns3-nr-test' failed with exit status 1 (run with -v to display more information)

Zoraze Ali

unread,
Oct 29, 2020, 4:35:11 AM10/29/20
to 5G-LENA-users
Hi Akanksha, 
I am using the same version of GCC as you, and I am able to build it successfully. I hope, in your last post by cloning you meant switching the branch. Once you clone nr repo in "contrib" directory you just need to do: 
cd contrib/nr
git checkout 5g-lena-v1.0.y
cd ../../
./waf clean
./waf configure --enable-tests --enable-examples
If you are still unable to build by following the above steps, please with your next post attach the output of the following command run under nr directory:
git branch -a

Kind regards,
Zoraze

Madan Pande

unread,
Oct 29, 2020, 6:31:34 AM10/29/20
to Akanksha k, Tom Henderson, Biljana Bojović, 5G-LENA-users

Akansha, 

                 I had done exactly what Biljana suggested, get the distro as a fresh ns-3-dev installation as supplied by CTTC  with git clone , then cd to src/ and then git clone the nr...at this stage you will have to give the username/password for the gitlab you have. I had no installation issues on either ubuntu 18.04 or 20.04, and I use g++-9.3.0/gcc-9.3.0, llvm and clang also are installed in my computers, but I personally prefer to use waf...with no issues...

2. I have compiled and run the test routines using ./test.py without any problems on both OS 18.04 LTS and 20.04 LTS, with g++-9.3, I could also run 5GNR distro with mpi...with some of the example codes of NR too...

3. IMHO, as for permission denied, usually it is a case of having used 1) different unames at diiferent stages, 2) the key-ring issue (one can just do away with key-ring prompts...). You could even try "chown -R uname:uname" at the top level of your work dir giving the uname as the one you will use...

I hope this helps...

With Regards,

madan

==================================================

To unsubscribe from this group and stop receiving emails from it, send an email to 5g-lena-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/5g-lena-users/42762980-fe8f-4aec-acf0-2789389a9cc9n%40googlegroups.com.
Message has been deleted

Akanksha k

unread,
Oct 31, 2020, 11:46:32 AM10/31/20
to 5G-LENA-users
Iam getting errors while doing .waf as you mentioned and also attatched is the git branch -a as you asked. Screenshot (33).pngScreenshot (35).png 

Akanksha k

unread,
Oct 31, 2020, 11:50:38 AM10/31/20
to 5G-LENA-users
I'm getting following error in ./waf. Did you get any errors like this?


Screenshot (33).png

Madan Pande

unread,
Nov 1, 2020, 4:25:15 AM11/1/20
to 5g-len...@googlegroups.com

Akanksha,

                    Yes, this error shows a  missing resource...or a PATH error in finding it (the resource being the sqlite file included)...

2. Did you use the installation Wicki for NS3 or not before you started compiling?  Please check against that document for the installation there for  the OS

you are using...

3. If necessary install sqlite and change the #include declaration instead of the default your screenshot shows...so that the compiler can find the file...

I got over it with the above steps...

I hope it helps you too...

Regards,

MP

============

Petri Väisänen

unread,
Jan 28, 2021, 6:52:43 AM1/28/21
to 5G-LENA-users
Hi,

I'm also making new installation of the NR module [https://gitlab.com/cttc-lena/nr] and getting the same error at VMWare Player 15 and Ubuntu 20.04 LTS:

[2879/3184] Compiling contrib/nr/examples/lena-lte-comparison/slot-output-stats.cc
In file included from ../contrib/nr/examples/lena-lte-comparison/slot-output-stats.cc:19:
../contrib/nr/examples/lena-lte-comparison/slot-output-stats.h:25:10: fatal error: ns3/sqlite-output.h: No such file or directory
   25 | #include <ns3/sqlite-output.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Waf: Leaving directory `/home/peva/work/workspace/ns-3-allinone/ns-3-dev/build'
Build failed
 -> task in 'lena-lte-comparison-user' failed with exit status 1 (run with -v to display more information)

I have installed sqlite with '$ sudo apt-get install sqlite sqlite3 libsqlite3-dev'. What to you mean by "3. If necessary install sqlite and change the #include declaration instead of the default your screenshot shows...so that the compiler can find the file..."? I didn't quite undestood that...

Br,
Petri V.

Katerina Koutlia

unread,
Jan 28, 2021, 7:15:35 AM1/28/21
to Petri Väisänen, 5G-LENA-users
After installing libsqlite-dev sqlite3 you have to re-run waf configure so that it will detect the new library.
I hope this will help.

Kat

Petri Väisänen

unread,
Jan 28, 2021, 7:54:20 AM1/28/21
to 5G-LENA-users
Hi Katerina,

Thank you, that was the case, I had only 'sqlite3' installed when I started './waf'. After './waf clean' and './waf configure --enable-examples --enable-tests' I now have 'nr (no Python)' module build. I assume 'sqlite' was missing since this VM is new and haven't run ns-3 with it, and forgot to configure again after installation :(. Sorry...

Br,
Petri V.
Reply all
Reply to author
Forward
0 new messages