Opam installation error from source - ocaml

The following error was obtained while installing opam from source
make -C ocp-build
make[1]: Entering directory `/home/14810/opam-master/ocp-build'
make[1]: `ocp-build' is up to date.
make[1]: Leaving directory `/home/14810/opam-master/ocp-build'
make clone
make[1]: Entering directory `/home/14810/opam-master'
make -C src_ext
make[2]: Entering directory `/home/14810/opam-master/src_ext'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/14810/opam-master/src_ext'
make[1]: Leaving directory `/home/14810/opam-master'
make compile
make[1]: Entering directory `/home/14810/opam-master'
make -C ocp-build
make[2]: Entering directory `/home/14810/opam-master/ocp-build'
make[2]: `ocp-build' is up to date.
make[2]: Leaving directory `/home/14810/opam-master/ocp-build'
ocaml shell/get-git-id.ml src/core/opamGitVersion.ml
./ocp-build/ocp-build -no-use-opamfind -init -scan
Unknown option -no-use-opamfind.
make[1]: *** [compile] Error 2
make[1]: Leaving directory `/home/14810/opam-master'
make: *** [all] Error 2
tried removing options from the makefile but did not work

Related

Cannot compile MEGA api

I'm using Windows 7 64bits and been trying to compile the MEGA api with MSYS2 using the autotools, but after running 'make' compilation stops showing this error:
# make
make all-recursive
make[1]: Entering directory '/d/sdk-develop'
Making all in include
make[2]: Entering directory '/d/sdk-develop/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/d/sdk-develop/include'
make[2]: Entering directory '/d/sdk-develop'
CXX examples/megacli-megacli.o
In file included from D:/msys64/mingw64/include/zconf.h:475,
from D:/msys64/mingw64/include/zlib.h:34,
from ./include/mega/win32/meganet.h:26,
from ./include/mega.h:76,
from examples/megacli.cpp:22:
./include/mega/win32/megafs.h:170:10: error: 'bool mega::WinFileAccess::ftruncate64()' marked 'override', but does not override
170 | bool ftruncate() override;
| ^~~~~~~~~
make[2]: *** [Makefile:2742: examples/megacli-megacli.o] Error 1
make[2]: Leaving directory '/d/sdk-develop'
make[1]: *** [Makefile:3294: all-recursive] Error 1
make[1]: Leaving directory '/d/sdk-develop'
make: *** [Makefile:1495: all] Error 2

trouble to run make for the buildroot

I'm not sure what the problem is.
The command is:
root#root:/usr/lib/buildroot# make
And the error message is:
llvm 9.0.1 Building PATH="/usr/lib/buildroot/output/host/bin:/usr/lib/buildroot/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" /usr/bin/make -j3 -C /usr/lib/buildroot/output/build/llvm-9.0.1//buildroot-build make[1]: Entering directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' make[2]: Entering directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' make[3]: Entering directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' make[3]: Entering directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' make[3]: Entering directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' make[3]: Leaving directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' make[3]: Leaving directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' make[3]: Leaving directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' make[3]: Entering directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' make[3]: Entering directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' [ 0%] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/Error.cpp.o make[3]: Entering directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' [ 0%] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o aarch64-none-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build/lib/TableGen' lib/TableGen/CMakeFiles/LLVMTableGen.dir/build.make:62: recipe for target 'lib/TableGen/CMakeFiles/LLVMTableGen.dir/Error.cpp.o' failed make[3]: *** [lib/TableGen/CMakeFiles/LLVMTableGen.dir/Error.cpp.o] Error 1 make[3]: Leaving directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' CMakeFiles/Makefile2:879: recipe for target 'lib/TableGen/CMakeFiles/LLVMTableGen.dir/all' failed make[2]: *** [lib/TableGen/CMakeFiles/LLVMTableGen.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/AArch64TargetParser.cpp.o [ 0%] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o aarch64-none-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build/lib/Demangle' lib/Demangle/CMakeFiles/LLVMDemangle.dir/build.make:62: recipe for target 'lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o' failed make[3]: *** [lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o] Error 1 make[3]: *** Waiting for unfinished jobs.... aarch64-none-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build/lib/Support' lib/Support/CMakeFiles/LLVMSupport.dir/build.make:62: recipe for target 'lib/Support/CMakeFiles/LLVMSupport.dir/AArch64TargetParser.cpp.o' failed make[3]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/AArch64TargetParser.cpp.o] Error 1 make[3]: *** Waiting for unfinished jobs.... aarch64-none-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build/lib/Demangle' lib/Demangle/CMakeFiles/LLVMDemangle.dir/build.make:75: recipe for target 'lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o' failed make[3]: *** [lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o] Error 1 make[3]: Leaving directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' CMakeFiles/Makefile2:640: recipe for target 'lib/Demangle/CMakeFiles/LLVMDemangle.dir/all' failed make[2]: *** [lib/Demangle/CMakeFiles/LLVMDemangle.dir/all] Error 2 [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMTargetParser.cpp.o aarch64-none-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build/lib/Support' lib/Support/CMakeFiles/LLVMSupport.dir/build.make:75: recipe for target 'lib/Support/CMakeFiles/LLVMSupport.dir/ARMTargetParser.cpp.o' failed make[3]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/ARMTargetParser.cpp.o] Error 1 make[3]: Leaving directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' CMakeFiles/Makefile2:800: recipe for target 'lib/Support/CMakeFiles/LLVMSupport.dir/all' failed make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2 make[2]: Leaving directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' Makefile:151: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/usr/lib/buildroot/output/build/llvm-9.0.1/buildroot-build' package/pkg-generic.mk:266: recipe for target '/usr/lib/buildroot/output/build/llvm-9.0.1/.stamp_built' failed make: *** [/usr/lib/buildroot/output/build/llvm-9.0.1/.stamp_built] Error 2
You have added a host system library path to your build (maybe by error? Since you did not post the necessary information we do not know). Host library paths are paths outside of the cross-toolchain or buildroot path.
This Feature for detecting unsafe include paths has been included into buildroot a couple of years ago. See: https://git.busybox.net/buildroot/commit/?id=5aa205eba4063ddf17a2e11420eea2a8aa7536a5
Either you will need to remove host system include paths from your build (which you always should do). But if you are sure everything is right you can define BR_COMPILER_PARANOID_UNSAFE_PATH to an empty value so it will be just a warning, and not an error.
You cannot build Buildroot under /usr/lib. Move the directory somewhere else, e.g. /home/buildroot. Note that after moving you have to do a clean build.
Note also that you shouldn't do the build as root. Create a non-root user and do the build as that user.

Error: installting GDB-8.1 with target=mips-elf-linux

Below error occurs while installing gdb-8.1 on Ubuntu-16.04-TLS with target configuration>> --target=mips-elf-linux:
make[4]: Leaving directory '/home/../gdb-installation/gdb-8.1-mips32be/bfd/po'
make[4]: Entering directory '/home/../gdb-installation/gdb-8.1-mips32be/bfd'
make[5]: Entering directory '/home/.../gdb-installation/gdb-8.1-mips32be/bfd'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Leaving directory '/home/.../gdb-installation/gdb-8.1-mips32be/bfd'
make[4]: Leaving directory '/home/.../gdb-installation/gdb-8.1-mips32be/bfd'
Makefile:1748: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory '/home/.../gdb-installation/gdb-8.1-mips32be/bfd'
Makefile:1885: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/home/.../gdb-installation/gdb-8.1-mips32be/bfd'
Makefile:2756: recipe for target 'install-bfd' failed
make[1]: *** [install-bfd] Error 2
make[1]: Leaving directory '/home/.../gdb-installation/gdb-8.1-mips32be'
Makefile:2223: recipe for target 'install' failed
make: *** [install] Error 2
Kindly help me fix this!

NetBeans building failure | make Error 1

I get the following errors while building my project (game with C++/SFML):
cd '/home/osboxes/NetBeansProjects/Prueba'
/usr/bin/make -f Makefile CONF=Debug
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/home/osboxes/NetBeansProjects/Prueba'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux/prueba
make[2]: Entering directory '/home/osboxes/NetBeansProjects/Prueba'
mkdir -p dist/Debug/GNU-Linux
g++ -o dist/Debug/GNU-Linux/prueba build/Debug/GNU-Linux/AABBCollidable.o build/Debug/GNU-Linux/AABBCollisionDetector.o build/Debug/GNU-Linux/AnimatedSprite.o build/Debug/GNU-Linux/Animation.o build/Debug/GNU-Linux/ConvexCollidable.o build/Debug/GNU-Linux/ConvexCollisionDetector.o build/Debug/GNU-Linux/ConvexShape.o build/Debug/GNU-Linux/Director.o build/Debug/GNU-Linux/Entry.o build/Debug/GNU-Linux/Event.o build/Debug/GNU-Linux/EventManager.o build/Debug/GNU-Linux/FileLogger.o build/Debug/GNU-Linux/GuiElement.o build/Debug/GNU-Linux/GuiSystem.o build/Debug/GNU-Linux/Label.o build/Debug/GNU-Linux/LabelButton.o build/Debug/GNU-Linux/ResourceManager.o build/Debug/GNU-Linux/State.o -L/usr/lib/x86_64-linux-gnu -lsfml-window -lsfml-system -lsfml-graphics -lsfml-audio
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':
collect2: error: ld returned 1 exit status
nbproject/Makefile-Debug.mk:79: recipe for target 'dist/Debug/GNU-Linux/prueba' failed
make[2]: *** [dist/Debug/GNU-Linux/prueba] Error 1
make[2]: Leaving directory '/home/osboxes/NetBeansProjects/Prueba'
nbproject/Makefile-Debug.mk:76: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/home/osboxes/NetBeansProjects/Prueba'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 2s)
I have installed NetBeans IDE 8.1 with SFML libraries. I tried to fix it by clearing cache from NetBeans and then restart IDE but still does the same errors.
My project was compiled with Standard C++ compiler (C++11 version).
Hope you could help me. Thanks by the way...

Apache thrift can not make

When I'm trying to configure and make thrift 0.9.1 it gives some errors. Can anyone tell me the reason for that and what should I do to overcome this issue. Errors are shown in below.
user#linux-yyzo:~/WorkDir/thrift-0.9.1> make
make all-recursive
make[1]: Entering directory `/home/user/WorkDir/thrift-0.9.1'
Making all in compiler/cpp
make[2]: Entering directory `/home/user/WorkDir/thrift-0.9.1/compiler/cpp'
make all-am
make[3]: Entering directory `/home/user/WorkDir/thrift-0.9.1/compiler/cpp'
\
\
/bin/sh ../../ylwrap `test -f 'src/thrifty.yy' || echo './'`src/thrifty.yy y.tab.c thrifty.cc y.tab.h thrifty.h y.output thrifty.output -- yacc -d
../../ylwrap: line 113: yacc: command not found
make[3]: *** [thrifty.cc] Error 1
make[3]: Leaving directory `/home/user/WorkDir/thrift-0.9.1/compiler/cpp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/user/WorkDir/thrift-0.9.1/compiler/cpp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/WorkDir/thrift-0.9.1'
make: *** [all] Error 2
user#linux-yyzo:~/WorkDir/thrift-0.9.1>
There are two resources on the Thrift web site worth reading when one runs into troubles like this.
The Requirements give a good overview about the dependencies; the Building From Source page explains build steps and configure switches briefly. Additionally, the requirements page holds some links to more specific information for builds on Ubuntu, CentOS, Windows and OS X.