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.
Related
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?
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.
I am trying to build iotivity-constrained Zephyr port on Linux for ESP32 but getting the following errors,
drivers/built-in.o: In function `esp32_uart_init':
/home/toolchains/zephyr/drivers/serial/uart_esp32.c:46:(.text.esp32_uart_init+0x3): dangerous relocation: call8: call target out of range: uartAttach
drivers/built-in.o: In function `esp32_uart_tx':
/home/toolchains/zephyr/drivers/serial/uart_esp32.c:19:(.text.esp32_uart_tx+0x9): dangerous relocation: call8: call target out of range: uart_tx_one_char
collect2: error: ld returned 1 exit status
/home/toolchains/zephyr/Makefile:878: recipe for target 'zephyr_prebuilt.elf' failed
make[2]: *** [zephyr_prebuilt.elf] Error 1
make[2]: Leaving directory '/home/projects/iotivity-constrained/port/zephyr/outdir/esp32'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/toolchains/zephyr'
/home/toolchains/zephyr/Makefile.inc:82: recipe for target 'all' failed
make: *** [all] Error 2
I can build Zephyr and ESP32 separately but not iotivity-constrained. I tried to add -mlongcalls but no success.
Any suggestions?
Add flag -mlongcalls in /zephyr/drivers/serial/Makefile.
References:
IOT-2650
I have written wrapper functions for LED management in C. Basically i am using device drivers in Linux programming. But on compiling i am getting the following Error.
make -C /usr/src/linux-headers-3.13.0-44-generic/ M=pwd modules
make: Entering directory `/usr/src/linux-headers-3.13.0-44-generic'
Building modules, stage 2.
MODPOST 1 modules
FATAL: /home/labuser/b.o has no symtab?
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
make: Leaving directory `/usr/src/linux-headers-3.13.0-44-generic'
I am using kernel space header files. and compiling the file using makefile. What can be the probable cause of this Error??
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.