Problem in installation of IMTA PHY

Asked by satvik chugh

I carried out the installation according to the given steps but when i carry out the 10th step the build fails with errors..
this is the output on the terminal
sachin@sachin-HP-Pavilion-dv2-Notebook-PC:~$ ./playground.py install && ./playground.py install --flavour=opt
bash: ./playground.py: No such file or directory
sachin@sachin-HP-Pavilion-dv2-Notebook-PC:~$ cd openwns-sdk
sachin@sachin-HP-Pavilion-dv2-Notebook-PC:~/openwns-sdk$ ./playground.py install && ./playground.py install --flavour=opt
Executing: scons dbg --warn=no-missing-sconscript -j 1 default
scons: Reading SConscript files ...
-I/usr/include/python2.7 -I/usr/include/python2.7
-lpthread -ldl -lutil -lm -lpython2.7

scons: warning: The env.SourceSignatures() method is deprecated;
 convert your build to use the env.Decider() method instead.
File "/home/sachin/openwns-sdk/SConstruct", line 74, in <module>

scons: warning: The env.TargetSignatures() method is deprecated;
 convert your build to use the env.Decider() method instead.
File "/home/sachin/openwns-sdk/SConstruct", line 75, in <module>

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/sachin/openwns-sdk/SConstruct", line 127, in <module>

scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/home/sachin/openwns-sdk/SConstruct", line 128, in <module>

scons: warning: The PathOption() function is deprecated; use the PathVariable() function instead.
File "/home/sachin/openwns-sdk/SConstruct", line 129, in <module>

scons: warning: The PackageOption() function is deprecated; use the PackageVariable() function instead.
File "/home/sachin/openwns-sdk/SConstruct", line 135, in <module>
Checking for icecc compiler...(cached) no
Checking for C library cppunit... (cached) yes
Checking for C library boost_program_options-mt... (cached) yes
Checking for C library boost_signals-mt... (cached) yes
Checking for C library boost_date_time-mt... (cached) yes
Checking for C library boost_filesystem-mt... (cached) yes

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>
Checking for C library iomp5... (cached) yes
Intel openMP lib iomp5 found

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>
Checking for C library iomp5... (cached) yes
Intel openMP lib iomp5 found

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>
Checking for C library iomp5... (cached) yes
Intel openMP lib iomp5 found

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
 use VariantDir() and the variant_dir keyword instead.
File "/home/sachin/openwns-sdk/SConstruct", line 297, in <module>
scons: done reading SConscript files.
scons: Building targets ...
g++ -o .build/dbg/openwns-library/src/simulator/SegmentationViolationHandler.os -c -g -O0 -fno-inline -fPIC -I.include -I/usr/include/python2.7 framework/library/src/simulator/SegmentationViolationHandler.cpp
framework/library/src/simulator/SegmentationViolationHandler.cpp: In member function 'virtual void wns::simulator::SegmentationViolationHandler::doCall()':
framework/library/src/simulator/SegmentationViolationHandler.cpp:58:26: error: 'getpid' was not declared in this scope
scons: *** [.build/dbg/openwns-library/src/simulator/SegmentationViolationHandler.os] Error 1
scons: building terminated because of errors.

i have carried out all the steps as mentioned and also looked at the questions..but no luck.
help please..:)

Question information

Language:
English Edit question
Status:
Solved
For:
IMTAphy Edit question
Assignee:
No assignee Edit question
Solved by:
Jan
Solved:
Last query:
Last reply:
Revision history for this message
Maciej Muehleisen (mue-comnets) said :
#1

Dear Setvik,

openWNS & IMTAPhy have been tested on Ubuntu Linux 8.04 and 10.04 and reported to also work with 10.04. Seems like the getpid() system call is not available on your system or moved to another header file.

Still it is strange that the compiler exits at the very first file it tries to compile. Maybe there is something wrong with the paths of your compiler. Please assure these simple steps work: http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html

Revision history for this message
Maciej Muehleisen (mue-comnets) said :
#2

^ .... to also work with 12.04 .... ^

Revision history for this message
Best Jan (jan-ellenbeck) said :
#3

Thanks Maciej for answering this.

In addition, I would like to add that Ubuntu 12.10 should also be fine but not with the standard gcc/g++ compiler version 4.7. That version is newer than the one used to develop openWNS+IMTAphy and triggers a couple of compilation errors. openWNS+IMTAphy should compile fine with gcc/g++ version 4.6, which is also available in Ubuntu 12.10.

Revision history for this message
satvik chugh (superboy4u) said :
#4

Thanks Jan, that solved my question.

Revision history for this message
Andreas Dotzler (dotzler) said :
#5

Had the same error message for Ubunutu 13.04 (gcc 4.6). Directly including unistd (#include <unistd.h>) in ConsoleFormat.cpp and SegmentationViolationHandler.cpp solved the problem for me.

Revision history for this message
Andreas Dotzler (dotzler) said :
#6