RTEMS compilation and installation error - ubuntu-14.04

I am trying to compile RTEMS on Ubuntu 14.04.
I am getting following error while trying run 'make':
Making all in tools/build
make[1]: Entering directory /home/user/development/rtems/b-sis/tools/build'
make all-am
make[2]: Entering directory/home/user/development/rtems/b-sis/tools/build'
make[2]: Leaving directory /home/user/development/rtems/b-sis/tools/build'
make[1]: Leaving directory/home/user/development/rtems/b-sis/tools/build'
Making all in tools/cpu
make[1]: Entering directory /home/user/development/rtems/b-sis/tools/cpu'
Making all in generic
make[2]: Entering directory/home/user/development/rtems/b-sis/tools/cpu/generic'
make[2]: Nothing to be done for all'.
make[2]: Leaving directory/home/user/development/rtems/b-sis/tools/cpu/generic'
make[2]: Entering directory /home/user/development/rtems/b-sis/tools/cpu'
make[2]: Nothing to be done forall-am'.
make[2]: Leaving directory /home/user/development/rtems/b-sis/tools/cpu'
make[1]: Leaving directory/home/user/development/rtems/b-sis/tools/cpu'
Making all in testsuites/tools
make[1]: Entering directory /home/user/development/rtems/b-sis/testsuites/tools'
Making all in generic
make[2]: Entering directory/home/user/development/rtems/b-sis/testsuites/tools/generic'
make[2]: Nothing to be done for all'.
make[2]: Leaving directory/home/user/development/rtems/b-sis/testsuites/tools/generic'
make[2]: Entering directory /home/user/development/rtems/b-sis/testsuites/tools'
make[2]: Nothing to be done forall-am'.
make[2]: Leaving directory /home/user/development/rtems/b-sis/testsuites/tools'
make[1]: Leaving directory/home/user/development/rtems/b-sis/testsuites/tools'
Making all in sparc-rtems4.11/c
make[1]: Entering directory /home/user/development/rtems/b-sis/sparc-rtems4.11/c'
Making all in .
make[2]: Entering directory/home/user/development/rtems/b-sis/sparc-rtems4.11/c'
make[2]: Nothing to be done for all-am'.
make[2]: Leaving directory/home/user/development/rtems/b-sis/sparc-rtems4.11/c'
Making all in sis
make[2]: Entering directory /home/user/development/rtems/b-sis/sparc-rtems4.11/c/sis'
make[2]: *** No rule to make targetall'. Stop.
make[2]: Leaving directory /home/user/development/rtems/b-sis/sparc-rtems4.11/c/sis'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory/home/user/development/rtems/b-sis/sparc-rtems4.11/c'
make: *** [all-recursive] Error 1
Here, is a list of steps I followed:
To install toold I used RSB and ran all commands listed here:
https://devel.rtems.org/wiki/Developer/Tools/RSB
Then I have followed this list of commands:
https://devel.rtems.org/wiki/TBR/UserManual/Quick_Start
In this list, I have tried changing PATH variable = /development/rtems/4.11/bin=$PATH
Other then this everything is done by me following the commands listed here. I have done ./bootstrap -p as well.

You need the toolchain tools. Follow the source builder tutorial before compiling rtems.
1º Clone the tools
git clone git://git.rtems.org/rtems-source-builder.git
2º Check environment
${PATH-rtems-source-builder}/source-builder/sb-check
You must got:
RTEMS Source Builder - Check, 4.11 (6b0d76cc9b43 modified)
Environment is ok
If not, you need more dependencies.
3º Check the target arch you want:
cd ${PATH-rtems-source-builder}/rtems
../source-builder/sb-set-builder --list-bsets
${PATH-rtems-source-builder}/source-builder/sb-set-builder --log=l-sparc.txt --prefix=$HOME/development/rtems/4.11 4.11/rtems-sparc
You need to stay in ${PATH-rtems-source-builder}/rtems path, or the list won't be complete!
4º Configure
EXECUTABLE=$HOME/Repositories/git/rtems
TARGET=sparc-rtems4.11
PREFIX=${HOME}/opt/rtems
${EXECUTABLE}/configure --target=${TARGET} --enable-rtemsbsp=sis --enable-tests=samples --prefix=${PREFIX}
5º Execute boostrap
$HOME/Repositories/git/rtems/bootstrap
6º Go to your build path and compile & install
make
make install
Remember, you need the valid toolchain path in your environment variables.
In example:
export PATH=$HOME/development/rtems/4.11/bin:$PATH
If you don't want to do it everytime you restart, add that in your ~/.bashrc file. And use commando source to update the current terminal environment.
source ~/.bashrc

