build error with CCACHE

1,105 views
Skip to first unread message

anipan...@gmail.com

unread,
Sep 14, 2013, 4:39:18 PM9/14/13
to android-...@googlegroups.com
Hello!
when building CM10.2 without CCACHE, everything is OK.
but with USE_CCACHE=1, there is following error:

GEN /CM10_2/out/target/product/pyramid/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
Using /CM10_2/kernel/htc/msm8660 as source for kernel
/bin/sh: 1: Syntax error: "(" unexpected
make[4]: *** [scripts/mod/empty.o] Error 2
make[3]: *** [scripts/mod] Error 2
make[2]: *** [scripts] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/CM10_2/kernel/htc/msm8660'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....

anipan...@gmail.com

unread,
Sep 15, 2013, 5:08:21 AM9/15/13
to android-...@googlegroups.com
I found out this:
there is empty.c file and makefile with lines:

hostprogs-y := modpost mk_elfconfig
always := $(hostprogs-y) empty.o

modpost-objs := modpost.o file2alias.o sumversion.o

# dependencies on generated files need to be listed explicitly

$(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h

quiet_cmd_elfconfig = MKELF $@
cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@

$(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
$(call if_changed,elfconfig)

targets += elfconfig.h

like it want forcible create empty file(?)

Ani Panchvidze

unread,
Sep 16, 2013, 5:21:05 PM9/16/13
to android-...@googlegroups.com
PROBLEM SOLVED.

Because I made ccache directory inside CM, I wrote relative path for cache directory;
thus when compiler changed to Kernel directory, it failed to find ccache
When I wrote full path, error gone.


--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Kunal Goel

unread,
Feb 26, 2014, 5:27:40 AM2/26/14
to android-...@googlegroups.com
Can you please explain how exactly you fixed it....im facing similar issue
Reply all
Reply to author
Forward
0 new messages