• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help anyone know a darn thing about building source code?

nickdalzell

Extreme Android User
Jun 17, 2011
6,610
2,108
Owensboro, KY
Because no matter what i never can get this to work without it aborting for even the most insignificant error. this time i edited a few things and it at least attempted to build Cyanogenmod, but it gave this line of jargon and aborted. i can't make sense of it. it's gibberish as far as i am concerned...Google ain't no help either.

nickdalzell@ubuntu:~/Android$ . build/envsetup.sh
including device/motorola/jordan-common/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
nickdalzell@ubuntu:~/Android$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
Checking build tools versions...
grep: build/target/board/generic/recovery.fstab: No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
system/core/toolbox/Android.mk:90: warning: overriding recipe for target `out/target/product/generic/system/bin/lsof'
build/core/base_rules.mk:474: warning: ignoring old recipe for target `out/target/product/generic/system/bin/lsof'
*** glibc detected *** make: free(): invalid next size (fast): 0x0c90ff98 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6c0c1)[0x17c0c1]
/lib/libc.so.6(+0x6d930)[0x17d930]
/lib/libc.so.6(cfree+0x6d)[0x180a1d]
make[0x8050f68]
make[0x8050251]
make[0x8052484]
make[0x804d088]
make[0x804d6e1]
make[0x804d7a4]
make[0x804d9c6]
make[0x805244c]
make[0x804d088]
make[0x804d6e1]
make[0x804d7a4]
make[0x804d867]
make[0x804d52e]
make[0x80505df]
make[0x8050251]
make[0x8052484]
make[0x804d088]
make[0x804d6e1]
make[0x804d7a4]
make[0x80658a8]
make[0x8065a55]
make[0x805e0bf]
make[0x805f61d]
make[0x805e7da]
make[0x805f61d]
make[0x805fa12]
make[0x8059781]
/lib/libc.so.6(__libc_start_main+0xe7)[0x126ce7]
make[0x8049ac1]
======= Memory map: ========
00110000-00267000 r-xp 00000000 08:01 2367549 /lib/libc-2.12.1.so
00267000-00269000 r--p 00157000 08:01 2367549 /lib/libc-2.12.1.so
00269000-0026a000 rw-p 00159000 08:01 2367549 /lib/libc-2.12.1.so
0026a000-0026d000 rw-p 00000000 00:00 0
00481000-0049b000 r-xp 00000000 08:01 2359375 /lib/libgcc_s.so.1
0049b000-0049c000 r--p 00019000 08:01 2359375 /lib/libgcc_s.so.1
0049c000-0049d000 rw-p 0001a000 08:01 2359375 /lib/libgcc_s.so.1
00626000-00627000 r-xp 00000000 00:00 0 [vdso]
0069c000-006a3000 r-xp 00000000 08:01 2367540 /lib/librt-2.12.1.so
006a3000-006a4000 r--p 00006000 08:01 2367540 /lib/librt-2.12.1.so
006a4000-006a5000 rw-p 00007000 08:01 2367540 /lib/librt-2.12.1.so
00872000-0088e000 r-xp 00000000 08:01 2367533 /lib/ld-2.12.1.so
0088e000-0088f000 r--p 0001b000 08:01 2367533 /lib/ld-2.12.1.so
0088f000-00890000 rw-p 0001c000 08:01 2367533 /lib/ld-2.12.1.so
00c25000-00c3a000 r-xp 00000000 08:01 2367550 /lib/libpthread-2.12.1.so
00c3a000-00c3b000 ---p 00015000 08:01 2367550 /lib/libpthread-2.12.1.so
00c3b000-00c3c000 r--p 00015000 08:01 2367550 /lib/libpthread-2.12.1.so
00c3c000-00c3d000 rw-p 00016000 08:01 2367550 /lib/libpthread-2.12.1.so
00c3d000-00c3f000 rw-p 00000000 00:00 0
08048000-0806d000 r-xp 00000000 08:01 2240263 /usr/local/bin/make
0806d000-0806e000 r--p 00024000 08:01 2240263 /usr/local/bin/make
0806e000-0806f000 rw-p 00025000 08:01 2240263 /usr/local/bin/make
0806f000-08070000 rw-p 00000000 00:00 0
08555000-0cbc0000 rw-p 00000000 00:00 0 [heap]
b6f00000-b6f21000 rw-p 00000000 00:00 0
b6f21000-b7000000 ---p 00000000 00:00 0
b70bf000-b71d4000 rw-p 00000000 00:00 0
b72e9000-b736a000 rw-p 00000000 00:00 0
b7472000-b74f3000 rw-p 00000000 00:00 0
b74f3000-b76f3000 r--p 00000000 08:01 1968478 /usr/lib/locale/locale-archive
b76f3000-b76f5000 rw-p 00000000 00:00 0
b76f7000-b76f8000 rw-p 00000000 00:00 0
b76f9000-b7700000 r--s 00000000 08:01 1967860 /usr/lib/gconv/gconv-modules.cache
b7701000-b7703000 rw-p 00000000 00:00 0
b7703000-b7704000 r--p 002a1000 08:01 1968478 /usr/lib/locale/locale-archive
b7704000-b7706000 rw-p 00000000 00:00 0
bfeeb000-bff3d000 rw-p 00000000 00:00 0 [stack]
Aborted
nickdalzell@ubuntu:~/Android$
 
yeah it went over my head too...this is an attempt at building a Avail/Merit port of CM 7. but like my past experiences with Linux tooling this is often the result--and half the time i am not sure what went wrong or wtf the output means....

the Merit is a nice phone FWIW but without CyanogenMod and this halt at a standstill i'm considering finding some way to port the old Optimus V i had that ran the same ROM to work on Verizon. it's a CDMA phone tied to Sprint but a little hacking and i can port my number to Verizon's pre-paid. having a phone without the means to run CM 7 is a deal breaker. i wish i had known that before being sold on its $50 sale pricetag then.
 
  • Like
Reactions: Mikestony
Upvote 0
i think i got ahead of myself--i hadn't even edited the mk files properly nor pulled the necessary stuff from my phone yet. sorry, new developer here! i'm a total n00b to this! trying to build the CyanogenMod ROM without the stuff necessary to do so.

first mistake i made was trying to build using blade resources. the blade is using the ArmV7 chip. (no wonder it bootlooped when i tried flashing one of those!). what i need to do is edit all the files to match my device, pull some files from my device, and build from there.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones