Some packages fail to compile in multithread mode (-j X)
For example openssl.
I did make package/opkg/host/compile and it compiled and fixed the problem
Same thing about openssl. Had to clean and make single threaded
[ 98%] Linking C executable opkg-cl
../libopkg/libopkg.a(pkg.c.o): In function `pkg_init':
/home/openwrt/openwrt/build_dir/target-mips_24kc_musl-1.1.16/host/opkg-2017-12-08-9f61f7ac/libopkg/pkg.c:88: undefined reference to `blob_buf_init'
../libopkg/libopkg.a(pkg.c.o): In function `pkg_set_raw':
/home/openwrt/openwrt/build_dir/target-mips_24kc_musl-1.1.16/host/opkg-2017-12-08-9f61f7ac/libopkg/pkg.c:117: undefined reference to `blob_put'
../libopkg/libopkg.a(pkg.c.o): In function `pkg_init':
/home/openwrt/openwrt/build_dir/target-mips_24kc_musl-1.1.16/host/opkg-2017-12-08-9f61f7ac/libopkg/pkg.c:88: undefined reference to `blob_buf_init'
../libopkg/libopkg.a(pkg.c.o): In function `pkg_deinit':
/home/openwrt/openwrt/build_dir/target-mips_24kc_musl-1.1.16/host/opkg-2017-12-08-9f61f7ac/libopkg/pkg.c:336: undefined reference to `blob_buf_free'
../libopkg/libopkg.a(file_util.c.o): In function `file_md5sum_alloc':
/home/openwrt/openwrt/build_dir/target-mips_24kc_musl-1.1.16/host/opkg-2017-12-08-9f61f7ac/libopkg/file_util.c:157: undefined reference to `md5sum'
collect2: error: ld returned 1 exit status
src/CMakeFiles/opkg-cl.dir/build.make:97: recipe for target 'src/opkg-cl' failed
make[5]: *** [src/opkg-cl] Error 1
make[5]: Leaving directory '/home/openwrt/openwrt/build_dir/target-mips_24kc_musl-1.1.16/host/opkg-2017-12-08-9f61f7ac'
CMakeFiles/Makefile2:196: recipe for target 'src/CMakeFiles/opkg-cl.dir/all' failed