Hi everyone This is the first time I've tried to build Android.
I am trying to build it for a device from several years ago: an Amazon Fire 7 (7th generation), which runs Android 5.1 (API level 22), Nexus 6, Lollipop, LYZ28M I am on Ubuntu 22.04.2 LTS (jammy). I downloaded the latest version of the relevant branch: `$ repo init -u https://android.googlesource.com/platform/manifest --depth=1 --partial-clone --clone-filter=blob:limit=10M -b android-5.1.1_r22` `$ repo sync -c -j8` I did the above in my directory `/home/matt/repos/Fire7Tablet` As per instructions for older versions <https://source.android.com/docs/setup/start/older-versions>, I'm using the Docker file as described, but with the lines about `repo` commented out, as I already had `repo` installed. i.e. I commented out these commands in the Dockerfile `RUN curl -o /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo \ && echo "d06f33115aea44e583c8669375b35aad397176a411de3461897444d247b6c220 /usr/local/bin/repo" | sha256sum --strict -c - \ && chmod a+x /usr/local/bin /repo` but manually made my `repo` executable: `sudo chmod a+x /usr/bin/repo` Then `$ export ANDROID_BUILD_TOP=/home/matt/repos/Fire7Tablet` `$ cp ~/.gitconfig gitconfig $ docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t android-build-trusty .` successful, so then start the Docker file interactively: ``` $ docker run -it --rm -v $ANDROID_BUILD_TOP:/src android-build-trusty > cd /src; source build/envsetup.sh > lunch aosp_shamu-userdebug > m -j50 ``` The build gets as far as this: ``` ... ... arget thumb C++: third_party_WebKit_Source_core_webcore_rendering_gyp <= external/chromium_org/third_party/WebKit/Source/core/rendering/RenderInline.cpp target thumb C++: third_party_WebKit_Source_core_webcore_rendering_gyp <= external/chromium_org/third_party/WebKit/Source/core/rendering/RenderLayer.cpp target thumb C++: third_party_WebKit_Source_core_webcore_rendering_gyp <= external/chromium_org/third_party/WebKit/Source/core/rendering/RenderLayerClipper.cpp Killed #### make failed to build some targets (25:47 (mm:ss)) #### $ $ {standard input}: Assembler messages: {standard input}:30246: Warning: end of file in string; '"' inserted arm-linux-androideabi-g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <http://source.android.com/source/report-bugs.html> for instructions. {standard input}: Assembler messages: {standard input}: Warning: end of file not at end of a line; newline inserted {standard input}:1637: Error: unknown pseudo-op: `.lbe121' {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive arm-linux-androideabi-g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <http://source.android.com/source/report-bugs.html> for instructions. ``` What am i doing wrong, and where can I find the error it describes (in the source code)? Thanks. -- -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/677d4053-4844-443a-8d82-26f88d06418fn%40googlegroups.com.
