GNU Make 3.82 raises "make: free(): invalid next size (fast)" error when building AOSP

139 views
Skip to first unread message

Alexis ROBERT

unread,
Aug 24, 2010, 11:31:59 AM8/24/10
to android-porting
Hi,

I'm trying to build AOSP with ArchLinux for my Nexus One and I'm
having the following message during the build :

[root@athlon android-src]# LANG="" LC_ALL="" make adb
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=AOSP
TARGET_PRODUCT=full_passion
TARGET_BUILD_VARIANT=userdebug
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ALEXIS
============================================
find: `drm/java': No such file or directory
find: `drm/java': No such file or directory
external/qemu/Makefile.android:1101: warning: overriding recipe for
target `external/qemu/android/avd/hw-config-defs.h'
external/qemu/Makefile.android:933: warning: ignoring old recipe for
target `external/qemu/android/avd/hw-config-defs.h'
*** glibc detected *** make: free(): invalid next size (fast):
0x0d0e8ea0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6c7b1)[0xb775a7b1]
/lib/libc.so.6(+0x6d52b)[0xb775b52b]
/lib/libc.so.6(cfree+0x6d)[0xb775f1cd]
make[0x8050558]
make[0x804fad1]
make[0x80523c3]
make[0x804d078]
make[0x804d5c1]
make[0x804cbe4]
make[0x804ccbb]
make[0x805238c]
make[0x804d078]
make[0x804d5c1]
make[0x804cbe4]
make[0x804cda7]
make[0x804d51e]
make[0x804fe27]
make[0x804fad1]
make[0x80523c3]
make[0x804d078]
make[0x804d5c1]
make[0x804cbe4]
make[0x8064b18]
make[0x8065165]
make[0x805d5c7]
make[0x805eab1]
make[0x805dce1]
make[0x805eab1]
make[0x805ee8a]
make[0x8058def]
/lib/libc.so.6(__libc_start_main+0xe6)[0xb7704c76]
make[0x8049931]
======= Memory map: ========
08048000-0806c000 r-xp 00000000 08:03 153996 /usr/bin/make
0806c000-0806e000 rw-p 00023000 08:03 153996 /usr/bin/make
08ec1000-0d189000 rw-p 00000000 00:00 0 [heap]
b7300000-b7321000 rw-p 00000000 00:00 0
b7321000-b7400000 ---p 00000000 00:00 0
b7474000-b748f000 r-xp 00000000 08:03 136976 /usr/lib/libgcc_s.so.
1
b748f000-b7490000 rw-p 0001a000 08:03 136976 /usr/lib/libgcc_s.so.
1
b749b000-b759d000 rw-p 00000000 00:00 0
b759d000-b7605000 rw-p 00000000 00:00 0
b760d000-b76d4000 rw-p 00000000 00:00 0
b76d4000-b76e9000 r-xp 00000000 08:03 260630 /lib/
libpthread-2.12.1.so
b76e9000-b76ea000 ---p 00015000 08:03 260630 /lib/
libpthread-2.12.1.so
b76ea000-b76eb000 r--p 00015000 08:03 260630 /lib/
libpthread-2.12.1.so
b76eb000-b76ec000 rw-p 00016000 08:03 260630 /lib/
libpthread-2.12.1.so
b76ec000-b76ee000 rw-p 00000000 00:00 0
b76ee000-b7833000 r-xp 00000000 08:03 260637 /lib/libc-2.12.1.so
b7833000-b7835000 r--p 00145000 08:03 260637 /lib/libc-2.12.1.so
b7835000-b7836000 rw-p 00147000 08:03 260637 /lib/libc-2.12.1.so
b7836000-b7839000 rw-p 00000000 00:00 0
b7839000-b7840000 r-xp 00000000 08:03 260624 /lib/librt-2.12.1.so
b7840000-b7841000 r--p 00006000 08:03 260624 /lib/librt-2.12.1.so
b7841000-b7842000 rw-p 00007000 08:03 260624 /lib/librt-2.12.1.so
b7848000-b7849000 rw-p 00000000 00:00 0
b784b000-b784e000 rw-p 00000000 00:00 0
b784e000-b784f000 r-xp 00000000 00:00 0 [vdso]
b784f000-b786b000 r-xp 00000000 08:03 260647 /lib/ld-2.12.1.so
b786b000-b786c000 r--p 0001b000 08:03 260647 /lib/ld-2.12.1.so
b786c000-b786d000 rw-p 0001c000 08:03 260647 /lib/ld-2.12.1.so
bff6a000-bffa5000 rw-p 00000000 00:00 0 [stack]
Abort
[root@athlon android-src]#

I'm using GNU Make 3.82 (which is the latest version, released not so
far ago) and I've got the same error using ArchLinux x86_64 and i686
on two separate computers, so it's the same issue with two different
builds.

Does other people sucessfully built Android using GNU Make 3.82 ?
(before I report this to GNU Make mailing list)

Thanks :)

Alexis

Jim Huang

unread,
Aug 24, 2010, 1:56:52 PM8/24/10
to alexis...@gmail.com, android-porting
2010/8/24 Alexis ROBERT <alexis...@gmail.com>:
> Hi,
>

hi Alexis,

[...]


> I'm using GNU Make 3.82 (which is the latest version, released not so
> far ago) and I've got the same error using ArchLinux x86_64 and i686
> on two separate computers, so it's the same issue with two different
> builds.
>
> Does other people sucessfully built Android using GNU Make 3.82 ?
> (before I report this to GNU Make mailing list)
>

I took a try with the similar configurations.

GNU make 3.82 fails on Ubuntu Linux 10.04 (x86) as well.

Regards,
-jserv

linuxjet

unread,
Jan 6, 2011, 12:50:25 PM1/6/11
to android...@googlegroups.com, alexis...@gmail.com
I am having the same issue with make 3.82 and on slackware.  I reverted to 3.81 and everything seems to be working.
Reply all
Reply to author
Forward
0 new messages