ICS full_x86-eng build failure (Ubuntu 11.10 x64)

1,934 views
Skip to first unread message

Ron M

unread,
Nov 15, 2011, 7:34:21 AM11/15/11
to Android Building
Hi All,
I started a new project, new init  (android-4.0.1_r1), new sync, and lunched the full_x86-eng .

According to the build output, the GCC version used is:
 ~/Android/ICS$ prebuilt/linux-x86/toolchain/i686-android-linux-4.4.3/bin/i686-android-linux-gcc --version
i686-android-linux-gcc (GCC) 4.4.3


Now, I get the following errors. Does anyone know how to get around then? I remember I ran into similar issues with the  2.3.7_r1  branch of the gingerbread project, whereas I did not 
run to such on the master branch:


Did anyone run into such errors? From what I remember in the 2.3.7_r1, there were some workarounds with (please be sitted) - cherry-pick. I sure hope, and quite confident that there is no way it 
is the case now - and that I just have something messed up in my environment or something.



Error is below:

external/yaffs2/yaffs2/yaffs_guts.h:888:6: note: previous declaration of ‘yaffs_InitialiseTags’ was here
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
In file included from external/yaffs2/yaffs2/yaffs_tagsvalidity.c:17:0:
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: 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
external/yaffs2/yaffs2/utils/mkyaffs2image.c: In function ‘write_object_header’:
external/yaffs2/yaffs2/utils/mkyaffs2image.c:195:26: warning: array subscript is above array bounds [-Warray-bounds]
external/yaffs2/yaffs2/utils/mkyaffs2image.c:195:19: warning: array subscript is above array bounds [-Warray-bounds]
external/yaffs2/yaffs2/utils/mkyaffs2image.c:196:26: warning: array subscript is above array bounds [-Warray-bounds]
external/yaffs2/yaffs2/utils/mkyaffs2image.c:196:19: warning: array subscript is above array bounds [-Warray-bounds]
host C++: post_trace <= sdk/emulator/qtools/post_trace.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<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
make: *** Waiting for unfinished jobs....
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
?\*\*\*                                                                                                                                                                11060,7       Bot

Jean-Baptiste Queru

unread,
Nov 15, 2011, 12:48:25 PM11/15/11
to android-...@googlegroups.com
You're probably trying to build on Ubuntu 11.10 or something similar
(i.e. with a recent host gcc), and that's only (somewhat) supported in
the master branch. Older branches like android-4.0.1_r1 and ics-mr0
require Ubuntu 10.04, which is currently the most recent LTS.

JBQ

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

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Conley Owens

unread,
Nov 15, 2011, 12:48:38 PM11/15/11
to android-...@googlegroups.com
Building those branches is only supported on 10.04. We have
experimental support for Ubuntu 11.10 in master, where issues such as
this one have been fixed.

http://code.google.com/p/android/issues/detail?id=20795

~cco3

On Tue, Nov 15, 2011 at 4:34 AM, Ron M <ron...@gmail.com> wrote:

Ron M

unread,
Nov 15, 2011, 1:11:55 PM11/15/11
to android-...@googlegroups.com

ok!
that makes sense. I am indeed using the notorious 11.10.

are future tags expected to be supported on 11.10?

thanks

Conley Owens

unread,
Nov 15, 2011, 1:15:14 PM11/15/11
to android-...@googlegroups.com
We will try to maintain support for newer versions of Ubuntu in future
tags, but only experimentally. We can only guarantee support for
building on 10.04.

~cco3

Ron M

unread,
Nov 15, 2011, 2:38:08 PM11/15/11
to android-...@googlegroups.com

it's probably not the place to ask, but does anyone know of a friendly way to roll back ubuntu installation?

Conley Owens

unread,
Nov 15, 2011, 3:00:01 PM11/15/11
to android-...@googlegroups.com
As far as I'm aware, there isn't one.

However, if you want to keep your current configuration, you can try
building master or cherry picking commits from the master branch that
fix the issues your are running into. The difference between
android-4.0.1_r1 and master should be very tiny, so it wouldn't be
much to look through.

~cco3

fattire

unread,
Nov 15, 2011, 9:59:28 PM11/15/11
to Android Building
FWIW:

https://github.com/CyanogenMod/android_build/commit/fddf23f19e7604e6c5b3c5377e7ff6293539a1da



On Nov 15, 10:11 am, Ron M <ron...@gmail.com> wrote:
> ok!
> that makes sense. I am indeed using the notorious 11.10.
>
> are future tags expected to be supported on 11.10?
>
> thanks
Reply all
Reply to author
Forward
0 new messages