host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/hashtable/hashtable.c
host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/hashtable/hashtable_itr.c
Export includes file: external/mtd-utils/mkfs.ubifs/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/export_includes
host Executable: mkfs.ubifs (out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs)
/usr/bin/ld: skipping incompatible /usr/lib64/liblzo2.so when searching for -llzo2
/usr/bin/ld: cannot find -llzo2
/usr/bin/ld: skipping incompatible /usr/lib64/libuuid.so when searching for -luuid
/usr/bin/ld: cannot find -luuid
collect2: error: ld returned 1 exit status
build/core/host_executable.mk:19: recipe for target 'out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs' failed
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs] Error 1
could anyone help me with this error? my SOC is is i.mx6DL on a custom board and im building for android JB 4.2.2
Thanks Jonny
Solved! Go to Solution.
Hi
If you are using 64 bit machine than, You can check your Android.mk has following.
LOCAL_CFLAGS+= -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -m64
LOCAL_CFLAGS+= -Wmissing-prototypes -Winline
LOCAL_LDFLAGS += -L/usr/lib/x86_64-linux-gnu
LOCAL_LDLIBS:= -lz -llzo2 -lm -luuid -m64
Regards
Saurabh
Hi
Jonny
Try to install
sudo apt-get install liblzo2-dev uuid-dev
Thanks
Saurabh
Hi Saurabh,
thanks for the swift reply however i am building on fedora21 and i cant seem to find the equivalent for it.
Thanks Jonny
Hi
If you are using 64 bit machine than, You can check your Android.mk has following.
LOCAL_CFLAGS+= -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -m64
LOCAL_CFLAGS+= -Wmissing-prototypes -Winline
LOCAL_LDFLAGS += -L/usr/lib/x86_64-linux-gnu
LOCAL_LDLIBS:= -lz -llzo2 -lm -luuid -m64
Regards
Saurabh
Hi,
i believe this will be correct - however where is this particular android.mk file located?
Thanks Jonny
external/mtd-utils/mkfs.ubifs/Android.mk
Hi,
Yes that has solved that build issue i had, however one that has been re-occuring is :
make: *** No rule to make target 'out/target/product/fsimx6dl_efusa9/obj/STATIC_LIBRARIES/librecovery_ui_imx_intermediates/export_includes', needed by 'out/target/product/fsimx6dl_efusa9/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
the library doesnt even exist its looking for!
Any help again would be greatly appreciated!!
Thanks Jonny
Hi
Jonny
Please make sure that "librecovery_ui_imx_intermediates" is available in external folder.
Thanks
Saurabh
Hi Saurabh,
Inthe event of it not being there in the folder should i just create one in the External folder?
Thanks Jonny
Please make sure that your source code is downloaded properly.
And clean the output folder and try to build again.
Yes, i had re downloaded and resynced the AOSP but this file is missing - i have copied the folder from the out dir from a previous AOSP
Any thought on what i should do?
Thanks Jonny
Hi,
I have checked my packages and these are both present on my machine. Any other ideas on what could be causing the problem?
Thanks Jonny