This is a guide to build your own CM7 on Mac OSX Lion. I can't guarantee 100% that this will work for everyone, but it worked for me. I want to thank Paul from Modaco, CyanogenMod team, Batista Harahap, ahbeng, and anyone else I can't remember atm.
1. Download and install Xcode, Java Mac OS X 10.5 SDK (later versions don't seem to work)
2. I recommend uninstalling existing MacPorts (using the codes below) and then install a fresh copy just to be safe.
Code:
$ sudo port -fp uninstall --follow-dependents installed
$ sudo rm -rf /opt/local /Applications/DarwinPorts /Applications/MacPorts /Library/LaunchDaemons/org.macports.* /Library/Receipts/DarwinPorts*.pkg /Library/Receipts/MacPorts*.pkg /Library/StartupItems/DarwinPortsStartup /Library/Tcl/darwinports1.0 /Library/Tcl/macports1.0 ~/.macports
3. Follow these steps below to teleport String errors at compile time
Code:
$ sudo vi /opt/local/etc/macports/sources.conf
* press ]]
* press i
* Append # at the beginning of the line
* Press Enter
* Add the following lines
Code:
file:///Users/Shared/dports
rsync://rsync.macports.org/release/ports/
* Press Esc
* Type :wq and press enter
4. Update Macports and install the necessary packages and revert gmake to 3.81 (This takes a long time)
Code:
$ sudo port selfupdate
$ POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg e2fsprogs gsed curl libiptcdata xorg-libX* pngcrush findutils
$ sudo ln -s /opt/local/bin/gsed /opt/local/bin/sed
$ sudo ln -s /opt/local/libexec/gnubin/find /opt/local/bin/find
$ vi /opt/local/etc/macports/sources.conf
$ mkdir /Users/Shared/dports
$ cd /Users/Shared/dports
$ svn co --revision 50980 http://svn.macports.org/repository/macports/trunk/dports/devel/gmake/ devel/gmake/
$ portindex /Users/Shared/dports
$ sudo port install gmake @3.81
5. comment a line in one of Darwin’s C Library to get rid of compile time errors
Code:
$ sudo vi /usr/include/string.h
* Press :143
* Press i
* Append //
* Press Esc
* Type :wq!
* Press enter
6. Add a symlink for 10.5 SDKs
Code:
$ sudo ln -s /Developer/SDKs/MacOSX10.6.sdk /Developer/SDKs/MacOSX10.5.sdk
7. Create a sparseimage with a Case Sensitive FS
a. Open the Disk Utility (/Applications/Utilities/Disk Utility.app).
b. Click on New Image.
c. Save as "cyanogenmod.sparseimage" and set the following parameters as followed:
d. Name: "cyanogenmod"
e. Size: 15 GB is minimum recommended (A sparseimage will save unused space)
f. Format: Mac OS Extended (CASE-SENSITIVE, Journaled)
g. Encryption: none, Partition- Single Apple Partition Map
h. Image Format: Sparse Disk Image (this will save you disk space)
i. Save this wherever you like, and then double-click the sparseimage file to mount.
j. Your workspace will be: /Volumes/cyanogenmod/
8. Macports version of e2fsprogs will fail to compile, download the source and compile it yourself
Code:
$ mkdir -p ~/src
$ cd ~/src
$ git clone http://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
$ cd e2fsprogs
$ ./configure --prefix=/opt/local
$ make -j4 && sudo make install
9. Set up the pre-requisites for CyanogenMod to compile, there are
Code:
$ cd /Volumes/cyanogenMod
$ mkdir -p bin
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > bin/repo
$ chmod a+x bin/repo
$ mkdir -p android/system/
$ PATH=${PATH}:/Volumes/cyanogenmod/bin:
$ echo "PATH=\${PATH}:/Volumes/cyanogenmod/bin:" >> ~/.profile
10. Clone CyanogenMod repository into our sparse image (This takes a long time)
Code:
$ cd /Volumes/cyanogenmod/android/system
$ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
$ repo sync
11. Now to get all closed source binaries from the device and into our device build folder (replace *company* and *model* with the device you want e.g. /lge/p990)
Code:
$ cd /Volumes/cyanogenmod/android/system/device/*company*/*model*
$ ./extract-files.sh
12. ROMManager is a requirement for CyanogenMod
Code:
$ /Volumes/cyanogenmod/android/system/vendor/cyanogen/get-rommanager
13. edit cm source to make it compile on lion
Add lines in red to android/system/external/elfutils/config-compat-darwin.h:
Code:
[COLOR="Red"]#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070
[/COLOR]
static inline size_t strnlen (const char *__string, size_t __maxlen)
{
int len = 0;
while (__maxlen-- && *__string++)
len++;
return len;
}
[COLOR="red"]#endif[/COLOR]
Comment out every line in android/system/external/qemu/Android.mk:
Code:
# the following test is made to detect that we were called
# through the 'm' or 'mm' build commands. if not, we use the
# standard QEMU Makefile
#
#ifeq ($(DEFAULT_GOAL),droid)
# LOCAL_PATH:= $(call my-dir)
# include $(LOCAL_PATH)/Makefile.android
#else
# include Makefile.qemu
#endif
14. Now here comes the real fun, let’s compile CyanogenMod. (replace *model* with the device you want e.g. cyanogen_p990)
Code:
$ cd /Volumes/gingerbread/android/system/
$ cp ./vendor/cyanogen/products/cyanogen_*model*.mk ./buildspec.mk
$ . build/envsetup.sh
$ lunch cyanogen_*model*-eng
$ make -j`sysctl -an hw.logicalcpu` bacon
If the build was successful, there should be an update-cm-X.X.X-RC0-KANG-signed.zip in the /android/system/out/target/product/*model* folder.
If you were successful, go get yourself a treat.
The purpose of this guide is to show the steps required to compile CM9 specifically for the Thunderbolt. This may be adapted for other ROMs in the future. However, I will not describe how to setup your development environment as that information changes based on distribution versions and has been done many times over. A few good references are here, with an example of mine at the end of this post:
CyanogenMod Wiki - Learning to Build CyanogenMod
CyanogenMod Build Guide for Nexus 7 (Use as an example)
My goal is to aid others in development as the steps to get everything working on the Thunderbolt are not straight-forward unless you know what they are. Even though I had plenty of sources when I started, I still had to spend many hours to get them working. The camera and radio need some extra steps, but those are now streamlined for both my benefit and everyone else's.
I added these steps on gist.github as scripts, although I have not tested them as such. It would be best if you do each line at a time to better understand what you're doing.
Build CM9 Thunderbolt - First Time Only
Build CM9 Thunderbolt - Subsequent Builds
For the first build only:
Code:
mkdir android
cd android/
repo init -u git://github.com/CyanogenMod/android.git -b ics
mkdir -p .repo/local_manifests
wget https://raw.github.com/jblack248/android/ics/local_manifest.xml -O .repo/local_manifests/cm_mecha.xml
repo sync
# Cherry-pick frameworks/base/libs/ui commit from Twisted
cd frameworks/base/ && git fetch http://review.cyanogenmod.com/CyanogenMod/android_frameworks_base refs/changes/85/13285/8 && git cherry-pick FETCH_HEAD && cd ../..
# checkout branch in local trees
repo start ics device/htc/common device/htc/mecha device/htc/msm7x30-common hardware/qcom/camera kernel/htc/mecha-3.0 packages/apps/Camera vendor/htc/mecha vendor/htc/mecha-radio
# download prebuilts
cd vendor/cm/
./get-prebuilts
cd ../..
. build/envsetup.sh
lunch cm_mecha-userdebug
# Make build then rebuild with radio - read script in vendor/htc/mecha-radio if interested
mka bacon && . vendor/htc/mecha-radio/liquid_telephony.sh
For subsequent builds:
Code:
repo sync
# Cherry-pick frameworks/base/libs/ui commit from Twisted
cd frameworks/base/ && git fetch http://review.cyanogenmod.com/CyanogenMod/android_frameworks_base refs/changes/85/13285/8 && git cherry-pick FETCH_HEAD && cd ../..
. build/envsetup.sh
lunch cm_mecha-userdebug
# Make build then rebuild with radio - read script in vendor/htc/mecha-radio if interested
mka bacon && . vendor/htc/mecha-radio/liquid_telephony.sh
How I set up the build environment on Xubuntu 13.04 64-bit - Gist.github:
Code:
echo "Install Android Development Tools and Dependencies"
sudo apt-get install -y android-tools-adb android-tools-fastboot git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev lib32z1-dev pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib g++-multilib schedtool libc6-dev-i386 ccache
echo "Link zconf.h to fix Android compile issues in 13.04"
ln -s /usr/include/x86_64-linux-gnu/zconf.h /usr/include
echo "Installing Development Tools"
sudo apt-get install -y meld gedit-plugins git gitk gtkhash
echo "Customize .bashrc"
echo "export USE_CCACHE=1" >> ~/.bashrc
echo "ccache -M 20G > /dev/null 2>&1" >> ~/.bashrc
# these locations will be different for you, depending on where you installed the SDK
# echo "export PATH=${PATH}:~/Documents/Development/bin:~/Documents/Development/adt-bundle-linux-x86_64/sdk/tools:~/Documents/Development/adt-bundle-linux-x86_64/sdk/platform-tools"
Just a note; for the sake of newbs you may want to include instructions on getting the repo script as it doesn't just work OOB.
Code:
remote object '/system/lib/libcamera.so' does not exist
remote object '/system/lib/libcneapiclient.so' does not exist
remote object '/system/lib/libcneqmiutils.so' does not exist
remote object '/system/etc/firmware/a225p5_pm4.fw' does not exist
remote object '/system/etc/firmware/a225_pfp.fw' does not exist
remote object '/system/etc/firmware/a225_pm4.fw' does not exist
remote object '/system/etc/firmware/a300_pfp.fw' does not exist
remote object '/system/etc/firmware/a300_pm4.fw' does not exist
I got this when running ./extract-files.sh although all other files extracted fine, and I'm assuming at the very least libcamera.so is 100% necessary.
You are correct, libcamera.so is especially needed. You can either copy the files manually or modify the extract-files.sh script and extract the ROM zip to a folder to copy the files locally instead of using ADB. Change 'adb pull' to 'cp' and modify the path of the first parameter to the ROM zip folder.
I referenced a couple other guides that help you get the development set up, even the repo bin. That information changes, has been done over many times, and isn't as useful in the long run unless I micro-manage this guide. If I get a chance I might flesh this out a little, but I'm not sure how much of a desire there is for this. I'll help where I can, though.
I updated the OP with fixes to make sure everything works automatically. You no longer have to use the extract-files.sh script (or setup adb) since I made a vendor repo to include all of those files for you. Thanks to santod and others for pointing out a number of problems.
Note: As of 2013-06-29 CM9 is in a broken state as we're getting the kernel and stock OTA blobs to work properly.
Hello,
I am a noob. I am trying to build LineageOS 18.1 for gt58ltedo.
Repositories :
Manifest :
gt58lte manifest for lineage-18.1
gt58lte manifest for lineage-18.1. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
Device Tree :
GitHub - user20482020/android_device_samsung_msm8916-common: Common MSM8916 tree for Samsung devices
Common MSM8916 tree for Samsung devices. Contribute to user20482020/android_device_samsung_msm8916-common development by creating an account on GitHub.
github.com
GitHub - Galaxy-MSM8916/android_device_samsung_gte-common
Contribute to Galaxy-MSM8916/android_device_samsung_gte-common development by creating an account on GitHub.
github.com
lineage-18.1-gt58lte branch :
GitHub - user20482020/device_samsung_gt58lte
Contribute to user20482020/device_samsung_gt58lte development by creating an account on GitHub.
github.com
Kernel :
GitHub - user20482020/android_kernel_samsung_msm8916: MSM8916/MSM8929/MSM8939 kernel for Samsung devices.
MSM8916/MSM8929/MSM8939 kernel for Samsung devices. - GitHub - user20482020/android_kernel_samsung_msm8916: MSM8916/MSM8929/MSM8939 kernel for Samsung devices.
github.com
Vendor Blobs :
GitHub - user20482020/vendor_samsung_msm8916-common
Contribute to user20482020/vendor_samsung_msm8916-common development by creating an account on GitHub.
github.com
GitHub - retiredtab/android_vendor_samsung_gte-common
Contribute to retiredtab/android_vendor_samsung_gte-common development by creating an account on GitHub.
github.com
GitHub - user20482020/android_vendor_samsung_gt58lte
Contribute to user20482020/android_vendor_samsung_gt58lte development by creating an account on GitHub.
github.com
@retiredtab
Where can I find camera.vendor.msm8916.so ? On my device I have camera.msm8916.so but no camera.vendor.msm8916.so ?
user655362020 said:
I using roomservice.xml file from https://forum.xda-developers.com/t/...eos-17-1-for-galaxy-tab-a-8-0-sm-t350.4162573.
Click to expand...
Click to collapse
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
user655362020 said:
Where can I find camera.vendor.msm8916.so ? On my device I have camera.msm8916.so but no camera.vendor.msm8916.so ?
Click to expand...
Click to collapse
You can rename it when you do copy. For example,
https://github.com/user20482020/pro...ineage-17.1/gt58ltedo/gt58ltedo-vendor.mk#L26
Code:
vendor/samsung/gt58ltedo/proprietary/lib/hw/camera.msm8916.so:$(TARGET_COPY_OUT_SYSTEM)/lib/hw/camera.vendor.msm8916.so \
See how it's copied and renamed above?
BTW, in your first build, you will likely face stuck at boot animation problems. I highly suggest you build an "eng" build when you do a brunch or make. That way, the OS will start adbd right away and you can run
Code:
adb logcat -C
right away to see log messages.
I run
Code:
TARGET_BUILD_TYPE=debug TARGET_BUILD_VARIANT=eng make -j2 bacon
I explain more in this thread. I helped someone who has never built LineageOS before. A lot of the questions you may have might be answered there are already so please give that a read.
https://forum.xda-developers.com/t/need-help-building-a-sm-t555-gt510lte-lineageos-rom.4255243/
In addition, the SM-T555 is the bigger brother to SM-T355 so you might be able to use code or look at his code for clues as the two should be very similar.
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
Uploading it as attachment. I intend to change the account of repositories. I'll upload manifest to a repo after that.
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
I modified the 1st post to include link for the roomservice.xml.
retiredtab said:
You can rename it when you do copy. For example,
https://github.com/user20482020/pro...ineage-17.1/gt58ltedo/gt58ltedo-vendor.mk#L26
Code:
vendor/samsung/gt58ltedo/proprietary/lib/hw/camera.msm8916.so:$(TARGET_COPY_OUT_SYSTEM)/lib/hw/camera.vendor.msm8916.so \
See how it's copied and renamed above?
Click to expand...
Click to collapse
I missed that. Thanks.
retiredtab said:
BTW, in your first build, you will likely face stuck at boot animation problems. I highly suggest you build an "eng" build when you do a brunch or make. That way, the OS will start adbd right away and you can run
Code:
adb logcat -C
right away to see log messages.
I run
Code:
TARGET_BUILD_TYPE=debug TARGET_BUILD_VARIANT=eng make -j2 bacon
I explain more in this thread. I helped someone who has never built LineageOS before. A lot of the questions you may have might be answered there are already so please give that a read.
https://forum.xda-developers.com/t/need-help-building-a-sm-t555-gt510lte-lineageos-rom.4255243/
In addition, the SM-T555 is the bigger brother to SM-T355 so you might be able to use code or look at his code for clues as the two should be very similar.
Click to expand...
Click to collapse
The debugging tips from that thread will be super useful. Plus a similar device that has RIL will be helpful too. Thanks.
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
There is no /media/source/lineageos/out/soong/.temp/tmpjgPF4J/content/apex_payload.img. Any ideas ?
Code:
[ 95% 800/839] //art/build/apex:com.android.runtime.release apex (image)
FAILED: out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/com.android.runtime.release.apex.unsigned
rm -rf out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex && (mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/adbconnection/libadbconnection/android_arm_armv8-a_core_shared_com.android.runtime.release/libadbconnection.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libadbconnection.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_postinstall_hook/android_arm_armv8-a/art_postinstall_hook out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_postinstall_hook && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_preinstall_hook/android_arm_armv8-a/art_preinstall_hook out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_preinstall_hook && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_preinstall_hook_boot/android_arm_armv8-a/art_preinstall_hook_boot out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_preinstall_hook_boot && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_preinstall_hook_system_server/android_arm_armv8-a/art_preinstall_hook_system_server out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_preinstall_hook_system_server && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_prepostinstall_utils/android_arm_armv8-a/art_prepostinstall_utils out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_prepostinstall_utils && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc && cp out/soong/.intermediates/art/build/apex/com.android.runtime.ld.config.txt/android_arm_armv8-a_core/ld.config.txt out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/ld.config.txt && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/compiler/libart-compiler/android_arm_armv8-a_core_shared_com.android.runtime.release/libart-compiler.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart-compiler.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dalvikvm/dalvikvm/android_arm_armv8-a_core_com.android.runtime.release/dalvikvm32 out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dalvikvm32 && ln -s dalvikvm32 out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dalvikvm && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dex2oat/dex2oat/android_arm_armv8-a_core_com.android.runtime.release/dex2oat out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dex2oat && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/dexlayout/libart-dexlayout/android_arm_armv8-a_core_shared_com.android.runtime.release/libart-dexlayout.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart-dexlayout.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dexlist/dexlist/android_arm_armv8-a_core_com.android.runtime.release/dexlist out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dexlist && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dexoptanalyzer/dexoptanalyzer/android_arm_armv8-a_core_com.android.runtime.release/dexoptanalyzer out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dexoptanalyzer && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/disassembler/libart-disassembler/android_arm_armv8-a_core_shared_com.android.runtime.release/libart-disassembler.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart-disassembler.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/dt_fd_forward/libdt_fd_forward/android_arm_armv8-a_core_shared_com.android.runtime.release/libdt_fd_forward.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdt_fd_forward.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libartbase/libartbase/android_arm_armv8-a_core_shared_com.android.runtime.release/libartbase.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libartbase.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libartpalette/libartpalette/android_arm_armv8-a_core_shared_com.android.runtime.release/libartpalette.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libartpalette.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libdexfile/libdexfile/android_arm_armv8-a_core_shared_com.android.runtime.release/libdexfile.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdexfile.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libdexfile/libdexfile_external/android_arm_armv8-a_core_shared_com.android.runtime.release/libdexfile_external.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdexfile_external.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libdexfile/libdexfile_support/android_arm_armv8-a_core_shared_com.android.runtime.release/libdexfile_support.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdexfile_support.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libprofile/libprofile/android_arm_armv8-a_core_shared_com.android.runtime.release/libprofile.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libprofile.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/oatdump/oatdump/android_arm_armv8-a_core_com.android.runtime.release/oatdump out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/oatdump && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/openjdkjvm/libopenjdkjvm/android_arm_armv8-a_core_shared_com.android.runtime.release/libopenjdkjvm.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libopenjdkjvm.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/openjdkjvmti/libopenjdkjvmti/android_arm_armv8-a_core_shared_com.android.runtime.release/libopenjdkjvmti.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libopenjdkjvmti.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/profman/profman/android_arm_armv8-a_core_com.android.runtime.release/profman out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/profman && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/runtime/libart/android_arm_armv8-a_core_shared_com.android.runtime.release/libart.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/sigchainlib/libsigchain/android_arm_armv8-a_core_shared_com.android.runtime.release/libsigchain.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libsigchain.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic && cp out/soong/.intermediates/bionic/libc/libc/android_arm_armv8-a_core_shared_com.android.runtime.release/libc.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libc.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/bionic/libc/malloc_debug/libc_malloc_debug/android_arm_armv8-a_core_shared_com.android.runtime.release/libc_malloc_debug.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libc_malloc_debug.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/bionic/libc/malloc_hooks/libc_malloc_hooks/android_arm_armv8-a_core_shared_com.android.runtime.release/libc_malloc_hooks.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libc_malloc_hooks.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic && cp out/soong/.intermediates/bionic/libdl/libdl/android_arm_armv8-a_core_shared_com.android.runtime.release/libdl.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libdl.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic && cp out/soong/.intermediates/bionic/libm/libm/android_arm_armv8-a_core_shared_com.android.runtime.release/libm.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libm.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/bionic/linker/linker/android_arm_armv8-a_core_com.android.runtime.release/linker out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/linker && ln -s linker out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/linker_asan && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/dalvik/dexdump/dexdump/android_arm_armv8-a_core_com.android.runtime.release/dexdump out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dexdump && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/external/apache-xml/apache-xml/android_common/dex-withres-aligned/apache-xml.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/apache-xml.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/boringssl/libcrypto/android_arm_armv8-a_core_shared_com.android.runtime.release/libcrypto.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libcrypto.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/external/bouncycastle/bouncycastle/android_common/hiddenapi/bouncycastle.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/bouncycastle.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/chromium-libpac/libpac/android_arm_armv8-a_core_shared_com.android.runtime.release/libpac.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libpac.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/expat/libexpat/android_arm_armv8-a_core_shared_com.android.runtime.release/libexpat.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libexpat.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/icu/icu4c/source/common/libicuuc/android_arm_armv8-a_core_shared_com.android.runtime.release/libicuuc.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libicuuc.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/icu/icu4c/source/i18n/libicui18n/android_arm_armv8-a_core_shared_com.android.runtime.release/libicui18n.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libicui18n.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/icu && cp out/soong/.intermediates/external/icu/icu4c/source/stubdata/apex_icu.dat/android_arm_armv8-a_core/icudt63l.dat out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/icu/icudt63l.dat && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/icu/libandroidicu/libandroidicu/android_arm_armv8-a_core_shared_com.android.runtime.release/libandroidicu.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libandroidicu.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/libcxx/libc++/android_arm_armv8-a_core_shared_com.android.runtime.release/libc++.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libc++.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/lzma/C/liblzma/android_arm_armv8-a_core_shared_com.android.runtime.release/liblzma.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/liblzma.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/oj-libjdwp/libdt_socket/android_arm_armv8-a_core_shared_com.android.runtime.release/libdt_socket.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdt_socket.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/oj-libjdwp/libjdwp/android_arm_armv8-a_core_shared_com.android.runtime.release/libjdwp.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libjdwp.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/oj-libjdwp/libnpt/android_arm_armv8-a_core_shared_com.android.runtime.release/libnpt.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnpt.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/external/okhttp/okhttp/android_common/hiddenapi/okhttp.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/okhttp.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/vixl/libvixl/android_arm_armv8-a_core_shared_com.android.runtime.release/libvixl.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libvixl.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/zlib/libz/android_arm_armv8-a_core_shared_com.android.runtime.release/libz.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libz.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/libcore/core-libart/android_common/dex-withres-aligned/core-libart.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/core-libart.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/libcore/core-oj/android_common/dex-withres-aligned/core-oj.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/core-oj.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libcore/libandroidio/android_arm_armv8-a_core_shared_com.android.runtime.release/libandroidio.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libandroidio.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libcore/libjavacore/android_arm_armv8-a_core_shared_com.android.runtime.release/libjavacore.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libjavacore.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libcore/libopenjdk/android_arm_armv8-a_core_shared_com.android.runtime.release/libopenjdk.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libopenjdk.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libnativehelper/libnativehelper/android_arm_armv8-a_core_shared_com.android.runtime.release/libnativehelper.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnativehelper.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/base/libbase/android_arm_armv8-a_core_shared_com.android.runtime.release/libbase.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libbase.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libbacktrace/libbacktrace/android_arm_armv8-a_core_shared_com.android.runtime.release/libbacktrace.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libbacktrace.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libnativebridge/libnativebridge/android_arm_armv8-a_core_shared_com.android.runtime.release/libnativebridge.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnativebridge.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libnativeloader/libnativeloader/android_arm_armv8-a_core_shared_com.android.runtime.release/libnativeloader.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnativeloader.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libunwindstack/libunwindstack/android_arm_armv8-a_core_shared_com.android.runtime.release/libunwindstack.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libunwindstack.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libziparchive/libziparchive/android_arm_armv8-a_core_shared_com.android.runtime.release/libziparchive.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libziparchive.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz && cp out/soong/.intermediates/system/timezone/output_data/apex_tz_version/android_arm_armv8-a_core/tz_version out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz/tz_version && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz && cp out/soong/.intermediates/system/timezone/output_data/apex_tzdata/android_arm_armv8-a_core/tzdata out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz/tzdata && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz && cp out/soong/.intermediates/system/timezone/output_data/apex_tzlookup.xml/android_arm_armv8-a_core/tzlookup.xml out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz/tzlookup.xml) && APEXER_TOOL_PATH=out/soong/host/linux-x86/bin:prebuilts/sdk/tools/linux/bin out/soong/host/linux-x86/bin/apexer --force --manifest art/build/apex/manifest.json --file_contexts system/sepolicy/apex/com.android.runtime.release-file_contexts --canned_fs_config out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/canned_fs_config --payload_type image --key art/build/apex/com.android.runtime.pem --pubkey art/build/apex/com.android.runtime.avbpubkey --target_sdk_version 29 --assets_dir out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/NOTICE out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/com.android.runtime.release.apex.unsigned
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/__main__.py", line 12, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 4419, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 4254, in run
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 4344, in add_hashtree_footer
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 3385, in add_hashtree_footer
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 2797, in _generate_vbmeta_blob
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 405, in encode_rsa_key
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 367, in __init__
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/subprocess.py", line 394, in __init__
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/subprocess.py", line 1047, in _execute_child
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/__main__.py", line 12, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 427, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 420, in main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 305, in CreateApex
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 107, in RunCommand
AssertionError: Failed to execute: out/soong/host/linux-x86/bin/avbtool add_hashtree_footer --do_not_generate_fec --algorithm SHA256_RSA4096 --key art/build/apex/com.android.runtime.pem --prop apex.key:com.android.runtime --salt e3980a7e51b32d0673a26fd105adf0ca55d783b39739c21439499b713829e8b9 --image /media/source/lineageos/out/soong/.temp/tmpjgPF4J/content/apex_payload.img
[ 95% 804/839] Building Kernel Config
make: Entering directory '/media/source/lineageos/kernel/samsung/msm8916'
GEN /media/source/lineageos/out/target/product/gt58ltedo/obj/KERNEL_OBJ/Makefile
arch/arm/Kconfig:1666:warning: choice value used outside its choice group
arch/arm/Kconfig:1672:warning: choice value used outside its choice group
arch/arm/Kconfig:1675:warning: choice value used outside its choice group
arch/arm/Kconfig:1681:warning: choice value used outside its choice group
drivers/misc/Kconfig:777:warning: choice value used outside its choice group
drivers/misc/Kconfig:779:warning: choice value used outside its choice group
drivers/misc/Kconfig:787:warning: choice value used outside its choice group
drivers/misc/Kconfig:790:warning: choice value used outside its choice group
drivers/misc/Kconfig:792:warning: choice value used outside its choice group
arch/arm/configs/msm8916_sec_defconfig:94:warning: override: reassigning to symbol IP_MULTICAST
arch/arm/configs/msm8916_sec_defconfig:226:warning: override: reassigning to symbol NET_EMATCH
arch/arm/configs/msm8916_sec_defconfig:573:warning: override: reassigning to symbol INPUT_MISC
arch/arm/configs/msm8916_sec_defconfig:574:warning: override: reassigning to symbol INPUT_GPIO
arch/arm/configs/msm8916_sec_defconfig:731:warning: unexpected data
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
arch/arm/configs/selinux_defconfig:4:warning: override: reassigning to symbol EXT4_FS_SECURITY
arch/arm/configs/selinux_defconfig:5:warning: override: reassigning to symbol AUDIT
arch/arm/configs/selinux_defconfig:7:warning: override: reassigning to symbol SECURITY
arch/arm/configs/selinux_defconfig:8:warning: override: reassigning to symbol LSM_MMAP_MIN_ADDR
arch/arm/configs/selinux_defconfig:9:warning: override: reassigning to symbol SECURITY_NETWORK
arch/arm/configs/selinux_defconfig:13:warning: symbol value 'y' invalid for SECURITY_SELINUX_CHECKREQPROT_VALUE
arch/arm/configs/selinux_defconfig:15:warning: override: reassigning to symbol NF_CONNTRACK_SECMARK
arch/arm/configs/selinux_defconfig:16:warning: override: reassigning to symbol NETFILTER_XT_TARGET_CONNSECMARK
arch/arm/configs/selinux_defconfig:18:warning: override: reassigning to symbol IP_NF_SECURITY
arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig:17:warning: override: reassigning to symbol USB_HOST_NOTIFY
arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig:65:warning: override: reassigning to symbol SENSORS
arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig:85:warning: override: reassigning to symbol MSM_EEPROM
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
KCONFIG_SELINUX(arch/arm/configs/selinux_defconfig)
KCONFIG_LOG_SELINUX((null))
KCONFIG_DMVERITY((null))
KCONFIG_VARIANT(arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig)
KCONFIG_DEBUG((null))
#
# configuration written to .config
#
make: Leaving directory '/media/source/lineageos/kernel/samsung/msm8916'
make: Entering directory '/media/source/lineageos/kernel/samsung/msm8916'
GEN /media/source/lineageos/out/target/product/gt58ltedo/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
arch/arm/Kconfig:1666:warning: choice value used outside its choice group
arch/arm/Kconfig:1672:warning: choice value used outside its choice group
arch/arm/Kconfig:1675:warning: choice value used outside its choice group
arch/arm/Kconfig:1681:warning: choice value used outside its choice group
drivers/misc/Kconfig:777:warning: choice value used outside its choice group
drivers/misc/Kconfig:779:warning: choice value used outside its choice group
drivers/misc/Kconfig:787:warning: choice value used outside its choice group
drivers/misc/Kconfig:790:warning: choice value used outside its choice group
drivers/misc/Kconfig:792:warning: choice value used outside its choice group
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
make: Leaving directory '/media/source/lineageos/kernel/samsung/msm8916'
11:16:56 ninja failed with: exit status 1
#### failed to build some targets (06:40 (mm:ss)) ####
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
I used the crdroid-9.0 branch to create the device tree. Do you still use the crdroid-9.0 branch ?
user655362020 said:
There is no /media/source/lineageos/out/soong/.temp/tmpjgPF4J/content/apex_payload.img. Any ideas ?
Code:
[ 95% 800/839] //art/build/apex:com.android.runtime.release apex (image)
FAILED:
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 174, in _run_module_as_main
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
#### failed to build some targets (06:40 (mm:ss)) ####
Click to expand...
Click to collapse
There's something strange with the above. On my 17.1 gt58wifi build, my directory shows
Code:
[email protected]:/media/l/gt58wifi/17/out/soong/host/linux-x86/bin$ ls -al avbtool
-rwxrwxr-x 1 l l 28148198 Apr 12 00:02 avbtool
$ file avbtool
avbtool: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, with debug_info, not stripped
$ file apexer
apexer: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, with debug_info, not stripped
whereas your shows avbtool and apexer has a directory.
I'm wondering if your manifest.xml is somehow messing up the make? I suggest removing lines 4 to 20, doing a complete repo sync and a make clean (start over) and then your brunch or make command.
user655362020 said:
I used the crdroid-9.0 branch to create the device tree. Do you still use the crdroid-9.0 branch ?
Click to expand...
Click to collapse
When I made 17.1 or Android 10, I used the crdroid-9.0 branch beause at that time there was no 10.0 branch and when there was, too many things got moved around so I stuck with 9.0. Either 9.0 or 10.0 is fine as long as you know how to change and move things around.
What desktop OS are you using? If linux, what distro? If Windows, are you using WSL version 2?
retiredtab said:
What desktop OS are you using? If linux, what distro? If Windows, are you using WSL version 2?
Click to expand...
Click to collapse
Bare-metal Fedora 34
retiredtab said:
I'm wondering if your manifest.xml is somehow messing up the make? I suggest removing lines 4 to 20, doing a complete repo sync and a make clean (start over) and then your brunch or make command.
Click to expand...
Click to collapse
I did that. It still fails at the same step.
There were a few more warnings (?) in both builds :
Code:
[ 53% 353/660] Target boot image: out/target/product/gt58ltedo/boot.img
patch boot out/target/product/gt58ltedo/boot.img out/target/product/gt58ltedo/boot.img.lok
cp: bad 'out/target/product/gt58ltedo/boot.img.lok': No such file or directory
Made boot image: out/target/product/gt58ltedo/boot.img
[ 55% 366/660] ----- Making recovery image ------
patch recovery out/target/product/gt58ltedo/recovery.img out/target/product/gt58ltedo/recovery.img.lok
cp: bad 'out/target/product/gt58ltedo/recovery.img.lok': No such file or directory
Made recovery image: out/target/product/gt58ltedo/recovery.img
retiredtab said:
whereas your shows avbtool and apexer has a directory.
Click to expand...
Click to collapse
Actually python trace shows where in the source file the error occured. I too have avbtool and apexer in out/soong/host/linux-x86/bin directory as single file.
I tried enabling dm-verity in kernel config (required by apex image according to
https://source.android.com/devices/tech/ota/apex#required_kernel_configuration_options). It still fails.
retiredtab said:
I'm wondering if your manifest.xml is somehow messing up the make? I suggest removing lines 4 to 20, doing a complete repo sync and a make clean (start over) and then your brunch or make command.
Click to expand...
Click to collapse
what command do you use to build ?
I am using source build/envsetup.sh && lunch lineage_gt58ltedo-userdebug && mka
Maybe Relevant
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20210801-UNOFFICIAL-gt58ltedo
TARGET_PRODUCT=lineage_gt58ltedo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.13.4-200.fc34.x86_64-x86_64-Fedora-34-(KDE-Plasma)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES= hardware/qcom-caf/msm8916
============================================
Also were you trying to compile TWRP for T350/T355 ? If yes, then can you provide the link for twrp device tree ?
=== apex_payload.img ===
So I cloned my 17.1 gt58wifi mechnical hard drive (250GB) to another drive using dd. Then, I took your roomservice.xml, did a repo sync to your directories as per roomservice and compiled the rom.
Code:
Package Complete: out/target/product/gt58ltedo/lineage-17.1-20210801-UNOFFICIAL-gt58ltedo.zip
#### build completed successfully (01:30:21 (hh:mm:ss)) ####
The reason I cloned my gt58wifi is so I don't have to recompile 80,000 files from scratch as a brand new make takes around 9.5 hours. The gt58wifi and gt58ltedo share similar code and libraries so I'm able to save 8 hours of compiling.
When I switched to your roomservice.xml, it had to recompile about 17,000s and took 1.5 hours as shown above. At this point, I'm not willing
to do a make clean which means my machine will be compiling for 9.5 hours.
I highly doubt the image produced will boot into OS since it's your first draft of all the code, but it completed without any apex_payload.img errors.
However, by default, LineageOS builds a recovery.img (similar to TWRP, but with less functionality and UI is different). That file is only 11MB
and if you want, I can send you this file and you can try loading onto your recovery partition. If it doesn't boot into recovery partition, that's
a sure sign that it won't boot into full LineageOS.
If recovery.img fails, you can always reflash it with TWRP if that's what you are presently running. If you don't know how to flash recovery and
get into download mode, please do some research. It's not difficult, but first time people will panic and then possibly make a huge mistake possibly creating a bricked device.
The messages below show up in my compile, but I see them all the time.
Code:
[ 77% 11670/15082] Target boot image: out/target/product/gt58ltedo/boot.img
patch boot out/target/product/gt58ltedo/boot.img out/target/product/gt58ltedo/boot.img.lok
cp: bad 'out/target/product/gt58ltedo/boot.img.lok': No such file or directory
Made boot image: out/target/product/gt58ltedo/boot.img
[ 79% 11948/15082] ----- Making recovery image ------
patch recovery out/target/product/gt58ltedo/recovery.img out/target/product/gt58ltedo/recovery.img.lok
cp: bad 'out/target/product/gt58ltedo/recovery.img.lok': No such file or directory
Made recovery image: out/target/product/gt58ltedo/recovery.img
Here's what I suggest. If you have a spare 250GB hard drive, load Lubuntu 20.04. All the LineageOS build instructions that I see are written for an Ubuntu environment and there may be a missing library or some functionality that doesn't work on Fedora? I do all my builds on Lubuntu 20.04. A 250GB drive is enough to hold Lubuntu (only about 6GB) and your build.
If you want to keep trying Fedora, then take a look at
https://wiki.lineageos.org/devices/chagallwifi/builds
and figure out what library you may be missing. I'm not a Fedora user and the last time I tried it was in 2014 so I cannot help you with Fedora questions.
=== twrp ===
If you can't build the LineageOS, you can try building the TWRP. It's a lot easier and faster (only about 8,000 files total instead of 80,000).
I did not build TWRP for SM-T350. Nubianprince did and his code is at
GitHub - Nubianprince/android_device_samsung_gt58wifi at twrp
Device tree for Samsung Galaxy SM-T350. Contribute to Nubianprince/android_device_samsung_gt58wifi development by creating an account on GitHub.
github.com
If you can get a working TWRP for your device, then that will help you build the full LineageOS. Again, you must know how to flash the recovery partition because there's a good chance your first TWRP won't work.
=== dm-verity ===
You shouldn't have to enable it. It's disabled in kernel as per
android_device_samsung_msm8916-common/BoardConfigCommon.mk at lineage-17.1 · Galaxy-MSM8916/android_device_samsung_msm8916-common
Common MSM8916 tree for Samsung devices. Contribute to Galaxy-MSM8916/android_device_samsung_msm8916-common development by creating an account on GitHub.
github.com
android_kernel_samsung_msm8916/msm8916_sec_defconfig at lineage-17.1 · Galaxy-MSM8916/android_kernel_samsung_msm8916
MSM8916/MSM8929/MSM8939 kernel for Samsung devices. - android_kernel_samsung_msm8916/msm8916_sec_defconfig at lineage-17.1 · Galaxy-MSM8916/android_kernel_samsung_msm8916
github.com
=== commands to build ===
Because I have a slow machine with limited memory, I use
. build/envsetup.sh
breakfast gt58ltedo
TARGET_BUILD_TYPE=debug TARGET_BUILD_VARIANT=eng make -j2 bacon (as per post #5)
recovery.img zipped.
Removed by me.