You are not logged in.

#1 2012-08-29 15:43:10

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

[SOLVED] Cyanogenmod build fails

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

#2 2012-08-29 18:02:39

ConnorBehan
Trusted User (TU)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,356
Website

Re: [SOLVED] Cyanogenmod build fails

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

#3 2012-08-29 18:44:03

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: [SOLVED] Cyanogenmod build fails

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

#4 2012-08-29 20:41:58

ConnorBehan
Trusted User (TU)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,356
Website

Re: [SOLVED] Cyanogenmod build fails

"/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

#5 2012-08-29 21:25:58

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: [SOLVED] Cyanogenmod build fails

Yes, it is there.

Offline

#6 2012-08-29 21:46:32

ConnorBehan
Trusted User (TU)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,356
Website

Re: [SOLVED] Cyanogenmod build fails

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

#7 2012-08-29 21:58:07

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: [SOLVED] Cyanogenmod build fails

I think I'll take the symlink approach because I know nothing about makefiles. Will try building tomorrow.
Thank you very much.

Offline

#8 2012-08-30 10:23:26

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: [SOLVED] Cyanogenmod build fails

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!  smile

Offline

#9 2012-08-30 18:18:33

ConnorBehan
Trusted User (TU)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,356
Website

Re: [SOLVED] Cyanogenmod build fails

Don't forget to mark [solved]!


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

Board footer

Powered by FluxBB