This is the failure from that log:

Out of memory error (version 1.3-rc6 'Douarn' (441800
> 22a11d4b264ae70e366aed3025ef47362d1522bb by [email protected]))
> .
> Java heap space.
> Try increasing heap size with java option '-Xmx<size>'.


The root problem here is that you don't have enough RAM (<4GB). Even if you
convince Jack to use more swap, extensive swap use is going to make your
builds take a very very long time. It looks like others have run into this
problem and documented how to increase the heap size (though they were
using 8GB): http://www.2net.co.uk/blog/jack-server.html

- Dan


On Mon, Mar 26, 2018 at 8:15 AM Itai <[email protected]> wrote:

> I setup a build environment following the instructions at
> https://source.android.com/setup/initializing
> with Nexus 5X binaries for Android 8.0.0 (OPR4.170623.020) inside
> VirtualBox 5.2.8
>
> The build fails. Please advise.
>
> jumbo@ubuntu-14:~/android$ lsb_release -a
> No LSB modules are available.
> Distributor ID:    Ubuntu
> Description:    Ubuntu 14.04.5 LTS
> Release:    14.04
> Codename:    trusty
>
> jumbo@ubuntu-14:~/android$ free -m
>              total       used       free     shared    buffers     cached
> Mem:          3951       2824       1127         14        189        934
> -/+ buffers/cache:       1700       2251
> Swap:        20479          5      20474
> jumbo@ubuntu-14:~/android$
>
> jumbo@ubuntu-14:~/android$ make -j4
> ============================================
> PLATFORM_VERSION_CODENAME=REL
> PLATFORM_VERSION=8.0.0
> TARGET_PRODUCT=aosp_x86
> TARGET_BUILD_VARIANT=eng
> TARGET_BUILD_TYPE=release
> TARGET_ARCH=x86
> TARGET_ARCH_VARIANT=x86
> HOST_ARCH=x86_64
> HOST_2ND_ARCH=x86
> HOST_OS=linux
> HOST_OS_EXTRA=Linux-4.4.0-116-generic-x86_64-with-Ubuntu-14.04-trusty
> HOST_CROSS_OS=windows
> HOST_CROSS_ARCH=x86
> HOST_CROSS_2ND_ARCH=x86_64
> HOST_BUILD_TYPE=release
> BUILD_ID=OPR4.170623.020
> OUT_DIR=/home/jumbo/output/android
> ============================================
> [38/38] bootstrap /home/jumbo/output/android/soong/.minibootstrap/
> build.ninja.in
> [4/4] /home/jumbo/output/android/soong/.bootstrap/bin/minibp
> /home/jumbo/output/android/soong/.bootstrap/build.ninja
> [621/622] glob vendor/*/*/Android.bp
> [40/40] /home/jumbo/output/android/soong/.bootstrap/bin/soong_build
> /home/jumbo/output/android/soong/build.ninja
> /home/jumbo/output/android/build-aosp_x86.ninja is missing, regenerating...
> Checking build tools versions...
> [9/973] including ./cts/Android.mk ...
> cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find:
> `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or
> directory
> build/core/java_common.mk:88: warning: FindEmulator: cd:
> cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res:
> No such file or directory
> build/core/java_common.mk:88: warning: FindEmulator: cd:
> cts/hostsidetests/backup/assets: No such file or directory
> cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23:
> warning: FindEmulator: find:
> `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such
> file or directory
> cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23:
> warning: FindEmulator: find:
> `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No
> such file or directory
> cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator:
> find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or
> directory
> cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find:
> `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java':
> No such file or directory
> [323/973] including ./external/toybox/Android.mk ...
> awk: line 1: syntax error at or near ,
> [355/973] including ./frameworks/av/media/libaaudio/Android.mk ...
> frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk:
> warning: input_monitor: unusual tags examples
> frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk:
> warning: write_sine: unusual tags examples
> [389/973] including ./frameworks/base/Android.mk ...
> ./frameworks/base/Android.mk:865: warning: FindEmulator: find:
> `frameworks/opt/telephony/src/java/android/provider': No such file or
> directory
> ./frameworks/base/Android.mk:874: warning: FindEmulator: find:
> `frameworks/opt/telephony/src/java/android/provider': No such file or
> directory
> ./frameworks/base/Android.mk:879: warning: FindEmulator: find:
> `frameworks/opt/telephony/src/java/android/provider': No such file or
> directory
> ./frameworks/base/Android.mk:884: warning: FindEmulator: find:
> `frameworks/opt/telephony/src/java/android/provider': No such file or
> directory
> [716/973] including ./system/sepolicy/Android.mk ...
> ./system/sepolicy/Android.mk:107: warning: BOARD_SEPOLICY_VERS not
> specified, assuming current platform version
> [973/973] including ./tools/tradefederation/core/Android.mk ...
> platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk:
> warning: continuous_instrumentation_metric_tests: Unknown installed file
> for module perf-setup.sh
> platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning:
> continuous_instrumentation_tests: Unknown installed file for module
> RecyclerViewTests
> platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning:
> continuous_instrumentation_tests: Unknown installed file for module
> SettingsFunctionalTests
> platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning:
> continuous_instrumentation_tests: Unknown installed file for module
> LauncherFunctionalTests
> platform_testing/build/tasks/tests/native_metric_test_list.mk: warning:
> continuous_native_metric_tests: Unknown installed file for module
> perf-setup.sh
> test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd:
> vendor/google_vts/testcases: No such file or directory
> test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd:
> vendor/google_vts/testcases: No such file or directory
> test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd:
> vendor/google_vts/testcases: No such file or directory
> ./test/vts/utils/python/archive/Android.mk:28: warning: overriding
> commands for target `default'
> ./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old
> commands for target `default'
> ./test/vts/utils/python/coverage/Android.mk:28: warning: overriding
> commands for target `default'
> ./test/vts/utils/python/archive/Android.mk:28: warning: ignoring old
> commands for target `default'
> [ 99% 956/957] glob test/vts/runners/target/vts_hal_hidl_target/Android.bp
> [  0% 54/62114] host Java: tagsouplib
> (/home/jumbo/output/androi...host/common/obj/JAVA_LIBRARIES/tagsouplib_intermediates/classes)
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  0% 59/62114] host Java: antlr-runtime
> (/home/jumbo/output/and...t/common/obj/JAVA_LIBRARIES/antlr-runtime_intermediates/classes)
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  0% 72/62114] host Java: jarjar
> (/home/jumbo/output/android/host/common/obj/JAVA_LIBRARIES/jarjar_intermediates/classes)
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> [  0% 188/62114] host Java: guavalib
> (/home/jumbo/output/android/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/classes)
> warning: [options] bootstrap class path not set in conjunction with
> -source 1.7
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 1 warning
> [  0% 197/62114] host Java: jsilver
> (/home/jumbo/output/android/host/common/obj/JAVA_LIBRARIES/jsilver_intermediates/classes)
> Note: external/jsilver/src/org/clearsilver/FactoryLoader.java uses
> unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  0% 206/62114] host Java: doclava
> (/home/jumbo/output/android/host/common/obj/JAVA_LIBRARIES/doclava_intermediates/classes)
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  0% 315/62114] target Java: core-all
> (/home/jumbo/output/andro...target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes)
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  0% 333/62114] target Java: libprotobuf-java-nano
> (/home/jumbo.../obj/JAVA_LIBRARIES/libprotobuf-java-nano_intermediates/classes)
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  0% 420/62114] target Java: core-libart
> (/home/jumbo/output/an...get/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes)
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  0% 429/62114] host C: libf2fs_fmt_host_dyn <=
> external/f2fs-tools/lib/libf2fs.c
> external/f2fs-tools/lib/libf2fs.c:472:32: warning: taking address of
> packed member 'total_sectors' of class or structure 'f2fs_configuration'
> may result in an unaligned pointer value [-Waddress-of-packed-member]
>                 if (ioctl(fd, BLKGETSIZE64, &c->total_sectors) < 0) {
>                                              ^~~~~~~~~~~~~~~~
> 1 warning generated.
> [  0% 434/62114] host C: fsck.f2fs <= external/f2fs-tools/lib/libf2fs.c
> external/f2fs-tools/lib/libf2fs.c:472:32: warning: taking address of
> packed member 'total_sectors' of class or structure 'f2fs_configuration'
> may result in an unaligned pointer value [-Waddress-of-packed-member]
>                 if (ioctl(fd, BLKGETSIZE64, &c->total_sectors) < 0) {
>                                              ^~~~~~~~~~~~~~~~
> 1 warning generated.
> [  0% 469/62114] host C: mdnsd <= external/mdnsresponder/mDNSCore/uDNS.c
> external/mdnsresponder/mDNSCore/uDNS.c:724:45: warning: taking address of
> packed member 'numAdditionals' of class or structure 'DNSMessageHeader' may
> result in an unaligned pointer value [-Waddress-of-packed-member]
>         ptr = PutResourceRecordTTLJumbo(msg, ptr, &msg->h.numAdditionals,
> opt, 0);
>                                                    ^~~~~~~~~~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/DNSCommon.h:201:47: note: expanded from
> macro 'PutResourceRecordTTLJumbo'
>         PutResourceRecordTTLWithLimit((msg), (ptr), (count), (rr), (ttl),
> (msg)->data + AbsoluteMaxDNSMessageData)
>                                                      ^~~~~
> external/mdnsresponder/mDNSCore/uDNS.c:904:106: warning: taking address of
> packed member 'u' of class or structure 'rdataOPT' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                 else if (opt && q->state ==
> LLQ_Established && opt->u.llq.llqOp == kLLQOp_Event &&
> mDNSSameOpaque64(&opt->u.llq.id, &q->id))
>
> ^~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSEmbeddedAPI.h:2395:36: note: expanded
> from macro 'mDNSSameOpaque64'
> #define mDNSSameOpaque64(A,B)    ((A)->l[0] == (B)->l[0] && (A)->l[1] ==
> (B)->l[1])
>                                    ^
> external/mdnsresponder/mDNSCore/uDNS.c:904:106: warning: taking address of
> packed member 'u' of class or structure 'rdataOPT' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                 else if (opt && q->state ==
> LLQ_Established && opt->u.llq.llqOp == kLLQOp_Event &&
> mDNSSameOpaque64(&opt->u.llq.id, &q->id))
>
> ^~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSEmbeddedAPI.h:2395:62: note: expanded
> from macro 'mDNSSameOpaque64'
> #define mDNSSameOpaque64(A,B)    ((A)->l[0] == (B)->l[0] && (A)->l[1] ==
> (B)->l[1])
>                                                              ^
> external/mdnsresponder/mDNSCore/uDNS.c:909:50: warning: taking address of
> packed member 'u' of class or structure 'rdataOPT' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                         ackEnd = putLLQ(&m->omsg,
> m->omsg.data, q, &opt->u.llq);
>
> ^~~~~~~~~~
> external/mdnsresponder/mDNSCore/uDNS.c:918:97: warning: taking address of
> packed member 'u' of class or structure 'rdataOPT' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                         if (q->state == LLQ_Established &&
> opt->u.llq.llqOp == kLLQOp_Refresh && mDNSSameOpaque64(&opt->u.llq.id,
> &q->id) && msg->h.numAdditionals && !msg->h.numAnswers)
>
> ^~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSEmbeddedAPI.h:2395:36: note: expanded
> from macro 'mDNSSameOpaque64'
> #define mDNSSameOpaque64(A,B)    ((A)->l[0] == (B)->l[0] && (A)->l[1] ==
> (B)->l[1])
>                                    ^
> external/mdnsresponder/mDNSCore/uDNS.c:918:97: warning: taking address of
> packed member 'u' of class or structure 'rdataOPT' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                         if (q->state == LLQ_Established &&
> opt->u.llq.llqOp == kLLQOp_Refresh && mDNSSameOpaque64(&opt->u.llq.id,
> &q->id) && msg->h.numAdditionals && !msg->h.numAnswers)
>
> ^~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSEmbeddedAPI.h:2395:62: note: expanded
> from macro 'mDNSSameOpaque64'
> #define mDNSSameOpaque64(A,B)    ((A)->l[0] == (B)->l[0] && (A)->l[1] ==
> (B)->l[1])
>                                                              ^
> external/mdnsresponder/mDNSCore/uDNS.c:928:27: warning: taking address of
> packed member 'u' of class or structure 'rdataOPT' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                                         SetLLQTimer(m, q,
> &opt->u.llq);
>
> ^~~~~~~~~~
> external/mdnsresponder/mDNSCore/uDNS.c:938:71: warning: taking address of
> packed member 'u' of class or structure 'rdataOPT' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                                 recvSetupResponse(m,
> msg->h.flags.b[1] & kDNSFlag1_RC_Mask, q, &opt->u.llq);
>
> ^~~~~~~~~~
> 8 warnings generated.
> [  0% 470/62114] host C: mdnsd <=
> external/mdnsresponder/mDNSCore/DNSCommon.c
> external/mdnsresponder/mDNSCore/DNSCommon.c:1885:48: warning: taking
> address of packed member 'numAnswers' of class or structure
> 'DNSMessageHeader' may result in an unaligned pointer value
> [-Waddress-of-packed-member]
>         return putEmptyResourceRecord(msg, ptr, end,
> &msg->h.mDNS_numPrereqs, &prereq);
>
> ^~~~~~~~~~~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/DNSCommon.c:1894:45: warning: taking
> address of packed member 'numAuthorities' of class or structure
> 'DNSMessageHeader' may result in an unaligned pointer value
> [-Waddress-of-packed-member]
>         ptr = PutResourceRecordTTLJumbo(msg, ptr, &msg->h.mDNS_numUpdates,
> rr, 0);
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/DNSCommon.h:201:47: note: expanded from
> macro 'PutResourceRecordTTLJumbo'
>         PutResourceRecordTTLWithLimit((msg), (ptr), (count), (rr), (ttl),
> (msg)->data + AbsoluteMaxDNSMessageData)
>                                                      ^~~~~
> external/mdnsresponder/mDNSCore/DNSCommon.c:1905:49: warning: taking
> address of packed member 'numAuthorities' of class or structure
> 'DNSMessageHeader' may result in an unaligned pointer value
> [-Waddress-of-packed-member]
>         ptr = PutResourceRecordTTLWithLimit(msg, ptr,
> &msg->h.mDNS_numUpdates, rr, 0, limit);
>
> ^~~~~~~~~~~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/DNSCommon.c:1957:45: warning: taking
> address of packed member 'numAdditionals' of class or structure
> 'DNSMessageHeader' may result in an unaligned pointer value
> [-Waddress-of-packed-member]
>         end = PutResourceRecordTTLJumbo(msg, end, &msg->h.numAdditionals,
> &rr.resrec, 0);
>                                                    ^~~~~~~~~~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/DNSCommon.h:201:47: note: expanded from
> macro 'PutResourceRecordTTLJumbo'
>         PutResourceRecordTTLWithLimit((msg), (ptr), (count), (rr), (ttl),
> (msg)->data + AbsoluteMaxDNSMessageData)
>                                                      ^~~~~
> external/mdnsresponder/mDNSCore/DNSCommon.c:1972:49: warning: taking
> address of packed member 'numAdditionals' of class or structure
> 'DNSMessageHeader' may result in an unaligned pointer value
> [-Waddress-of-packed-member]
>         end = PutResourceRecordTTLWithLimit(msg, end,
> &msg->h.numAdditionals, &rr.resrec, 0, limit);
>
> ^~~~~~~~~~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/DNSCommon.c:1994:53: warning: taking
> address of packed member 'numAdditionals' of class or structure
> 'DNSMessageHeader' may result in an unaligned pointer value
> [-Waddress-of-packed-member]
>                 newptr = PutResourceRecordTTLWithLimit(msg, end,
> &msg->h.numAdditionals, &hinfo.resrec, 0, limit);
>
> ^~~~~~~~~~~~~~~~~~~~~
> 6 warnings generated.
> [  0% 481/62114] host C: mdnsd <= external/mdnsresponder/mDNSCore/mDNS.c
> external/mdnsresponder/mDNSCore/mDNS.c:5462:61: warning: taking address of
> packed member 'numAnswers' of class or structure 'DNSMessageHeader' may
> result in an unaligned pointer value [-Waddress-of-packed-member]
>                         mDNSu8 *p = PutResourceRecordTTL(response,
> responseptr, &response->h.numAnswers, &rr->resrec,
>
> ^~~~~~~~~~~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/DNSCommon.h:198:47: note: expanded from
> macro 'PutResourceRecordTTL'
>         PutResourceRecordTTLWithLimit((msg), (ptr), (count), (rr), (ttl),
> (msg)->data + AllowedRRSpace(msg))
>                                                      ^~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:5474:61: warning: taking address of
> packed member 'numAdditionals' of class or structure 'DNSMessageHeader' may
> result in an unaligned pointer value [-Waddress-of-packed-member]
>                         mDNSu8 *p = PutResourceRecordTTL(response,
> responseptr, &response->h.numAdditionals, &rr->resrec,
>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> external/mdnsresponder/mDNSCore/DNSCommon.h:198:47: note: expanded from
> macro 'PutResourceRecordTTL'
>         PutResourceRecordTTLWithLimit((msg), (ptr), (count), (rr), (ttl),
> (msg)->data + AllowedRRSpace(msg))
>                                                      ^~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10220:37: warning: taking address
> of packed member 'spa' of class or structure 'ARP_EthIP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                         intf->ifname, msg, &arp->sha,
> &arp->spa, &arp->tpa, &rr->WakeUp.HMAC, &rr->WakeUp.IMAC,
> ARDisplayString(m, rr));
>
> ^~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSDebug.h:100:101: note: expanded from
> macro 'LogSPS'
>                 #define LogSPS( ... )           do { if
> (mDNS_LoggingEnabled) LogMsgWithLevel(MDNS_LOG_SPS,       __VA_ARGS__); }
> while (0)
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10220:48: warning: taking address
> of packed member 'tpa' of class or structure 'ARP_EthIP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                         intf->ifname, msg, &arp->sha,
> &arp->spa, &arp->tpa, &rr->WakeUp.HMAC, &rr->WakeUp.IMAC,
> ARDisplayString(m, rr));
>
> ^~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSDebug.h:100:101: note: expanded from
> macro 'LogSPS'
>                 #define LogSPS( ... )           do { if
> (mDNS_LoggingEnabled) LogMsgWithLevel(MDNS_LOG_SPS,       __VA_ARGS__); }
> while (0)
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10223:46: warning: taking address
> of packed member 'tpa' of class or structure 'ARP_EthIP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                 else if (msg == msg4) SendARP(m, 2, rr,
> &arp->tpa, &arp->sha, &arp->spa, &arp->sha);
>
> ^~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10223:68: warning: taking address
> of packed member 'spa' of class or structure 'ARP_EthIP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                 else if (msg == msg4) SendARP(m, 2, rr,
> &arp->tpa, &arp->sha, &arp->spa, &arp->sha);
>
> ^~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10248:20: warning: taking address
> of packed member 'spa' of class or structure 'ARP_EthIP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                                         &arp->sha,
> &arp->spa, &arp->tpa, ARDisplayString(m, rr));
>
> ^~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSDebug.h:100:101: note: expanded from
> macro 'LogSPS'
>                 #define LogSPS( ... )           do { if
> (mDNS_LoggingEnabled) LogMsgWithLevel(MDNS_LOG_SPS,       __VA_ARGS__); }
> while (0)
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10248:31: warning: taking address
> of packed member 'tpa' of class or structure 'ARP_EthIP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                                         &arp->sha,
> &arp->spa, &arp->tpa, ARDisplayString(m, rr));
>
> ^~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSDebug.h:100:101: note: expanded from
> macro 'LogSPS'
>                 #define LogSPS( ... )           do { if
> (mDNS_LoggingEnabled) LogMsgWithLevel(MDNS_LOG_SPS,       __VA_ARGS__); }
> while (0)
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10252:20: warning: taking address
> of packed member 'spa' of class or structure 'ARP_EthIP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                                         &arp->sha,
> &arp->spa, &arp->tpa, &rr->WakeUp.HMAC, &rr->WakeUp.IMAC,
> ARDisplayString(m, rr));
>
> ^~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSDebug.h:98:65: note: expanded from
> macro 'LogMsg'
>                 #define LogMsg( ... )
> LogMsgWithLevel(MDNS_LOG_MSG, __VA_ARGS__)
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10252:31: warning: taking address
> of packed member 'tpa' of class or structure 'ARP_EthIP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                                         &arp->sha,
> &arp->spa, &arp->tpa, &rr->WakeUp.HMAC, &rr->WakeUp.IMAC,
> ARDisplayString(m, rr));
>
> ^~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSDebug.h:98:65: note: expanded from
> macro 'LogMsg'
>                 #define LogMsg( ... )
> LogMsgWithLevel(MDNS_LOG_MSG, __VA_ARGS__)
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10305:36: warning: taking address
> of packed member 'target' of class or structure 'IPv6NDP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                         intf->ifname, msg, sha, spa,
> &ndp->target, &rr->WakeUp.HMAC, &rr->WakeUp.IMAC, ARDisplayString(m, rr));
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSDebug.h:100:101: note: expanded from
> macro 'LogSPS'
>                 #define LogSPS( ... )           do { if
> (mDNS_LoggingEnabled) LogMsgWithLevel(MDNS_LOG_SPS,       __VA_ARGS__); }
> while (0)
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10312:67: warning: taking address
> of packed member 'target' of class or structure 'IPv6NDP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                 else if (msg == msg4) SendNDP(m, NDP_Adv,
> NDP_Solicited, rr, &ndp->target, mDNSNULL, spa,          sha             );
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10313:67: warning: taking address
> of packed member 'target' of class or structure 'IPv6NDP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                 else if (msg == msg5) SendNDP(m, NDP_Adv,
> 0,             rr, &ndp->target, mDNSNULL, &AllHosts_v6, &AllHosts_v6_Eth);
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10326:36: warning: taking address
> of packed member 'target' of class or structure 'IPv6NDP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                 if (ndp->type == NDP_Adv) spa = &ndp->target;
>                                                  ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10335:77: warning: taking address
> of packed member 'target' of class or structure 'IPv6NDP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                                         ndp->type ==
> NDP_Sol ? "Solicitation " : "Advertisement", sha, spa, &ndp->target,
> ARDisplayString(m, rr));
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSDebug.h:100:101: note: expanded from
> macro 'LogSPS'
>                 #define LogSPS( ... )           do { if
> (mDNS_LoggingEnabled) LogMsgWithLevel(MDNS_LOG_SPS,       __VA_ARGS__); }
> while (0)
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNS.c:10339:19: warning: taking address
> of packed member 'target' of class or structure 'IPv6NDP' may result in an
> unaligned pointer value [-Waddress-of-packed-member]
>                                                         sha, spa,
> &ndp->target, &rr->WakeUp.HMAC, &rr->WakeUp.IMAC, ARDisplayString(m, rr));
>
> ^~~~~~~~~~~
> external/mdnsresponder/mDNSCore/mDNSDebug.h:98:65: note: expanded from
> macro 'LogMsg'
>                 #define LogMsg( ... )
> LogMsgWithLevel(MDNS_LOG_MSG, __VA_ARGS__)
>
> ^~~~~~~~~~~
> 16 warnings generated.
> [  0% 501/62114] host C: sqlite3 <= external/sqlite/dist/shell.c
> external/sqlite/dist/shell.c:4264:7: warning: unused parameter 'nVal'
> [-Wunused-parameter]
>   int nVal,
>       ^
> 1 warning generated.
> [  0% 504/62114] target Java: core-oj
> (/home/jumbo/output/android/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes)
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  0% 513/62114] host Java: ahat
> (/home/jumbo/output/android/host/common/obj/JAVA_LIBRARIES/ahat_intermediates/classes)
> warning: [options] bootstrap class path not set in conjunction with
> -source 1.7
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 1 warning
> [  0% 516/62114] target Java: okhttp
> (/home/jumbo/output/android/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes)
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  0% 570/62114] target Java: apache-xml
> (/home/jumbo/output/and...rget/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/classes)
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  0% 600/62114] target Java: ext
> (/home/jumbo/output/android/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes)
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [  2% 1599/62114] target  C: sh <= external/mksh/src/eval.c
> external/mksh/src/eval.c:623:21: warning: implicit conversion from 'int'
> to 'char' changes value from 192 to -64 [-Wconstant-conversion]
>                                                         *dp++ = 0x80 | '@';
>                                                               ~ ~~~~~^~~~~
> 1 warning generated.
> [  2% 1648/62114] target  C: toybox <= external/toybox/lib/linestack.c
> external/toybox/lib/linestack.c:46:22: warning: field 'ls' with variable
> sized type 'struct linestack' not at the end of a struct or class is a GNU
> extension [-Wgnu-variable-sized-type-not-at-end]
>     struct linestack ls;
>                      ^
> 1 warning generated.
> [  2% 1657/62114] target  C: toybox <=
> external/toybox/toys/android/getprop.c
> external/toybox/toys/android/getprop.c:56:39: warning: incompatible
> pointer types passing 'void (void *, const char *, const char *)' to
> parameter of type 'void (*)(void *, const char *, const char *, uint32_t)'
> (aka 'void (*)(void *, const char *, const char *, unsigned int)')
> [-Wincompatible-pointer-types]
>   __system_property_read_callback(pi, read_callback, NULL);
>                                       ^~~~~~~~~~~~~
> bionic/libc/include/sys/system_properties.h:60:12: note: passing argument
> to parameter 'callback' here
>     void (*callback)(void* cookie, const char *name, const char *value,
> uint32_t serial),
>            ^
> 1 warning generated.
> [  2% 1737/62114] target  C: toybox <= external/toybox/toys/pending/expr.c
> external/toybox/toys/pending/expr.c:247:24: warning: missing field 'i'
> initializer [-Wmissing-field-initializers]
>   struct value ret = {0};
>                        ^
> 1 warning generated.
> [  3% 1974/62114] Target buildinfo:
> /home/jumbo/output/android/t...t/generic_x86/obj/ETC/system_build_prop_intermediates/build.prop
> Target buildinfo from: build/target/board/generic_x86/system.prop
> [  3% 2266/62114] Ensuring Jack server is installed and started
> Writing client settings in /home/jumbo/.jack-settings
> Installing jack server in "/home/jumbo/.jack-server"
> Launching Jack server java -XX:MaxJavaStackTraceDepth=-1
> -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp
> /home/jumbo/.jack-server/launcher.jar
> com.android.jack.launcher.ServerLauncher
> [  3% 2269/62114] host Java: bouncycastle-host
> (/home/jumbo/outp...mmon/obj/JAVA_LIBRARIES/bouncycastle-host_intermediates/classes)
> warning: [options] bootstrap class path not set in conjunction with
> -source 1.7
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 1 warning
> [  3% 2273/62114] host Java: bouncycastle-bcpkix-host
> (/home/jum...j/JAVA_LIBRARIES/bouncycastle-bcpkix-host_intermediates/classes)
> warning: [options] bootstrap class path not set in conjunction with
> -source 1.7
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 1 warning
> [  3% 2275/62114] Building with Jack:
> /home/jumbo/output/android...obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex
> FAILED:
> /home/jumbo/output/android/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex
>
> /bin/bash
> /home/jumbo/output/android/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex.rsp
> Out of memory error (version 1.3-rc6 'Douarn' (441800
> 22a11d4b264ae70e366aed3025ef47362d1522bb by [email protected]
> )).
> Java heap space.
> Try increasing heap size with java option '-Xmx<size>'.
> Warning: This may have produced partial or corrupted output.
> [  3% 2278/62114] build
> /home/jumbo/output/android/target/common/obj/JAVA_LIBRARIES/sdk_v21_intermediates/classes.jack
> ninja: build stopped: subcommand failed.
> 16:34:31 ninja failed with: exit status 1
> make: *** [run_soong_ui] Error 1
>
> #### make failed to build some targets (45:05 (mm:ss)) ####
>
> jumbo@ubuntu-14:~/android$
>
>
>
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to