The problem is that it cannot find binaries.
That is probably because you haven't added them to your PATH environment variable.
You can do that with (use the correct path to the bin-directory of your setup)
export PATH=$HOME/development/rtems/compiler/4.12/bin:$PATH

Related

gnuplot install failure - recipe for target 'qtgnuplot_fr.qm' failed

When installing gnuplot 5.0.0 (and 5.0.7, too),using ./configure && make,
/usr/lib/qt5/bin/lrelease qtterminal/po/qtgnuplot_fr.ts -qm qtgnuplot_fr.qm
/bin/bash: /usr/lib/qt5/bin/lrelease: No such file or directory
Makefile:1335: recipe for target 'qtgnuplot_fr.qm' failed
make[4]: *** [qtgnuplot_fr.qm] Error 127
make[4]: Leaving directory '/home/seolhwa/Downloads/gnuplot-5.0.7/src'
Makefile:1027: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/seolhwa/Downloads/gnuplot-5.0.7/src'
Makefile:644: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/seolhwa/Downloads/gnuplot-5.0.7/src'
Makefile:419: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/seolhwa/Downloads/gnuplot-5.0.7'
Makefile:357: recipe for target 'all' failed
make: *** [all] Error 2
At first, I installed gnuplot using
apt install gnuplot
the latest version was installed. But it missed pdfcairo. So I installed two necessary dev files and other recommended dev files (for the possible use of qt terminal). Then I moved to gnuplot folder and configure && make. The result is above.
What can I do to fix it?
The Qt translation support is in a separate package qttools5 (precise name depends on your linux distro). If you are going to the trouble of installing from source, why use gnuplot 5.0 rather than current 5.2?

Can't compile the ACE 6.3.0 library apps in CentOS 6.5

