Build Error in Nougat-x86

1,903 views
Skip to first unread message

David Byrne

unread,
Sep 30, 2016, 3:40:31 AM9/30/16
to Android-x86
I'm trying to build nougat-x86, but I'm getting this error message:

FAILED: /bin/bash -c "(build/core/tasks/check_boot_jars/check_boot_jars.py build/core/tasks/check_boot_jars/package_whitelist.txt /mnt/out/src/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/classes.jar /mnt/out/src/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/classes.jar ) && (mkdir -p /mnt/out/src/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/ && touch /mnt/out/src/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp )"

Error: /mnt/out/src/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar: unknown package name of class file org/android_x86/analytics/AnalyticsHelper.class


I've checked and the class file does exist in the jar in the proper package path. Any ideas?


Thank you,
David Byrne

Chih-Wei Huang

unread,
Sep 30, 2016, 3:43:04 AM9/30/16
to Android-x86
Your codebase is incomplete?
Check if you have
packages/services/Analytics/Utils/src/org/android_x86/analytics/AnalyticsHelper.java
--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Francois Gervais

unread,
Oct 27, 2016, 11:02:46 PM10/27/16
to Android-x86
I built the nougat-x86 branch today and I had to overcome this error and a couple others. Here's what I've done.

(I'm copy and pasting my bash history so these should be the actual commands I used)

First I synced with the following:

repo init -u git://git.osdn.net/gitroot/android-x86/manifest -b nougat-x86
repo sync

Then I had to manually clone google apf:

mkdir -p hardware/google/apf
cd hardware/google/apf
git clone https://android.googlesource.com/platform/hardware/google/apf .

Then fix the error David is talking about by adding the class to the whitelist:

diff --git a/core/tasks/check_boot_jars/package_whitelist.txt b/core/tasks/check_boot_jars/package_whitelist.txt
index 3cb6e28..39f52e2 100644
--- a/core/tasks/check_boot_jars/package_whitelist.txt
+++ b/core/tasks/check_boot_jars/package_whitelist.txt
@@ -227,3 +227,6 @@ org\.apache\.xalan\.extensions
org\.apache\.xalan\.processor
org\.apache\.xalan\.transformer
org\.apache\.xalan\.xslt
+
+
+org\.android_x86\.analytics

Then fix a couple warnings treated as error as per compiler parameters:

diff --git a/vendor_libs/test_vendor_lib/src/hci_transport.cc b/vendor_libs/test_vendor_lib/src/hci_transport.cc
index 8e64f71..2538faf 100644
--- a/vendor_libs/test_vendor_lib/src/hci_transport.cc
+++ b/vendor_libs/test_vendor_lib/src/hci_transport.cc
@@ -105,7 +105,7 @@ void HciTransport::OnFileCanWriteWithoutBlocking(int fd) {
CHECK(fd == GetVendorFd());
if (!outbound_events_.empty()) {
base::TimeTicks current_time = base::TimeTicks::Now();
- auto it = outbound_events_.begin();
+ //auto it = outbound_events_.begin();
// Check outbound events for events that can be sent, i.e. events with a
// timestamp before the current time. Stop sending events when
// |packet_stream_| fails writing.
@@ -149,7 +149,7 @@ void HciTransport::PostDelayedEventResponse(std::unique_ptr<EventPacket> event,
}

LOG_INFO(LOG_TAG, "Posting event response with delay of %lld ms.",
- delay.InMilliseconds());
+ (long long)delay.InMilliseconds());

AddEventToOutboundEvents(
std::make_unique<TimeStampedEvent>(std::move(event), delay));

I haven't investigated these issues to the root so it might be related to my setup in some way I'm not sure.

yisheng wu

unread,
Jul 23, 2017, 10:14:22 PM7/23/17
to Android-x86
Adding string 

"org\.android_x86\.analytics"

in

 build/core/tasks/check_boot_jars/package_whitelist.txt 
 
work for me , thx

在 2016年9月30日星期五 UTC+8下午3:40:31,David Byrne写道:

Suresh Kumar

unread,
Oct 6, 2017, 8:54:00 AM10/6/17
to Android-x86

We are facing compilation problem in external/mesa directory, after latest code change of 3 oct 17.

 

Also, there are

1.No options like :- repo init -u <address> -b refs/tags/<tagname> -m version.xml

2. No tags

 

Please give us a option like above, to do sync for older version of nougat-x86,

Regards,

Suresh

Suresh Kumar

unread,
Oct 9, 2017, 2:53:43 AM10/9/17
to Android-x86
Its now resolved .
But it will be better ,if we can have a specific TAG for current repository.

Chih-Wei Huang

unread,
Oct 9, 2017, 3:05:09 AM10/9/17
to Android-x86
2017-10-09 14:53 GMT+08:00 Suresh Kumar <sss420...@gmail.com>:
> Its now resolved .
> But it will be better ,if we can have a specific TAG for current repository.

We only tag after a stable release.

Anjani K

unread,
Oct 12, 2017, 12:35:09 AM10/12/17
to Android-x86
can you provide us a mechanism to get the old stable code

dgdn

unread,
Oct 12, 2017, 2:17:33 PM10/12/17
to Android-x86
resync'd my Oct 3 build of nougat-x86....all build correctly.....

video issue with youtube vids breaking-up.....will try download iso's...

regular vids from cnn website play fine though...??

Chih-Wei Huang

unread,
Oct 12, 2017, 10:08:52 PM10/12/17
to Android-x86
2017-10-13 2:17 GMT+08:00 dgdn <rbg...@gmail.com>:
> resync'd my Oct 3 build of nougat-x86....all build correctly.....
>
> video issue with youtube vids breaking-up.....will try download iso's...

youtube vids? What does it mean?

> regular vids from cnn website play fine though...??

Chih-Wei Huang

unread,
Oct 12, 2017, 10:11:04 PM10/12/17
to Android-x86
2017-10-12 12:35 GMT+08:00 Anjani K <anjani....@gmail.com>:
> can you provide us a mechanism to get the old stable code

What old stable code?

Anjani K

unread,
Oct 13, 2017, 2:27:26 AM10/13/17
to Android-x86

I synced sept-26 android-x86 code and it is working fine, after was that I synced again 10-04 the Android-x86 code is not compiling

so, just we need TAG or new branch to get the old sep-26 working code.

Chih-Wei Huang

unread,
Oct 13, 2017, 3:18:47 AM10/13/17
to Android-x86
2017-10-13 14:27 GMT+08:00 Anjani K <anjani....@gmail.com>:
>
> I synced sept-26 android-x86 code and it is working fine, after was that I
> synced again 10-04 the Android-x86 code is not compiling
>
> so, just we need TAG or new branch to get the old sep-26 working code.

You should always sync the latest code.
It builds, of course.

dgdn

unread,
Oct 13, 2017, 8:09:49 PM10/13/17
to Android-x86
just as described in release...videos from youtube are totally out of sync and unwatchable...

dgdn

unread,
Oct 13, 2017, 10:44:28 PM10/13/17
to Android-x86
also x86 only issue as follows....

selecting settings, sometimes it is there other times just a blank page....varies back and forth

Chih-Wei Huang

unread,
Oct 14, 2017, 9:32:32 AM10/14/17
to Android-x86
2017-10-14 10:44 GMT+08:00 dgdn <rbg...@gmail.com>:
> also x86 only issue as follows....
>
> selecting settings, sometimes it is there other times just a blank
> page....varies back and forth

What's your GPU?

dgdn

unread,
Oct 14, 2017, 10:12:27 AM10/14/17
to Android-x86
GMA X4500 Integrated graphics (Asus P5G41 motherboard)

dgdn

unread,
Oct 16, 2017, 7:25:00 PM10/16/17
to Android-x86
solved by using 4.4.34 kernel with defconfigs from 4.9.54 kernel.....settings disappearing on and off seems to be fine now with this build

dgdn

unread,
Oct 18, 2017, 5:32:01 PM10/18/17
to Android-x86
FWIW:

ok issues with existing nougat rc2 release I have with android-x86.iso......

- youtube video out of sync and unwatchable

- settings page will come and go, sometimes just a blank page, then it works, then it goes away again

- power off just runs forever, have to force it to shutdown

- dual boot with windows 10 time is always messed up after running live android-x86 USB.....

the first 2 of the above have been corrected for me by building with the previous nougat kernel 4.4.62

the last issue I have corrected long ago(2016) but then the "fix" was put in to code base...since then messed up
so I need to look at that again

the power-off issue I'm not sure about....

later....

youling 257

unread,
Oct 18, 2017, 8:23:54 PM10/18/17
to Android-x86
may be because CONFIG_SW_SYNC ?


Date: Tue, 18 Jul 2017 17:03:36 +0800
Subject: [PATCH 353/454] android-x86: enable CONFIG_SW_SYNC

This is necessary for hwcomposer.drm.

-# CONFIG_SW_SYNC is not set
+CONFIG_SW_SYNC=y

在 2017年10月17日星期二 UTC+8上午7:25:00,dgdn写道:

Chih-Wei Huang

unread,
Oct 19, 2017, 2:33:43 AM10/19/17
to Android-x86
2017-10-19 5:32 GMT+08:00 dgdn <rbg...@gmail.com>:
> FWIW:
>
> ok issues with existing nougat rc2 release I have with android-x86.iso......
>
> - youtube video out of sync and unwatchable

Did you mean the youtube app
or youtube embedded in a browser?
If the latter, it's a known issue.
But the youtube app has no problem.

> - settings page will come and go, sometimes just a blank page, then it
> works, then it goes away again

I only saw such an issue if there are some I/O errors.
For example, your files on the disk were corrupted.
(you can check dmesg to see if any error happened)

> - power off just runs forever, have to force it to shutdown

Works for me.

> - dual boot with windows 10 time is always messed up after running live
> android-x86 USB.....

No problem to me.

> the first 2 of the above have been corrected for me by building with the
> previous nougat kernel 4.4.62
>
> the last issue I have corrected long ago(2016) but then the "fix" was put in
> to code base...since then messed up
> so I need to look at that again
>
> the power-off issue I'm not sure about....

Which device and GPU did you use?
I don't see these issues on VM or any i965
devices (Skylate, Appolo Lake) I have.

dgdn

unread,
Oct 19, 2017, 10:33:12 PM10/19/17
to Android-x86
good it works for Skylake, Appolo Lake....maybe the main Webpage should change
so it's like Intel then......

"This is a project to port Android open source project to latest (within last 3 years) x86 platforms.....
others may not work correctly.....and I do understand that's because of lack of help and you have other things
to do.....appreciate all your time and will proceed with Linux for my older systems...thanks

Chih-Wei Huang

unread,
Oct 20, 2017, 1:30:39 AM10/20/17
to Android-x86
2017-10-20 10:33 GMT+08:00 dgdn <rbg...@gmail.com>:
> good it works for Skylake, Appolo Lake....maybe the main Webpage should
> change
> so it's like Intel then......

I didn't mean only Intel is supported.
I'd like to know what devices have the issues
that's why I asked what you tested exactly.
I only have very limited devices to test.
To support more devices we can rely on
the help from the community.
If you can provide useful debug info,
it may be solved.

Michael Goffioul

unread,
Oct 20, 2017, 8:25:24 AM10/20/17
to andro...@googlegroups.com
On Thu, Oct 19, 2017 at 2:33 AM, Chih-Wei Huang <cwh...@android-x86.org> wrote:
2017-10-19 5:32 GMT+08:00 dgdn <rbg...@gmail.com>:
> FWIW:
>
> ok issues with existing nougat rc2 release I have with android-x86.iso......
>
> - youtube video out of sync and unwatchable

Did you mean the youtube app
or youtube embedded in a browser?
If the latter, it's a known issue.

With the ffmpep VP9 codec enabled (and adaptive-playback disabled), Youtube videos are completely messed up. Is it the problem you're referring to?

Michael.


Reply all
Reply to author
Forward
0 new messages