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
Related
root#com:/usr/src/linux-source-4.15.0/linux-source-4.15.0# make -C $KERN_DIR M=`pwd` modules
echo $KERN_DIR -> /usr/src/linux-source-4.15.0/linux-source-4.15.0
how can i fix it? i cant find this error
drivers/tty/serdev/core.o: failed
scripts/Makefile.build:330: recipe for target 'drivers/tty/serdev/core.o' failed
make[3]: *** [drivers/tty/serdev/core.o] Error 1
scripts/Makefile.build:604: recipe for target 'drivers/tty/serdev' failed
make[2]: *** [drivers/tty/derdev] Error 2
scripts/Makefile.build:604: recipe for target 'drivers/tty' failed
make[1]: *** [drivers/tty] Error 2
Makefile:1060: recipe for target 'drivers' failed
make: *** [drivers] Error 2
I was trying to downgrade the linux kernel version from 4.4.14(trunk) to 3.18.44.
I made the necessary makefile changes for my target linux system which is ipq806x.
But while building I am getting patch failed error. The build log snippet is given below. Has anyone come across such kind of an error. Please share your comments.
pplying patch platform/301-ARM-qcom-add-Netgear-Nighthawk-X4-R7500-device-tree.patch
patching file arch/arm/boot/dts/Makefile
The next patch would create the file arch/arm/boot/dts/qcom-ipq8064-r7500.dts,
which already exists! Applying it anyway.
patching file arch/arm/boot/dts/qcom-ipq8064-r7500.dts
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/arm/boot/dts/qcom-ipq8064-r7500.dts
Patch platform/301-ARM-qcom-add-Netgear-Nighthawk-X4-R7500-device-tree.patch does not apply (enforce with -f)
Makefile:26: recipe for target '/home/guru/punya/trunkpull_24112017/openwrt/build_dir/target-arm_cortex-a9+neon-vfpv4_musl-1.1.16_eabi/linux-ipq806x/linux-3.18.44/.quilt_checked' failed
make[4]: *** [/home/guru/punya/trunkpull_24112017/openwrt/build_dir/target-arm_cortex-a9+neon-vfpv4_musl-1.1.16_eabi/linux-ipq806x/linux-3.18.44/.quilt_checked] Error 1
make[4]: Leaving directory '/home/guru/punya/trunkpull_24112017/openwrt/target/linux/ipq806x'
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/home/guru/punya/trunkpull_24112017/openwrt/target/linux'
target/Makefile:21: recipe for target 'target/linux/compile' failed
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory '/home/guru/punya/trunkpull_24112017/openwrt'
target/Makefile:16: recipe for target '/home/guru/punya/trunkpull_24112017/openwrt/staging_dir/target-arm_cortex-a9+neon-vfpv4_musl-1.1.16_eabi/stamp/.target_compile' failed
make[1]: *** [/home/guru/punya/trunkpull_24112017/openwrt/staging_dir/target-arm_cortex-a9+neon-vfpv4_musl-1.1.16_eabi/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/guru/punya/trunkpull_24112017/openwrt'
/home/guru/punya/trunkpull_24112017/openwrt/include/toplevel.mk:192: recipe for target 'world' failed
make: *** [world] Error 2
From the logs its clear the compilation failed because of patching of dts failed.
If the failed patch file is not required then try the compilation after removing it.
I am following the instructions on Build GCC cilkplus | CilkPlus. I try to make and I get this error:
checking target system type... x86_64-unknown-linux-gnu
checking LIBRARY_PATH variable... contains current directory
configure: error:
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.
Makefile:3965: recipe for target 'configure-stage1-gcc' failed
make[2]: *** [configure-stage1-gcc] Error 1
make[2]: Leaving directory '/home/username/b-gcc'
Makefile:21970: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/home/username/b-gcc'
Makefile:894: recipe for target 'all' failed
make: *** [all] Error 2
I just added GCC version 5 and up and Cilk is built in there, so I solved the problem that way.
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
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?