This seems to be due to the kernel update on the build host, which switched
from 5.17 to 5.18. Because the error is related to unexpected mmap address,
and there was a recent kernel update on the Fedora build host, and after
suspecting everything else, I ended up suspecting the kernel itself. I
rebooted into the previous 5.17 kernel, and the error went away.

It would be nice if the Android devs could come up with a workaround that
does not involve not upgrading the build host kernel. I'm happy to test any
proposed solution.

Thanks,
Michael.


On Tue, Jul 26, 2022 at 2:36 PM Michael Goffioul <michael.goffi...@gmail.com>
wrote:

> I forgot to mention the Android version is 7.1.2.
>
> On Tue, Jul 26, 2022 at 2:34 PM Michael Goffioul <
> michael.goffi...@gmail.com> wrote:
>
>> Hi,
>>
>> I've been compiling an arm64 firmware (for AMLogic chipset) on the same
>> Fedora-based system for a couple of years now. Today, after rebuilding from
>> scratch, I faced the following error. Would anybody have any insight on
>> what is going on?
>>
>> [100% 2/2] build
>> out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/package.odex
>> FAILED: /bin/bash -c "(mkdir -p
>> out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/ &&
>> rm -f
>> out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/package.odex
>> ) && (find out/target/common/obj/APPS/AppInstaller_intermediates/ -maxdepth
>> 1 -name \"classes*.dex\" | sort | xargs zip -qjX
>> out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/package.odex
>> ) && (mv
>> out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/package.odex
>> out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/package.odex.input
>> ) && (rm -f
>> out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/package.odex
>> ) && (mkdir -p
>> out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/ ) &&
>> (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg
>> -Xms64m --runtime-arg -Xmx512m --runtime-arg -classpath --runtime-arg \"&\"
>> --boot-image=out/target/product/p212/dex_bootjars/system/framework/boot.art
>> --dex-file=out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/package.odex.input
>> --dex-location=/system/app/AppInstaller/AppInstaller.apk
>> --oat-file=out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/package.odex
>> --android-root=out/target/product/p212/system --instruction-set=arm64
>> --instruction-set-variant=generic --instruction-set-features=default
>> --include-patch-information --runtime-arg -Xnorelocate
>> --no-generate-debug-info --abort-on-hard-verifier-error
>> --no-inline-from=core-oj.jar   --compile-pic ) && (rm
>> out/target/product/p212/obj/APPS/AppInstaller_intermediates/oat/arm64/package.odex.input
>> )"
>> dex2oatd E 449109 449109 art/runtime/gc/heap.cc:324] Could not create
>> image space with image file
>> 'out/target/product/p212/dex_bootjars/system/framework/boot.art'.
>> Attempting to fall back to imageless running. Error was: Failed to load
>> /system image
>> 'out/target/product/p212/dex_bootjars/system/framework/arm64/boot-framework.art':
>> Failed to mmap at expected address, mapped at 0x7fdaa8a00000 instead of
>> 0x70514000
>> dex2oatd E 449109 449109 art/runtime/gc/heap.cc:324] Attempted image:
>> out/target/product/p212/dex_bootjars/system/framework/boot-framework.art
>> dex2oatd E 449109 449109 art/runtime/runtime.cc:1050] Dex file fallback
>> disabled, cannot continue without image.
>> dex2oatd E 449109 449109 art/dex2oat/dex2oat.cc:2232] Failed to create
>> runtime
>> ninja: build stopped: subcommand failed.
>>
>> Thanks,
>> Michael.
>>
>>

-- 
-- 
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
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CAB-99LsRWE%3D62Q9VOVD9ok4oSvwVdUYCB%3D7NRnXn_QM-QjMh2g%40mail.gmail.com.

Reply via email to