Help error when making Android 4.0

1,031 views
Skip to first unread message

RANDYRKELLY

unread,
Nov 21, 2011, 12:44:11 AM11/21/11
to Android Building
Hello I was making my build and I'm getting this error in Ubuntu
11.10

randy@randy-HP-Pavilion-g6-Notebook-PC:~/android$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full_crespo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
build/core/main.mk:324: implicitly installing apns-conf_sdk.xml
build/core/Makefile:25: warning: overriding commands for target `out/
target/product/crespo/system/lib/libtinyalsa.so'
build/core/base_rules.mk:523: warning: ignoring old commands for
target `out/target/product/crespo/system/lib/libtinyalsa.so'
build/core/Makefile:25: warning: overriding commands for target `out/
target/product/crespo/system/etc/permissions/
android.software.live_wallpaper.xml'
build/core/Makefile:25: warning: ignoring old commands for target `out/
target/product/crespo/system/etc/permissions/
android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE crespo
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors

make: * [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/
Main.o] Error 1

Conley Owens

unread,
Nov 21, 2011, 12:49:05 PM11/21/11
to android-...@googlegroups.com
Hi,

This issue is fixed in master. Only the master branch is supported
for building in Ubuntu versions > 10.04.

Thanks!

> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

RANDYRKELLY

unread,
Nov 21, 2011, 2:08:12 PM11/21/11
to Android Building
Ok thanks, Ill sync the master and I'll be good,

RANDYRKELLY

unread,
Nov 21, 2011, 2:45:20 PM11/21/11
to Android Building
So I synced up master and did everything all over again and now 'm
getting this error

frameworks/compile/slang/slang_rs_export_foreach.cpp:247:23: error:
variable ‘ParamName’ set but not used [-Werror=unused-but-set-
variable]


cc1plus: all warnings being treated as errors

make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/
slang_rs_export_foreach.o] Error 1

Conley Owens

unread,
Nov 21, 2011, 3:05:59 PM11/21/11
to android-...@googlegroups.com
That change is also fixed in master. You probably need to re-init.

repo init -u https://android.googlesource.com/platform/manifest
repo sync

You may remember running the init command before with a -b option to
specify the branch. When you don't specify a branch, it defaults to
master.

RANDYRKELLY

unread,
Nov 21, 2011, 3:23:51 PM11/21/11
to Android Building
ok i did that prior to my last message and i got that last error i
sent. Think i need to get the files from the phone again

On Nov 21, 2:05 pm, Conley Owens <c...@android.com> wrote:
> That change is also fixed in master.  You probably need to re-init.
>

> repo init -uhttps://android.googlesource.com/platform/manifest

mike s

unread,
Dec 16, 2011, 9:19:23 PM12/16/11
to android-...@googlegroups.com
Hi,

I am having the same problem. I tried to download android 4.0 source and compile under ubuntu 11.10. 

And I have switched to master branch by doing these commands:
  146  repo sync
  147  source build/envsetup.sh
  148  lunch full-eng
  149  make -j4
  150  make clean
  151  make -j4

But I am still getting:
external/yaffs2/yaffs2/yaffs_tagsvalidity.h:23:6: warning: redundant redeclaration of ‘yaffs_InitialiseTags’ [-Wredundant-decls]
external/yaffs2/yaffs2/yaffs_guts.h:888:6: note: previous declaration of ‘yaffs_InitialiseTags’ was here
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
host C: parseStringTest <= external/srec/tools/parseStringTest/parseStringTest.c
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition

Thank you for any help.

nomego

unread,
Dec 18, 2011, 5:12:15 AM12/18/11
to Android Building
I had to explicitly set the master branch with repo init -u
https://android.googlesource.com/platform/manifest -b master
Reply all
Reply to author
Forward
0 new messages