Jump to content

Errors during CM10.1 build


Guest iAl3x

Recommended Posts

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!

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

Guest Shreps

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

Link to comment
Share on other sites

gkai can you upload your cm10.1 build ?

Here it is:

https://docs.google.com/file/d/0BypB1uTnFV4PV24wMHBRbVBTM3c/edit?usp=sharing

https://docs.google.com/file/d/0BypB1uTnFV4PVk9HeXZZUURUOFE/edit?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 ;-)

Link to comment
Share on other sites

Guest davidevinavil

@gkai Bootloop on your cm10.1 build:)

Android system is boot up or just kernel?

Any logcat or dmesg?

Edited by davidevinavil
Link to comment
Share on other sites

Guest Spacecaker

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
Link to comment
Share on other sites

Guest Spacecaker

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Guest razvankim

I can help testing your builds in -1 CPU type! Just give me PM and i will test it!

Good luck with developing and let's hope you'll bring cm10.1 on our acer.

Link to comment
Share on other sites

Guest Spacecaker

Better after using default CM10.1 libc.so, but now still have same graphic bootloop issue.

Logcat : http://pastebin.com/cAQuVHXC

dmesg : http://pastebin.com/3Dc7nybL

i think that we might be able to boot it if we modify framebuffer in kernel

Edited by Spacecaker
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.