Errors while building LLVM - linux

Building llvm on ubuntu 18.04 virtual machine, faced an error while running make on the step 7 of the tutorial(Build LLVM and Clang). The stacktrace attached. Help please!
[ 49%] Building ASM object projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampoline_x86_64.S.o
cc: error: unrecognized argument to -fno-sanitize= option: ‘safe-stack’
cc: error: unrecognized debug output level ‘line-tables-only’
projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/build.make:206: recipe for target 'projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampoline_x86_64.S.o' failed
make[2]: [projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampoline_x86_64.S.o] Error 1
CMakeFiles/Makefile2:29096: recipe for target 'projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/all' failed
make[1]: [projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: * [all] Error 2**

Related

make -j4 error opencv on kali linux

When I execute the command "make -j4", then it doesn't work.
Below is the output that I am getting. How can I fix this problem?
/usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/build.make:62: recipe for target 'modules/viz/precomp.hpp.gch/opencv_viz_Release.gch' failed
make[2]: *** [modules/viz/precomp.hpp.gch/opencv_viz_Release.gch] Error 1
CMakeFiles/Makefile2:3227: recipe for target 'modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all' failed
make[1]: *** [modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 16%] Built target pch_Generate_opencv_test_video
[ 16%] Built target pch_Generate_opencv_video
[ 16%] Built target pch_Generate_opencv_perf_video
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

No include path in which to search for limits.h

I want to build make a library but show the following error after 'make'
how can I do to fix the error?
ekeroc#ekeroc-desktop:~/gattlib/build$ make
[ 1%] Building C object dbus/CMakeFiles/gattlib.dir/gattlib.c.o
In file included from /usr/lib/gcc/arm-linux-gnueabihf/5/include-fixed/syslimits.h:7:0,
from /usr/lib/gcc/arm-linux-gnueabihf/5/include-fixed/limits.h:34,
from /usr/lib/arm-linux-gnueabihf/glib-2.0/include/glibconfig.h:11,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /home/ekeroc/gattlib/dbus/gattlib.c:24:
/usr/lib/gcc/arm-linux-gnueabihf/5/include-fixed/limits.h:168:61: error: no include path in which to search for limits.h
In file included from /usr/include/glib-2.0/glib/galloca.h:32:0,
from /usr/include/glib-2.0/glib.h:30,
from /home/ekeroc/gattlib/dbus/gattlib.c:24:
/usr/include/glib-2.0/glib/gtypes.h:35:18: fatal error: time.h: No such file or directory
compilation terminated.
dbus/CMakeFiles/gattlib.dir/build.make:82: recipe for target 'dbus/CMakeFiles/gattlib.dir/gattlib.c.o' failed
make[2]: *** [dbus/CMakeFiles/gattlib.dir/gattlib.c.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'dbus/CMakeFiles/gattlib.dir/all' failed
make[1]: *** [dbus/CMakeFiles/gattlib.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
ekeroc#ekeroc-desktop:~/gattlib/build$ ^C

Building VTK Examples on Ubuntu

After Building vtk with Qt on Ubuntu 16.04 I tried to make a few examples.
Here is one of them:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindowsQt#CMakeLists.txt
After running CMake with no errors on configure or generation I try to make but it blows up with this:
[100%] Linking CXX executable SideBySideRenderWindowsQt
/usr/bin/ld: cannot find -lvtkLocalExample
collect2: error: ld returned 1 exit status
CMakeFiles/SideBySideRenderWindowsQt.dir/build.make:278: recipe for target 'SideBySideRenderWindowsQt' failed
make[2]: * [SideBySideRenderWindowsQt] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/SideBySideRenderWindowsQt.dir/all' failed
make[1]: * [CMakeFiles/SideBySideRenderWindowsQt.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
What should I do?

While building kernel image i am getting this error while doing make -j4 (Using ubuntu)

lib/mpi/generic_mpih-lshift.o:/home/shubh/Root/XENO_WS/linux-3.8.13/lib/mpi/mpi-inline.h:110: first defined here
scripts/Makefile.build:443: recipe for target 'lib/mpi/mpi.o' failed
make[2]: *** [lib/mpi/mpi.o] Error 1
scripts/Makefile.build:454: recipe for target 'lib/mpi' failed
make[1]: *** [lib/mpi] Error 2
Makefile:791: recipe for target 'lib' failed
make: *** [lib] Error 2
make: *** Waiting for unfinished jobs....
How can I resolve this? When I am doing same steps in OpenSUSE it is not giving any error. I followed these steps:
make mrproper
make oldconfig
make -j4
then I get the error in between this.
So you use gcc of version 5, which is incompatible with Linux kernel version you want to compile. – Tsyvarev
It is resolve now. I build the kernel with lower version of gcc. – sam1006

Error building HHVM on Amazon Linux 2014.03 (unrecognized command line option ‘-fno-canonical-system-headers’)

I'm following the process https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Amazon-Linux-2014.03.
At the time of compilation and installation:
[root#ip-172-31-19-191 hhvm]# make
[ 0%] Building CXX object hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o
c++: error: unrecognized command line option ‘-fno-canonical-system-headers’
make[2]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o] Error 1
make[1]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/all] Error 2
make: *** [all] Error 2
Anyone know why the compiler is not recognizing this command?

Resources