You are not logged in.
Hi guys.
I'm running x64 Arch and trying to build Cyanogenmod 10 for my Xperia Mini Pro aka Mango.
I have setup build environment following this guide, Android arch wiki page and plenty of other guides and tutorials on CM wiki and XDA.
With that said, I'm pretty sure I have all of the dependencies in place.
Now the hard part.
Build is failing with following (full build output):
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
Device TableGen (gen-register-info): libLLVMX86Disassembler <= external/llvm/lib/Target/X86/Disassembler/../X86.td
Host Clang TableGen: arm_neon.h (gen-arm-neon) <= external/clang/include/clang/Basic/arm_neon.td
Host TableGen: libLLVMWrap (gen-intrinsic) <= frameworks/compile/libbcc/bcinfo/Wrap/../../../../../external/llvm/include/llvm/Intrinsics.td
INSTALL drivers/scsi/scsi_wait_scan.ko
Host TableGen: libLLVMBitReader_2_7 (gen-intrinsic) <= frameworks/compile/libbcc/bcinfo/BitReader_2_7/../../../../../external/llvm/include/llvm/Intrinsics.td
Host TableGen: libLLVMBitReader_3_0 (gen-intrinsic) <= frameworks/compile/libbcc/bcinfo/BitReader_3_0/../../../../../external/llvm/include/llvm/Intrinsics.td
WebCore Yacc: libwebcore <= external/webkit/Source/WebCore/css/CSSGrammar.y
DEPMOD 2.6.32.9-FXP
ERROR: could not open directory /home/fuchs/build/cyanogenmod_10/out/target/product/mango/obj/KERNEL_OBJ/../../system/usr/lib/modules/2.6.32.9-FXP: No such file or directory
FATAL: could not search modules: No such file or directory
make[2]: *** [_modinst_post] Error 1
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/fuchs/build/cyanogenmod_10/kernel/semc/msm7x30'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
WebCore Yacc: libwebcore <= external/webkit/Source/WebCore/xml/XPathGrammar.y
Nobody on XDA was able to help me, but I did run into this which made me think this is something Arch specific.
Any help is greatly appreciated.
Last edited by Šaran (2012-08-30 18:50:01)
Offline
Does it have to do with Arch putting modules in /usr/lib instead of /lib?
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
Shouldn't symlink be taking care of anything that needs /lib? But if that is a problem, then I have no idea what to do about it.
Offline
"/home/fuchs/build/cyanogenmod_10/out/target/product/mango/system/usr/lib/modules/2.6.32.9-FXP" is a directory that the Makefile thinks exists in the source tree. Does that same directory without the "usr" exist in the source tree?
This seems like the type of problem where a path needs to be edited by hand.
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
Yes, it is there.
Offline
Yeah so the Makefile must be doing something stupid like:
* Find out where modules in the system are stored
* Compile things in $srcdir/out/target/product/mango/system/$THAT_DIRECTORY even though it might not exist
If it's too much trouble to fix the Makefile or wait for the maintainer to do so, a solution might be creating a symlink yourself to compensate:
mkdir /home/fuchs/build/cyanogenmod_10/out/target/product/mango/system/usr
ln -s /home/fuchs/build/cyanogenmod_10/out/target/product/mango/system/lib /home/fuchs/build/cyanogenmod_10/out/target/product/mango/system/usr/lib
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
I think I'll take the symlink approach because I know nothing about makefiles. Will try building tomorrow.
Thank you very much.
Offline
Package complete: /home/fuchs/build/cyanogenmod_10/out/target/product/mango/cm-10-20120830-UNOFFICIAL-mango.zip
611b3f2c4663320d5c7b8dc690234a30 cm-10-20120830-UNOFFICIAL-mango.zip
Thanks!
Offline
Don't forget to mark [solved]!
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline