Android O build problems

2,975 views
Skip to first unread message

RMApps Solution

unread,
Jul 13, 2018, 11:33:47 AM7/13/18
to Android Building
Hey all,
I have problems with building android o. When I add some module in vendor, i got error with modules.
Error is :
ninja: error: unknown target 'MODULES-IN-vendor-(folder)-(subfolder)"
16:49:33 ninja failed with: exit status 1
I am using Android.mk in folder and subfolders instead Android.bp

Any solution ?

Dan Willemsen

unread,
Jul 13, 2018, 12:32:12 PM7/13/18
to Android Building
This means that the build system never loaded any modules from that directory -- so either the Android.mk isn't being read (we stop reading at the first Android.mk we find when searching out from the root), or it's not defining any modules.

vendor/folder/Android.mk   <- this is the only one automatically read, ensure that it's using "include" to get subfolder/Android.mk
vendor/folder/subfolder/Android.mk

- Dan

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

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

RMApps Solution

unread,
Jul 17, 2018, 11:11:02 AM7/17/18
to android-...@googlegroups.com
Dear Dan, can you show me where in android system you stopped to check other Android.mk ( which is in subofolder) ?

On Fri, Jul 13, 2018 at 6:31 PM, 'Dan Willemsen' via Android Building <android-...@googlegroups.com> wrote:
This means that the build system never loaded any modules from that directory -- so either the Android.mk isn't being read (we stop reading at the first Android.mk we find when searching out from the root), or it's not defining any modules.

vendor/folder/Android.mk   <- this is the only one automatically read, ensure that it's using "include" to get subfolder/Android.mk
vendor/folder/subfolder/Android.mk

- Dan
On Fri, Jul 13, 2018 at 8:33 AM RMApps Solution <rm.apps....@gmail.com> wrote:
Hey all,
I have problems with building android o. When I add some module in vendor, i got error with modules.
Error is :
ninja: error: unknown target 'MODULES-IN-vendor-(folder)-(subfolder)"
16:49:33 ninja failed with: exit status 1
I am using Android.mk in folder and subfolders instead Android.bp

Any solution ?

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Dan Willemsen

unread,
Jul 18, 2018, 12:08:34 AM7/18/18
to Android Building
This didn't change in O, this behavior has existed for as long as I can remember. Some of the implementation details on how we find the top-level Android.mk files has changed from release to release (we moved from build/tools/findleaves.py, to a version in Kati, to a Go implementation in soong_ui in P). But the behavior is expected to be the same (minus some edge cases if you're doing something weird with symlinks or other filesystem tricks). And we've never automatically included Android.mk files that are shadowed beneath other Android.mk files.

You'll find plenty of Android.mk files that just call `include $(call all-subdir-makefiles)`, or ones that have other content, then at the end of the file call `include $(call all-makefiles-under,$(LOCAL_PATH))`

- Dan

On Tue, Jul 17, 2018 at 8:10 AM RMApps Solution <rm.apps....@gmail.com> wrote:
Dear Dan, can you show me where in android system you stopped to check other Android.mk ( which is in subofolder) ?
On Fri, Jul 13, 2018 at 6:31 PM, 'Dan Willemsen' via Android Building <android-...@googlegroups.com> wrote:
This means that the build system never loaded any modules from that directory -- so either the Android.mk isn't being read (we stop reading at the first Android.mk we find when searching out from the root), or it's not defining any modules.

vendor/folder/Android.mk   <- this is the only one automatically read, ensure that it's using "include" to get subfolder/Android.mk
vendor/folder/subfolder/Android.mk

- Dan
On Fri, Jul 13, 2018 at 8:33 AM RMApps Solution <rm.apps....@gmail.com> wrote:
Hey all,
I have problems with building android o. When I add some module in vendor, i got error with modules.
Error is :
ninja: error: unknown target 'MODULES-IN-vendor-(folder)-(subfolder)"
16:49:33 ninja failed with: exit status 1
I am using Android.mk in folder and subfolders instead Android.bp

Any solution ?

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

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

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

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

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

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages