Error in building the Hyperledger Fabric v1.4.4 source code - hyperledger-fabric

I am attempting to build the Hyperledger Fabric source code. I am following the guide as given here. I was able to successfully built the code using the make dist-clean all command. However, I wanted to test it on a fresh Virtual Machine. So, I followed the steps again but facing this issue while building the gotools.
Building dockerized gotools
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabric'
Building github.com/maxbrunsfeld/counterfeiter -> counterfeiter
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabric'
Building github.com/golang/dep v0.5.1 -> dep
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabric'
Building golang.org/x/lint/golint -> golint
GOBIN=/opt/gotools/bin go install ./vendor/golang.org/x/lint/golint
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabric'
Building golang.org/x/tools/cmd/goimports -> goimports
GOBIN=/opt/gotools/bin go install ./vendor/golang.org/x/tools/cmd/goimports
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabric'
Building github.com/golang/protobuf/protoc-gen-go -> protoc-gen-go
GOBIN=/opt/gotools/bin go install ./vendor/github.com/golang/protobuf/protoc-gen-go
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabric'
Building github.com/onsi/ginkgo/ginkgo -> ginkgo
GOBIN=/opt/gotools/bin go install ./vendor/github.com/onsi/ginkgo/ginkgo
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabric'
Building github.com/axw/gocov/gocov -> gocov
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabric'
Building github.com/AlekSi/gocov-xml -> gocov-xml
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabric'
Building github.com/client9/misspell/cmd/misspell -> misspell
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabric'
Building github.com/vektra/mockery/cmd/mockery -> mockery
package github.com/vektra/mockery/cmd/mockery: cannot find package "github.com/vektra/mockery/cmd/mockery" in any of:
/opt/go/src/github.com/vektra/mockery/cmd/mockery (from $GOROOT)
/opt/gotools/obj/src/github.com/vektra/mockery/cmd/mockery (from $GOPATH)
make[1]: *** [gotool.mockery] Error 1
gotools.mk:59: recipe for target 'gotool.mockery' failed
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'
gotools.mk:64: recipe for target '/opt/gotools/bin/mockery' failed
make: *** [/opt/gotools/bin/mockery] Error 2
Makefile:253: recipe for target '.build/docker/gotools' failed
make: *** [.build/docker/gotools] Error 2
However, when I run the find command as follows: sudo find / -name "*mockery*", I get the following output:
/home/<user>/go/src/github.com/hyperledger/fabric/.build/docker/gotools/obj/src/github.com/vektra/mockery
/home/<user>/go/src/github.com/hyperledger/fabric/.build/docker/gotools/obj/src/github.com/vektra/mockery/.mockery.yaml
/home/<user>/go/src/github.com/hyperledger/fabric/.build/docker/gotools/obj/src/github.com/vektra/mockery/pkg/mockery_test.go
/home/<user>/go/src/github.com/hyperledger/fabric/.build/docker/gotools/obj/src/github.com/vektra/mockery/pkg/mockery.go
/home/<user>/go/src/github.com/hyperledger/fabric/.build/docker/gotools/obj/src/github.com/vektra/mockery/cmd/mockery_test.go
/home/<user>/go/src/github.com/hyperledger/fabric/.build/docker/gotools/obj/src/github.com/vektra/mockery/cmd/mockery.go
Then I run, the make dist-clean all command again without making any changes, and it directly skips to throw this new error:
Installing chaintool
curl -fL https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/chaintool-1.1.3/hyperledger-fabric-chaintool-1.1.3.jar > .build/bin/chaintool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: nexus.hyperledger.org
Makefile:224: recipe for target '.build/bin/chaintool' failed
make: *** [.build/bin/chaintool] Error 6
I am making use of Hyperledger Fabric v1.4.4 tree. I did not make any changes to any files locally before the build. It would be helpful if someone can guide me in solving this error.

I was able to solve these issues by switching to v1.4 latest release. The 2 changes in the latest v1.4 release that solve these issues are:
The github.com/vektra/mockery can be correctly built with change shown here.
The URL for pulling chaintool files is changed as shown here.

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?

RTEMS compilation and installation error

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

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

MPFR installation can't find gmp-impl.h

I'm trying to install MPFR on cygwin.
I successfully ran "./configure --with-gmp-build=../gmp-5.1.3" and it doesn't gave me any error.
But when I ran "make install", it fails and gives following error.
In file included from exceptions.c:23:0:
mpfr-impl.h:71:24: fatal error: gmp-impl.h: No such file or directory
compilation terminated.
Makefile:674: recipe for target `exceptions.lo' failed
make[2]: *** [exceptions.lo] Error 1
make[2]: Leaving directory `/cygdrive/d/chamila/mpfr-3.1.2/src'
Makefile:798: recipe for target `install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory `/cygdrive/d/chamila/mpfr-3.1.2/src'
Makefile:385: recipe for target `install-recursive' failed
make: *** [install-recursive] Error 1
I added gmp location to path as well. What is wrong here? How can I solve this?
Don't use the --with-gmp-build option (unless you know what you're doing) and don't use relative paths with configure. If you have installed GMP in directory DIR, just use --with-gmp=DIR.

Resources