Jump to content


Photo

Errors during CM10.1 build

- - - - -

  • Please log in to reply
118 replies to this topic

#1
iAl3x

iAl3x

    Newbie

  • Members
  • Pip
  • 31 posts
  • Devices:acer s500 CPU_TYPE: 8260a-1
Hi!

I recently started to build CM10.1 as I can see nobody is working on custom ROMs for this device...I started to edit vache's device and vendor tree, but I'm still noob and I don't know where and what to start editing to work on android 4.2.2...So can anyone point me what to do or where to start editing I would be glad to hear your tips or advice as I want an working CM10.1 build for Acer...

I tried to build it with the minor changes I've made but it gave me many errors...I've managed to get over some of them but now I'm stuck at this:
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:184:28: error: use of undeclared identifier 'RS_CMD_ID_ContextInitToClient'; did you mean 'RF_ContextInitToClient'?
	    const uint32_t cmdID = RS_CMD_ID_ContextInitToClient;
												   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
												   RF_ContextInitToClient
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:181:13: note: 'RF_ContextInitToClient' declared here
static void RF_ContextInitToClient (RsContext rsc)
					    ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:184:20: error: cannot initialize a variable of type 'const uint32_t' (aka 'const unsigned int') with an lvalue of type 'void (RsContext)'
	    const uint32_t cmdID = RS_CMD_ID_ContextInitToClient;
								   ^	   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# configuration written to .config
#
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:197:5: error: use of undeclared identifier 'rsi_ContextDeinitToClient'; did you mean 'rsContextDeinitToClient'?
	    rsi_ContextDeinitToClient((Context *)rsc);
	    ^~~~~~~~~~~~~~~~~~~~~~~~~
	    rsContextDeinitToClient
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiFuncDecl.h:21:6: note: 'rsContextDeinitToClient' declared here
void rsContextDeinitToClient (RsContext rsc);
		 ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:60:64: error: unknown type name 'RS_CMD_AllocationSetSurface'
	    const RS_CMD_AllocationSetSurface *cmd = static_cast<const RS_CMD_AllocationSetSurface *>(vp);
																														   ^
