jb4.2.2 compile error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

jb4.2.2 compile error

Jump to solution
2,281 Views
jonathansmyth
Contributor III

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

Labels (3)
Tags (3)
0 Kudos
Reply
1 Solution
1,823 Views
saurabh206
Senior Contributor III

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

View solution in original post

0 Kudos
Reply
11 Replies
1,823 Views
saurabh206
Senior Contributor III

Hi

Jonny

Try to install

sudo apt-get install liblzo2-dev uuid-dev


Thanks

Saurabh

0 Kudos
Reply
1,823 Views
jonathansmyth
Contributor III

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

0 Kudos
Reply
1,824 Views
saurabh206
Senior Contributor III

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

0 Kudos
Reply
1,823 Views
jonathansmyth
Contributor III

Hi,

i believe this will be correct - however where is this particular android.mk file located?

Thanks Jonny

0 Kudos
Reply
1,823 Views
saurabh206
Senior Contributor III

external/mtd-utils/mkfs.ubifs/Android.mk


0 Kudos
Reply
1,823 Views
jonathansmyth
Contributor III

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

0 Kudos
Reply
1,823 Views
saurabh206
Senior Contributor III

Hi

Jonny

Please make sure that "librecovery_ui_imx_intermediates" is available in external folder.

Thanks

Saurabh

0 Kudos
Reply
1,823 Views
jonathansmyth
Contributor III

Hi Saurabh,

Inthe event of it not being there in the folder should i just create one in the External folder?

Thanks Jonny

0 Kudos
Reply
1,823 Views
saurabh206
Senior Contributor III

Please make sure that your source code is downloaded properly.

And clean the output folder and try to build again.

0 Kudos
Reply
1,823 Views
jonathansmyth
Contributor III

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

0 Kudos
Reply
1,823 Views
jonathansmyth
Contributor III

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

0 Kudos
Reply