After ungzip-tar, the configure and the make in objdir succeeded. Trying to do a make in the gperf directory under apps fails with below :
make[1]: Entering directory `/home/admin/Desktop/compile/ace/ACE_wrappers/apps/drwho'
/home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/wrapper_macros.GNU:218: /home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU: No such file or directory
/home/admin/Desktop/compile/ace/ACE_wrappers/bin/add_rel_link.sh /home/admin/Desktop/compile/ace/ACE_wrappers/apps/drwho/platform_macros.GNU /home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU
ln -s ../../apps/drwho/platform_macros.GNU /home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU
drwho__client will not be built due to the following missing library: ACE
GNUmakefile: /home/admin/Desktop/compile/ace/ACE_wrappers/apps/drwho/GNUmakefile.drwho__client MAKEFLAGS=w
make[1]: Leaving directory `/home/admin/Desktop/compile/ace/ACE_wrappers/apps/drwho'
make[1]: Entering directory `/home/admin/Desktop/compile/ace/ACE_wrappers/apps/drwho'
/home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/wrapper_macros.GNU:218: /home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU: No such file or directory
/home/admin/Desktop/compile/ace/ACE_wrappers/bin/add_rel_link.sh /home/admin/Desktop/compile/ace/ACE_wrappers/apps/drwho/platform_macros.GNU /home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU
ln -s ../../apps/drwho/platform_macros.GNU /home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU
drwho__server will not be built due to the following missing library: ACE
GNUmakefile: /home/admin/Desktop/compile/ace/ACE_wrappers/apps/drwho/GNUmakefile.drwho__server MAKEFLAGS=w
make[1]: Leaving directory `/home/admin/Desktop/compile/ace/ACE_wrappers/apps/drwho'
make[1]: Entering directory `/home/admin/Desktop/compile/ace/ACE_wrappers/apps/gperf'
/home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/wrapper_macros.GNU:218: /home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU: No such file or directory
/home/admin/Desktop/compile/ace/ACE_wrappers/bin/add_rel_link.sh /home/admin/Desktop/compile/ace/ACE_wrappers/apps/gperf/platform_macros.GNU /home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU
ln -s ../../apps/gperf/platform_macros.GNU /home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU
GNUmakefile: /home/admin/Desktop/compile/ace/ACE_wrappers/apps/gperf/GNUmakefile.gperf_docs MAKEFLAGS=w
make[1]: Leaving directory `/home/admin/Desktop/compile/ace/ACE_wrappers/apps/gperf'
make[1]: Entering directory `/home/admin/Desktop/compile/ace/ACE_wrappers/apps/gperf/src'
/home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/wrapper_macros.GNU:218: /home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU: No such file or directory
make[1]: *** No rule to make target `/home/admin/Desktop/compile/ace/ACE_wrappers/include/makeinclude/platform_macros.GNU'. Stop.
make[1]: Leaving directory `/home/admin/Desktop/compile/ace/ACE_wrappers/apps/gperf/src'
make: *** [gperf] Error 2
I could not find this file "platform_macros.GNU" anywhere in the source tree ? Appreciate some help.
You have to create the platform_macros.GNU file, see the free CORBA Programmers Guide chapter 19 for more information how to compile ACE.

Building OpenImageIO on Kubuntu 14.10: make error

bit of a newbie to Ubuntu here and this has really been confusing me.
Currently trying to build OpenImageIO using make, following the steps outlined here: https://sites.google.com/site/openimageio/checking-out-and-building-openimageio
As far as I'm aware, I have installed all of the dependencies, however trying to run make gives me the following error:
platform=linux64, hw=x86_64
OPENIMAGEIO_SITE = shanesimmsart-pc
dist_dir = dist/linux64
INSTALLDIR = /home/shanesimmsart/oiio
( cd build/linux64 ; make )
make[1]: Entering directory `/home/shanesimmsart/oiio/build/linux64'
make[2]: Entering directory `/home/shanesimmsart/oiio/build/linux64'
make[3]: Entering directory `/home/shanesimmsart/oiio/build/linux64'
make[3]: Leaving directory `/home/shanesimmsart/oiio/build/linux64'
make[3]: Entering directory `/home/shanesimmsart/oiio/build/linux64'
[ 0%] Building CXX object src/libutil/CMakeFiles/OpenImageIO_Util.dir/strutil.cpp.o
/home/shanesimmsart/oiio/src/libutil/strutil.cpp: In function ‘OpenImageIO::v1_6::string_view OpenImageIO::v1_6::Strutil::parse_nested(OpenImageIO::v1_6::string_view&, bool)’:
/home/shanesimmsart/oiio/src/libutil/strutil.cpp:768:28: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for ( ; nesting && len < p.size(); ++len) {
^
cc1plus: all warnings being treated as errors
make[3]: *** [src/libutil/CMakeFiles/OpenImageIO_Util.dir/strutil.cpp.o] Error 1
make[3]: Leaving directory `/home/shanesimmsart/oiio/build/linux64'
make[2]: *** [src/libutil/CMakeFiles/OpenImageIO_Util.dir/all] Error 2
make[2]: Leaving directory `/home/shanesimmsart/oiio/build/linux64'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/shanesimmsart/oiio/build/linux64'
make: *** [cmake] Error 2
Does anyone have any idea what I might be doing wrong / might be missing?
The package you're using has enabled the -Werror flag by default, which forces the compiler to treat all warnings as errors. This is always a bad idea for shipping code to users, because users will have a wide variety of different compilers and versions of compilers, so users will get different warnings than developers. When developers build the code they should absolutely use -Werror. When developers ship code to users, they should absolutely not enable -Werror by default.
Anyway, looking at the code in Git it appears that if you do this:
make STOP_ON_WARNING=no
it will disable -Werror.

linux/videodev.h: No such file or directory Ubuntu 14.04

Hi I run into a problem when setting up my web camera for use in Chrome, which needed FlashCam.
When following the installation guide at: http://www.swift-tools.net/Flashcam/
At the step when doing the "make" build I get:
adderollen#andreas-RC530:~/Downloads/flashcam-1.4.5$ make
(cd vloopback; make);
make[1]: Entering directory `/home/adderollen/Downloads/flashcam-1.4.5/vloopback'
make -C /lib/modules/3.13.0-37-generic/build SUBDIRS=/home/adderollen/Downloads/flashcam- 1.4.5/vloopback modules
make[2]: Entering directory `/usr/src/linux-headers-3.13.0-37-generic'
CC [M] /home/adderollen/Downloads/flashcam-1.4.5/vloopback/vloopback.o
/home/adderollen/Downloads/flashcam-1.4.5/vloopback/vloopback.c:166:28: fatal error:
linux/videodev.h: No such file or directory
#include <linux/videodev.h>
^
compilation terminated.
make[3]: *** [/home/adderollen/Downloads/flashcam-1.4.5/vloopback/vloopback.o] Error 1
make[2]: *** [_module_/home/adderollen/Downloads/flashcam-1.4.5/vloopback] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.13.0-37-generic'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/adderollen/Downloads/flashcam-1.4.5/vloopback'
make: *** [vloopback/vloopback.ko] Error 2
So I googled some and found this: linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04
I followed the answer by bukzor, but I still got the same problem. Any one got a solution?
I run Ubuntu 14.04.
Don't you still have such a file on disk? If so, then may be the package which contains such a file was renamed, or may be file was renamed/removed.
find / -name 'videodev.h'
locate videodev.h
using the above commands to check whether you have the file.

error encountered installing mono and monodevelop on centos 6

I have been following sintructions for installing mono and monodevelop
on centos 6 found in this web page :
Install Mono and Monodevelop on CentOS 5.x/6.x
I have stalled on one of the steps explained below
yum install pango-devel atk-devel libgnome-devel libgnomecanvas-devel libgnomeui-devel git svn libtool
cd /usr/src
git clone git://github.com/mono/gnome-sharp
cd gnome-sharp
./bootstrap-2.24 --prefix=/usr
make && make install
When I run the make command in gnome-sharp I get this error :-
make all-recursive
make[1]: Entering directory `/usr/src/gnome-sharp'
Making all in sources
make[2]: Entering directory `/usr/src/gnome-sharp/sources'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/gnome-sharp/sources'
Making all in art
make[2]: Entering directory `/usr/src/gnome-sharp/art'
/usr/bin/mcs -debug -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20 -define:GNOME_SHARP_2_24 -nowarn:0169,0612,0618 -unsafe -out:art-sharp.dll -target:library /usr/lib -r:Mono.Cairo generated/*.cs AssemblyInfo.cs
error CS2001: Source file `/usr/lib' could not be found
Compilation failed: 1 error(s), 0 warnings
make[2]: *** [art-sharp.dll] Error 1
make[2]: Leaving directory `/usr/src/gnome-sharp/art'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gnome-sharp'
make: *** [all] Error 2
It looks as if the Makefile process is broken at least to me. Any help gratefully received.
-roddy
You don't need to install Mono from source anymore, there are now official packages: http://www.mono-project.com/docs/getting-started/install/linux/#centos-fedora-and-derivatives

Resources