make[1]: Leaving directory `/home/alex/CM10.1/android/system/kernel/acer/swing'
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:203:28: error: use of undeclared identifier 'RS_CMD_ID_ContextDeinitToClient'; did you mean 'RF_ContextDeinitToClient'?
	    const uint32_t cmdID = RS_CMD_ID_ContextDeinitToClient;
												   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
												   RF_ContextDeinitToClient
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:200:13: note: 'RF_ContextDeinitToClient' declared here
static void RF_ContextDeinitToClient (RsContext rsc)
					    ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:203:20: error: cannot initialize a variable of type 'const uint32_t' (aka 'const unsigned int') with an lvalue of type 'void (RsContext)'
	    const uint32_t cmdID = RS_CMD_ID_ContextDeinitToClient;
								   ^	   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:216:12: error: use of undeclared identifier 'rsi_TypeCreate'; did you mean 'rsTypeCreate'?
	    return rsi_TypeCreate((Context *)rsc, e, dimX, dimY, dimZ, mips, faces);
				   ^~~~~~~~~~~~~~
				   rsTypeCreate
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiFuncDecl.h:22:8: note: 'rsTypeCreate' declared here
RsType rsTypeCreate (RsContext rsc, RsElement e, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mips, bool faces);
		   ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:68:11: error: unknown type name 'RS_CMD_AllocationIoSend'
	    const RS_CMD_AllocationIoSend *cmd = static_cast<const RS_CMD_AllocationIoSend *>(vp);
				  ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:222:28: error: use of undeclared identifier 'RS_CMD_ID_TypeCreate'
	    const uint32_t cmdID = RS_CMD_ID_TypeCreate;
												   ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:68:60: error: unknown type name 'RS_CMD_AllocationIoSend'
	    const RS_CMD_AllocationIoSend *cmd = static_cast<const RS_CMD_AllocationIoSend *>(vp);
																												   ^
fatal error: too many errors emitted, stopping now [-ferror-limit]
make: *** [/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsScriptC_Lib.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsScriptC_LibGL.o] Error 1
make: *** [/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsThreadIO.o] Error 1
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:74:11: error: unknown type name 'RS_CMD_AllocationIoReceive'
	    const RS_CMD_AllocationIoReceive *cmd = static_cast<const RS_CMD_AllocationIoReceive *>(vp);
				  ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:74:63: error: unknown type name 'RS_CMD_AllocationIoReceive'
	    const RS_CMD_AllocationIoReceive *cmd = static_cast<const RS_CMD_AllocationIoReceive *>(vp);
																														  ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:80:11: error: unknown type name 'RS_CMD_ContextFinish'
	    const RS_CMD_ContextFinish *cmd = static_cast<const RS_CMD_ContextFinish *>(vp);
				  ^
20 errors generated.
make: *** [/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.o] Error 1
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:80:57: error: unknown type name 'RS_CMD_ContextFinish'
	    const RS_CMD_ContextFinish *cmd = static_cast<const RS_CMD_ContextFinish *>(vp);
																											    ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:81:5: error: use of undeclared identifier 'rsi_ContextFinish'; did you mean 'rsContextFinish'?
	    rsi_ContextFinish(con);
	    ^~~~~~~~~~~~~~~~~
	    rsContextFinish
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiFuncDecl.h:31:6: note: 'rsContextFinish' declared here
void rsContextFinish (RsContext rsc);
		 ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:86:11: error: unknown type name 'RS_CMD_ContextBindRootScript'
	    const RS_CMD_ContextBindRootScript *cmd = static_cast<const RS_CMD_ContextBindRootScript *>(vp);
				  ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:86:65: error: unknown type name 'RS_CMD_ContextBindRootScript'
	    const RS_CMD_ContextBindRootScript *cmd = static_cast<const RS_CMD_ContextBindRootScript *>(vp);
																															    ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:92:11: error: unknown type name 'RS_CMD_ContextBindProgramStore'
	    const RS_CMD_ContextBindProgramStore *cmd = static_cast<const RS_CMD_ContextBindProgramStore *>(vp);
				  ^
/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:92:67: error: unknown type name 'RS_CMD_ContextBindProgramStore'
	    const RS_CMD_ContextBindProgramStore *cmd = static_cast<const RS_CMD_ContextBindProgramStore *>(vp);
																																  ^
fatal error: too many errors emitted, stopping now [-ferror-limit]
20 errors generated.
make: *** [/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.o] Error 1

Can someone help me with this?
Thanks!

  • 0

#2
paugustin

paugustin

    Enthusiast

  • Members
  • PipPipPip
  • 157 posts
  • Gender:Male
  • Devices:Acer Liquid E2
  • Twitter:@acerclubfr
I can't help you but Vache and davidevinavil both tried to build CM10.1. They have been unable to make it work so far and they are quite experienced with this, Vache probably being the most prolific dev on Acer devices :D

That's why they both focused on CM10 so far.

I guess their biggest issue was that although they could compile a ROM, it would boot but without display...

  • 0

#3
Spacecaker

Spacecaker

    Diehard

  • Members
  • PipPipPipPip
  • 481 posts
  • Gender:Male
  • Devices:Acer S500 CloudMobile
display is because of kernel
kernel needs to have updated display drivers and moddifying/porting them is hard

  • 0

#4
gkai

gkai

    Regular

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Devices:Acer S500 Cloudmobile
I have a compiling 10.1....but unfortunately it is of no real help for now, as it bootloop with its native kernel, and hang on boot with the CM10 kernel compiled by davi. At this point, I am not exactly sure how to build a booting kernel for CM10 (using the one provided by davi works though) and that's the point I'd like to understand before going further with CM10.1. The change I had to make to get CM10.1 to compile were not too big, mostly I took the CM10 device tree, de-activated FM and change a few things mainly related to camera interface (so I did not expect camera to work), but hoped to have a booting CM10.1.

  • 0

#5
Spacecaker

Spacecaker

    Diehard

  • Members
  • PipPipPipPip
  • 481 posts
  • Gender:Male
  • Devices:Acer S500 CloudMobile
can you take logcat of the non booting rom >?
maybe egl or hgl is confronting as for cm10;1 to boot we need to fix display drivers

  • 0

#6
gkai

gkai

    Regular

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Devices:Acer S500 Cloudmobile

can you take logcat of the non booting rom >?
maybe egl or hgl is confronting as for cm10;1 to boot we need to fix display drivers

yeah I will try that this WE, first I will sync my 10.1 with the repos and recompile it (should be ok, I did it many times already and only once did it break the compilation - fixed in the next commits). Not sure if there will be time for a logcat though, seems to bootloop quite early so I expect ADB service is not launched yet. A dmesg would be nice, but I do not know how to extract it from the device without having ADB access...

  • 0

#7
Shreps

Shreps

    Regular

  • Members
  • PipPip
  • 55 posts
  • Gender:Male
  • Devices:Samsung GT-i9100 & Acer S500
  • Twitter:@shr3ps
Be sure to enable ADB in the build.prop
And yes, hope your Kernel boot, ADB starts after the Kernel

Or you can try to add some shell script in init.d / init.rc to dump dmesg in /sdcard/ for example

  • 0

#8
Spacecaker

Spacecaker

    Diehard

  • Members
  • PipPipPipPip
  • 481 posts
  • Gender:Male
  • Devices:Acer S500 CloudMobile
gkai can you upload your cm10.1 build ?

  • 0

#9
gkai

gkai

    Regular

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Devices:Acer S500 Cloudmobile

gkai can you upload your cm10.1 build ?


Here it is:
https://docs.google....dit?usp=sharing
https://docs.google....dit?usp=sharing

md5sum and .zip...

repo synced just 20 minutes ago and recompiled, but not tested....I would be very surprised if it does not bootloop, but it compile without error ;-)

  • 0

#10
davidevinavil

davidevinavil

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,005 posts
  • Gender:Male
  • Location:Crevoladossola (VB)
  • Devices:Acer Liquid Metal
Can you share your device tree?

  • 0
If you like my work, offer me a beer

#11
razvankim

razvankim

    Diehard

  • Members
  • PipPipPipPip
  • 409 posts
  • Gender:Male
  • Location:Sibiu
  • Interests:Developing
  • Devices:Samsung Galaxy SIII I9300
  • Twitter:@none
@gkai Bootloop on your cm10.1 build:)

  • 0
Cheers | Hit THANKS if I helped you.
razvankim@MoDaCo

#12
davidevinavil

davidevinavil

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,005 posts
  • Gender:Male
  • Location:Crevoladossola (VB)
  • Devices:Acer Liquid Metal

@gkai Bootloop on your cm10.1 build:)


Android system is boot up or just kernel?
Any logcat or dmesg?

Edited by davidevinavil, 01 September 2013 - 04:44 PM.

  • 0
If you like my work, offer me a beer

#13
razvankim

razvankim

    Diehard

  • Members
  • PipPipPipPip
  • 409 posts
  • Gender:Male
  • Location:Sibiu
  • Interests:Developing
  • Devices:Samsung Galaxy SIII I9300
  • Twitter:@none
I power on the device .. and i have acer Logo then..it shuts down ..and it power on after 2 3 sec..and again and again the same

  • 0
Cheers | Hit THANKS if I helped you.
razvankim@MoDaCo

#14
Spacecaker

Spacecaker

    Diehard

  • Members
  • PipPipPipPip
  • 481 posts
  • Gender:Male
  • Devices:Acer S500 CloudMobile
its kernel problem
use cm10 boot.img

i will try to boot tonight ;)
i think i know what to do as it seems like same prob as on myold device

  • 0

#15
Spacecaker

Spacecaker

    Diehard

  • Members
  • PipPipPipPip
  • 481 posts
  • Gender:Male
  • Devices:Acer S500 CloudMobile
soinfo_relocate(linker.cpp:1013): cannot locate symbol "__memmove_chk" referenced by "/system/bin/sh"...CANNOT LINK EXECUTABLE

this is what i could get from adb logcat...

only this

i used CM10 boot.img
and moddified updater.script

it stays at bootlogo

sh file indeed doesnt exist
also when i added sh in bin or xbin i tried both and also together
i get exact same error

Edited by Spacecaker, 01 September 2013 - 08:17 PM.

  • 0

#16
Spacecaker

Spacecaker

    Diehard

  • Members
  • PipPipPipPip
  • 481 posts
  • Gender:Male
  • Devices:Acer S500 CloudMobile
about the linker.cpp on cm10 i could only find one

in external/mesa3d/src/glsl

maybe we need to modify line 1013 to be read properly from our device

will synch cm10.1 ;)
and try myself

can u give me link to ur device configs ? thank u

  • 0

#17
vache

vache

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,038 posts
  • Gender:Male
  • Devices:Acer CloudMobile
  • Twitter:@vachounet
Looks like because compiled libc.so is overwrited by the one in our vendor/device tree (Acer one). You may try to use libc.so from another cm10.1 ROM or don't use the Acer one.

Edited by vache, 02 September 2013 - 12:30 PM.

  • 0

#18
gkai

gkai

    Regular

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Devices:Acer S500 Cloudmobile

Looks like because compiled libc.so is overwrited by the one in our vendor/device tree (Acer one). You may try to use libc.so from another cm10.1 ROM or don't use the Acer one.


Thanks Vache, I will (try to) try that ;)

How do you want I share my device tree? patch? share the whole directory on my gdrive?

  • 0

#19
vache

vache

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,038 posts
  • Gender:Male
  • Devices:Acer CloudMobile
  • Twitter:@vachounet
It could be better using Github ;)

Edited by vache, 02 September 2013 - 02:28 PM.

  • 0

#20
gkai

gkai

    Regular

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Devices:Acer S500 Cloudmobile

It could be better using Github ;)


Indeed...but, in addition to being a complete noob using git (I know just enough to clone repositories, I don't know how to commit anything, don't even know how to do a diff...), wouldn't comiting something that do not even boot be a little bit wrong? ;-) Anyway, if creating a new github or commiting my change into your device tree/ vendor tree is the way to go, is there a link where I can learn how to do it?

Thanks!

  • 1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users