OpenWrt Forum Archive

Topic: libubox failed to compile

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Could this be fixed?

make[6]: Entering directory '/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08'
[  2%] Building C object CMakeFiles/ubox.dir/avl.c.o
[  5%] Building C object CMakeFiles/ubox.dir/avl-cmp.c.o
[  7%] Building C object CMakeFiles/ubox.dir/blob.c.o
[ 10%] Building C object CMakeFiles/ubox.dir/blobmsg.c.o
[ 12%] Building C object CMakeFiles/ubox.dir/uloop.c.o
[ 15%] Building C object CMakeFiles/ubox.dir/usock.c.o
[ 17%] Building C object CMakeFiles/ubox.dir/ustream.c.o
[ 20%] Building C object CMakeFiles/ubox.dir/ustream-fd.c.o
[ 22%] Building C object CMakeFiles/ubox.dir/vlist.c.o
[ 25%] Building C object CMakeFiles/ubox.dir/utils.c.o
[ 27%] Building C object CMakeFiles/ubox.dir/safe_list.c.o
[ 30%] Building C object CMakeFiles/ubox.dir/runqueue.c.o
[ 32%] Building C object CMakeFiles/ubox.dir/md5.c.o
[ 35%] Building C object CMakeFiles/ubox.dir/kvlist.c.o
[ 37%] Building C object CMakeFiles/ubox.dir/ulog.c.o
[ 40%] Building C object CMakeFiles/ubox.dir/base64.c.o
Linking C shared library libubox.so
make[6]: Leaving directory '/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08'
[ 40%] Built target ubox
make[6]: Entering directory '/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08'
Scanning dependencies of target blobmsg_json
make[6]: Leaving directory '/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08'
make[6]: Entering directory '/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08'
[ 42%] Building C object CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o
/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08/blobmsg_json.c:23:24: fatal error: json/json.h: No such file or directory
  #include <json/json.h>
                        ^
compilation terminated.
CMakeFiles/blobmsg_json.dir/build.make:57: recipe for target 'CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o' failed
make[6]: *** [CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o] Error 1
make[6]: Leaving directory '/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08'
CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/blobmsg_json.dir/all' failed
make[5]: *** [CMakeFiles/blobmsg_json.dir/all] Error 2
make[5]: Leaving directory '/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08'
Makefile:116: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08'
Makefile:95: recipe for target '/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08/.built' failed
make[3]: *** [/home/cderory/Téléchargements/openwrt/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/libubox-2015-05-08/.built] Error 2
make[3]: Leaving directory '/home/cderory/Téléchargements/openwrt/openwrt/package/libs/libubox'
package/Makefile:183: recipe for target 'package/libs/libubox/compile' failed
make[2]: *** [package/libs/libubox/compile] Error 2
make[2]: Leaving directory '/home/cderory/Téléchargements/openwrt/openwrt'
package/Makefile:180: recipe for target '/home/cderory/Téléchargements/openwrt/openwrt/staging_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/stamp/.package_compile' failed
make[1]: *** [/home/cderory/Téléchargements/openwrt/openwrt/staging_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/cderory/Téléchargements/openwrt/openwrt'
/home/cderory/Téléchargements/openwrt/openwrt/include/toplevel.mk:181 : la recette pour la cible « world » a échouée
make: *** [world] Erreur 2

Hi Cderory,

If this issue has been fixed then please may I know how did you solve this issue ?

I had the same error. The problem was with the diacritics in the pathname. I had /home/tct/Descărcări/, while Cderory had  /home/cderory/Téléchargements/. I fixed the build by moving the source code directory to /home/tct (a directory without diacritics).

I also had the following packages installed:

$ dpkg -l | grep libjson
ii  libjson-glib-1.0-0                                          0.14.2-1                                       GLib JSON manipulation library
ii  libjson0                                                    0.9-1ubuntu1.1                                 JSON manipulation library - shared library
ii  libjson0:i386                                               0.9-1ubuntu1.1                                 JSON manipulation library - shared library
ii  libjson0-dev                                                0.9-1ubuntu1.1                                 JSON manipulation library - development files
ii  libjsoncpp-dev                                              0.6.0~rc2-2                                    Library for reading and writing JSON for C++ (devel files)
ii  libjsoncpp0                                                 0.6.0~rc2-2                                    Library for reading and writing JSON for C++

(Last edited by tiberiu-tehnoetic on 1 Nov 2015, 20:25)

The discussion might have continued from here.