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 126.96.36.199-FXP ERROR: could not open directory /home/fuchs/build/cyanogenmod_10/out/target/product/mango/obj/KERNEL_OBJ/../../system/usr/lib/modules/188.8.131.52-FXP: No such file or directory FATAL: could not search modules: No such file or directory make: *** [_modinst_post] Error 1 make: *** [sub-make] Error 2 make: 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)
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.
"/home/fuchs/build/cyanogenmod_10/out/target/product/mango/system/usr/lib/modules/184.108.40.206-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.
Yes, it is there.
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
I think I'll take the symlink approach because I know nothing about makefiles. Will try building tomorrow.
Thank you very much.
Package complete: /home/fuchs/build/cyanogenmod_10/out/target/product/mango/cm-10-20120830-UNOFFICIAL-mango.zip 611b3f2c4663320d5c7b8dc690234a30 cm-10-20120830-UNOFFICIAL-mango.zip