aosp/master build error on ubuntu 11.10 - "No rule to make target ... ... libext.a"?

890 views
Skip to first unread message

Stephen L.

unread,
Dec 28, 2011, 12:43:02 PM12/28/11
to Android Building
Can anyone shed some light on the following build error when compiling
AOSP/master on Ubuntu 11.10 64-bit?

Notice file: external/dnsmasq/src/NOTICE -- out/target/product/generic/
obj/NOTICE_FILES/src//system/bin/
dnsmasq.txt
Notice file: frameworks/base/cmds/dumpsys/NOTICE -- out/target/product/
generic/obj/NOTICE_FILES/src//system/bin/
dumpsys.txt
Notice file: external/fsck_msdos/NOTICE -- out/target/product/generic/
obj/NOTICE_FILES/src//system/bin/
fsck_msdos.txt
Notice file: external/zlib/NOTICE -- out/target/product/generic/obj/
NOTICE_FILES/src//system/bin/
gzip.txt
make: *** No rule to make target `out/target/product/generic/obj/
STATIC_LIBRARIES/libext_intermediates/libext.a', needed by `out/target/
product/generic/obj/EXECUTABLES/ip6tables_intermediates/LINKED/
ip6tables'.
Stop.
make: *** Waiting for unfinished
jobs....

I keep running into this but haven't seen anyone mention it.
I've installed all packages as listed on the AOSP building page.

I ran the following at the root of the project.
. build/envsetup.sh && make clobber && lunch full-eng && make
CC=gcc-4.4 CXX=g++-4.4 -j4
(I tried gcc 4.4 as per this page: http://mjanja.co.ke/2011/11/building-android-4-0-on-ubuntu-11-10
but the default gcc (4.6) on Ubuntu 11.10 also has this problem)

The source is untouched and sync'd as of this morning.

Thanks.

Jean-Baptiste Queru

unread,
Dec 28, 2011, 1:14:56 PM12/28/11
to android-...@googlegroups.com
Odd.

ip6tables depends on libext indeed. This is defined in line 75 in
external/iptables/iptables/Android.mk

I'm able to make libext from scratch in a clean build (i.e. "make libext").

The makefile for libext is external/iptables/extensions/Android.mk,
starting in line 26 (and it's admittedly a fair bit messy, because of
the complexity involved in building that library).

On a clean build (rm -rf out/), can you run "source build/envsetup.sh
; lunch full-eng ; make libext" ?

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.

Stephen L.

unread,
Dec 28, 2011, 3:49:48 PM12/28/11
to Android Building
This fails with:

Checking build tools
versions...
/bin/bash: line 0: cd: cts/tools/cts-native-xml-generator/src/res: No
such file or directory
make: *** No rule to make target `libext'.
Stop.

I thought maybe the repo was corrupted and/or missing files but on
another 10.04 LTS machine that I've successfully compiled AOSP source
and cyanogenmod on, "make libext" succeeds (using exact same source).

It seems to be my setup on the 11.10 box but I'm at a loss as to what.

Thanks.

Stephen L.

unread,
Dec 28, 2011, 6:33:44 PM12/28/11
to Android Building
Sorry, looks like a filesystem issue. I have two virtual machines
(Ubuntu 10.04 and 11.10) pointing to the same NFS source. For some
reason the 11.10 machine doesn't see some files in the iptables/
extensions directory, complaining about too many levels of symbolic
links.

Doesn't look like a building issue.

Thanks for pointing me in the right direction.

Jean-Baptiste Queru

unread,
Dec 28, 2011, 6:39:39 PM12/28/11
to android-...@googlegroups.com
Yup, that would explain it. Glad you could figure it out. Sorry for
the annoyance.

JBQ

Stephen L.

unread,
Dec 30, 2011, 12:43:00 PM12/30/11
to Android Building
No worries. Thanks for your help to the community, JBQ.

I guess most people build locally, but in case anyone runs into this,
there looks to be issues with particular NFS clients and server
combinations with directories that contain large numbers of files. I
have another ubuntu 11.10 server hooked up to another NFS share
without this problem.

On the problematic system, when I did an "ls Android.mk" in external/
iptables/extensions, I go the "two many levels of symbolic links"
error and Android.mk didn't show up in the listing. Doing "less
Android.mk" showed the file contents so it was clearly there.

This may be related: https://bugzilla.redhat.com/show_bug.cgi?id=739222
Reply all
Reply to author
Forward
0 new messages