[GUIDE] How to build LineageOS on Windows 10 (WSL 2.0)

taxueliuyun

Member
Mar 4, 2018
6
1
0
the pruning is not an error. it is saying that the project is shared (used by other devices potentially) and therefore it does not apply pruning to the tree.
the reason I wanted you to post the showcommands is so that I can see what is the last few commands before the error
there is the output:
[email protected]:~/lineage$ make gemini showcommands
10:04:22 Took 580ms to start up.
10:04:22 Starting build with args: [gemini]
10:04:22 Environment: [ANDROID_DEV_SCRIPTS=/home/taxueliuyun/lineage/development/scripts:/home/taxueliuyun/lineage/prebuilts/devtools/tools:/home/taxueliuyun/lineage/external/selinux/prebuilts/bin:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/dtc:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/libufdt LINEAGE_BUILD=gemini ANDROID_PRE_BUILD_PATHS=/usr/lib/jvm/java-8-openjdk-amd64/bin: TRACE_BEGIN_SOONG=1520215461550102300 ANDROID_BUILD_TOP=/home/taxueliuyun/lineage ANDROID_JAVA_TOOLCHAIN=/usr/lib/jvm/java-8-openjdk-amd64/bin ANDROID_PRODUCT_OUT=/home/taxueliuyun/lineage/out/target/product/gemini SHELL=/bin/bash TERM=xterm-256color SSH_CLIENT=10.0.2.2 64686 2222 ANDROID_TARGET_OUT_TESTCASES=/home/taxueliuyun/lineage/out/target/product/gemini/testcases OLDPWD=/home/taxueliuyun/lineage OUT=/home/taxueliuyun/lineage/out/target/product/gemini SSH_TTY=/dev/pts/0 TARGET_BUILD_VARIANT=userdebug USER=taxueliuyun LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:eek:r=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:eek:w=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: ASAN_OPTIONS=detect_leaks=0 BUILD_ENV_SEQUENCE_NUMBER=13 ANDROID_BUILD_PATHS=/home/taxueliuyun/lineage/out/soong/host/linux-x86/bin:/home/taxueliuyun/lineage/out/host/linux-x86/bin:/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/taxueliuyun/lineage/development/scripts:/home/taxueliuyun/lineage/prebuilts/devtools/tools:/home/taxueliuyun/lineage/external/selinux/prebuilts/bin:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/dtc:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/libufdt:/home/taxueliuyun/lineage/prebuilts/android-emulator/linux-x86_64: ANDROID_HOST_OUT_TESTCASES=/home/taxueliuyun/lineage/out/host/linux-x86/testcases TOP=/home/taxueliuyun/lineage TARGET_BUILD_APPS= PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin:/home/taxueliuyun/lineage/out/soong/host/linux-x86/bin:/home/taxueliuyun/lineage/out/host/linux-x86/bin:/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/taxueliuyun/lineage/development/scripts:/home/taxueliuyun/lineage/prebuilts/devtools/tools:/home/taxueliuyun/lineage/external/selinux/prebuilts/bin:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/dtc:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/libufdt:/home/taxueliuyun/lineage/prebuilts/android-emulator/linux-x86_64:/home/taxueliuyun/bin:/home/taxueliuyun/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin MAIL=/var/mail/taxueliuyun TARGET_BUILD_TYPE=release PWD=/home/taxueliuyun/lineage JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 LANG=zh_CN.UTF-8 ANDROID_TOOLCHAIN=/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin ANDROID_TOOLCHAIN_2ND_ARCH=/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin GCC_COLORS=error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01 HOME=/home/taxueliuyun SHLVL=1 REPO_URL=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/ ORIGINAL_PWD=/home/taxueliuyun/lineage LOGNAME=taxueliuyun PYTHONPATH=/home/taxueliuyun/lineage/development/python-packages:/home/taxueliuyun/lineage/development/python-packages:/home/taxueliuyun/lineage/development/python-packages:/home/taxueliuyun/lineage/development/python-packages:/home/taxueliuyun/lineage/development/python-packages: ANDROID_EMULATOR_PREBUILTS=/home/taxueliuyun/lineage/prebuilts/android-emulator/linux-x86_64 SSH_CONNECTION=10.0.2.2 64686 10.0.2.15 2222 TARGET_GCC_VERSION=4.9 LESSOPEN=| /usr/bin/lesspipe %s PROMPT_COMMAND=echo -ne "\033]0;[arm64-lineage_gemini-userdebug] [email protected]: /home/taxueliuyun/lineage\007" BUILD_NUMBER=1c9d6910e4 TARGET_PRODUCT=lineage_gemini ANDROID_SET_JAVA_HOME=true ANDROID_HOST_OUT=/home/taxueliuyun/lineage/out/host/linux-x86 LESSCLOSE=/usr/bin/lesspipe %s %s OUT_DIR=/home/taxueliuyun/lineage/out PYTHONDONTWRITEBYTECODE=1]
10:04:22 /usr/bin/make [make --no-print-directory -f build/core/config.mk dump-many-vars CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core MAKECMDGOALS=gemini DUMP_MANY_VARS=NINJA_GOALS KATI_GOALS TARGET_DEVICE TARGET_PRODUCT TARGET_BUILD_VARIANT TARGET_BUILD_APPS CC_WRAPPER CXX_WRAPPER JAVAC_WRAPPER CCACHE_COMPILERCHECK CCACHE_SLOPPINESS CCACHE_BASEDIR CCACHE_CPP2 PLATFORM_VERSION_CODENAME PLATFORM_VERSION TARGET_PRODUCT TARGET_BUILD_VARIANT TARGET_BUILD_TYPE TARGET_BUILD_APPS TARGET_ARCH TARGET_ARCH_VARIANT TARGET_CPU_VARIANT TARGET_2ND_ARCH TARGET_2ND_ARCH_VARIANT TARGET_2ND_CPU_VARIANT HOST_ARCH HOST_2ND_ARCH HOST_OS HOST_OS_EXTRA HOST_CROSS_OS HOST_CROSS_ARCH HOST_CROSS_2ND_ARCH HOST_BUILD_TYPE BUILD_ID OUT_DIR AUX_OS_VARIANT_LIST TARGET_BUILD_PDK PDK_FUSION_PLATFORM_ZIP OUT_DIR=/home/taxueliuyun/lineage/out /home/taxueliuyun/lineage/out/soong/soong.variables]
10:04:22 /usr/lib/jvm/java-8-openjdk-amd64/bin/java [java -version]
10:04:23 /usr/lib/jvm/java-8-openjdk-amd64/bin/javac [javac -version]
10:04:25 NINJA_GOALS gemini
10:04:25 KATI_GOALS
10:04:25 TARGET_DEVICE gemini
10:04:25 TARGET_PRODUCT lineage_gemini
10:04:25 TARGET_BUILD_VARIANT userdebug
10:04:25 TARGET_BUILD_APPS
10:04:25 CC_WRAPPER
10:04:25 CXX_WRAPPER
10:04:25 JAVAC_WRAPPER
10:04:25 CCACHE_COMPILERCHECK
10:04:25 CCACHE_SLOPPINESS
10:04:25 CCACHE_BASEDIR
10:04:25 CCACHE_CPP2
10:04:25 PLATFORM_VERSION_CODENAME REL
10:04:25 PLATFORM_VERSION 8.1.0
10:04:25 TARGET_PRODUCT lineage_gemini
10:04:25 TARGET_BUILD_VARIANT userdebug
10:04:25 TARGET_BUILD_TYPE release
10:04:25 TARGET_BUILD_APPS
10:04:25 TARGET_ARCH arm64
10:04:25 TARGET_ARCH_VARIANT armv8-a
10:04:25 TARGET_CPU_VARIANT kryo
10:04:25 TARGET_2ND_ARCH arm
10:04:25 TARGET_2ND_ARCH_VARIANT armv7-a-neon
10:04:25 TARGET_2ND_CPU_VARIANT kryo
10:04:25 HOST_ARCH x86_64
10:04:25 HOST_2ND_ARCH x86
10:04:25 HOST_OS linux
10:04:25 HOST_OS_EXTRA Linux-4.4.0-43-Microsoft-x86_64-with-Ubuntu-16.04-xenial
10:04:25 HOST_CROSS_OS windows
10:04:25 HOST_CROSS_ARCH x86
10:04:25 HOST_CROSS_2ND_ARCH x86_64
10:04:25 HOST_BUILD_TYPE release
10:04:25 BUILD_ID OPM1.171019.018
10:04:25 OUT_DIR /home/taxueliuyun/lineage/out
10:04:25 AUX_OS_VARIANT_LIST
10:04:25 TARGET_BUILD_PDK
10:04:25 PDK_FUSION_PLATFORM_ZIP
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=lineage_gemini
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-43-Microsoft-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM1.171019.018
OUT_DIR=/home/taxueliuyun/lineage/out
============================================
10:04:25 ./bootstrap.bash [./bootstrap.bash]
10:04:26 /home/taxueliuyun/lineage/out/soong/soong [/home/taxueliuyun/lineage/out/soong/soong -w dupbuild=err -v]
[1/1] /home/taxueliuyun/lineage/out/soong/.bootstrap/bin...ome/taxueliuyun/lineage/out/soong/.bootstrap/build.ninja
ninja: no work to do.
10:04:44 prebuilts/build-tools/linux-x86/bin/ckati [prebuilts/build-tools/linux-x86/bin/ckati --ninja --ninja_dir=/home/taxueliuyun/lineage/out --ninja_suffix=-lineage_gemini --regen --ignore_optional_include=/home/taxueliuyun/lineage/out/%.P --detect_android_echo --color_warnings --gen_all_targets --werror_find_emulator -f build/core/main.mk --use_find_emulator BUILDING_WITH_NINJA=true SOONG_ANDROID_MK=/home/taxueliuyun/lineage/out/soong/Android-lineage_gemini.mk SOONG_MAKEVARS_MK=/home/taxueliuyun/lineage/out/soong/make_vars-lineage_gemini.mk]
/home/taxueliuyun/lineage/out/build-lineage_gemini.ninja is missing, regenerating...
[134/1074] including ./device/xiaomi/msm8996-common/Android.mk ...
build/core/binary.mk:40: warning: camera.msm8996 uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libmmcamera_interface uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libmmjpeg_interface uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: ipacm uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libipanat uses deprecated kernel header dependency path.
[178/1074] including ./external/ebtables/Android.mk ...
build/core/binary.mk:40: warning: ebtables uses deprecated kernel header dependency path.
[218/1074] including ./external/json-c/Android.mk ...
build/core/binary.mk:40: warning: libjson uses deprecated kernel header dependency path.
[308/1074] including ./external/tinycompress/Android.mk ...
build/core/binary.mk:40: warning: libtinycompress_vendor uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libtinycompress uses deprecated kernel header dependency path.
[507/1074] including ./hardware/qcom/audio-caf/msm8996/Android.mk ...
build/core/binary.mk:40: warning: audio.primary.msm8996 uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxAacEnc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxAmrEnc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxEvrcEnc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxG711Enc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxQcelp13Enc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libqcompostprocbundle uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libvolumelistener uses deprecated kernel header dependency path.
[511/1074] including ./hardware/qcom/bt-caf/Android.mk ...
build/core/binary.mk:40: warning: libbt-vendor uses deprecated kernel header dependency path.
[520/1074] including ./hardware/qcom/display-caf/msm8996/Android.mk ...
build/core/binary.mk:40: warning: libqservice uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libqdutils uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libqdMetaData uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libqdMetaData.system uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libsdmcore uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: hdmi_cec.msm8996 uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libgpu_tonemapper uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libdrmutils uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: gralloc.msm8996 uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libgrallocutils uses deprecated kernel header dependency path.
[532/1074] including ./hardware/qcom/media-caf/msm8996/Android.mk ...
build/core/binary.mk:40: warning: libOmxVidcCommon uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxVdec uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxVenc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libc2dcolorconvert uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libhypv_intercept uses deprecated kernel header dependency path.
[536/1074] including ./hardware/qcom/wlan-caf/Android.mk ...
build/core/binary.mk:40: warning: libwifi-hal-qcom uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libwifi-hal-qcom uses deprecated kernel header dependency path.
[729/1074] including ./system/qcom/softap/jni/Android.mk ...
build/core/binary.mk:40: warning: libQWiFiSoftApCfg uses deprecated kernel header dependency path.
[1055/1074] including ./vendor/qcom/opensource/cryptfs_hw/Android.mk ...
build/core/binary.mk:40: warning: libcryptfs_hw uses deprecated kernel header dependency path.
[1056/1074] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/binary.mk:40: warning: librmnetctl uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: sockev uses deprecated kernel header dependency path.
[1074/1074] including ./vendor/xiaomi/scorpio/Android.mk ...
waitpid failed: No child processes
10:18:17 ckati failed with: exit status 1

#### failed to build some targets (13:57 (mm:ss)) ####
 

Uldiniad

Senior Member
Mar 17, 2016
343
266
0
what can i do?
is there any other way??
you can install unofficial builds from threads like this: https://forum.xda-developers.com/re...dmi-note-3-t3739187/post75757671#post75757671 (just need to google lineage os 15.1 kenzo)
you can check with the official maintainer for your device if he's working on getting lineage-15.1 branch going: https://wiki.lineageos.org/contributors.html
you can contribute code yourself to get the device up-to-date for oreo: https://wiki.lineageos.org/contributing.html
you can fork all required repos and make your own lineage-15.1 branch and make your personal builds
you might get some help from here: https://webchat.freenode.net/?channels=lineageos-dev
this is the status of your device on LineageOS official review repo: https://review.lineageos.org/#/q/kenzo
 

Uldiniad

Senior Member
Mar 17, 2016
343
266
0
how can i build an unofficial build for myself.
no lineage os 15.1 branch for my device exist??
as I said in my post above, unless you find (by searching on Google) someone else (most likely on GitHub) that has a lineage-15.1 branch for your device (because your official LineageOS maintainer has not uploaded one yet on the official repos) you won't be able to unless you make your own branch and update the code yourself. Some links that I posted should help you to get started. In modding communities you're generally on your own. Lots of learning if you want to make your own builds. I've been working at it for over two years now and am still a noob in many ways, but I've learned how to make some stuff for myself by researching a lot, and making lots of mistakes.
 
Last edited:

taxueliuyun

Member
Mar 4, 2018
6
1
0
one of the issues is that you're not typing in the correct command. make gemini means nothing. the correct command to debug is:
Code:
breakfast gemini && make bacon showcommands
Sorry, it's my mistake. I executed this command, the output is below:
[email protected]:~/lineage$ breakfast gemini && make bacon showcommands
including vendor/lineage/vendorsetup.sh
Looking for dependencies in device/xiaomi/gemini
Looking for dependencies in device/xiaomi/msm8996-common
Looking for dependencies in device/qcom/common
device/qcom/common has no additional dependencies.
Looking for dependencies in kernel/xiaomi/msm8996
kernel/xiaomi/msm8996 has no additional dependencies.
Looking for dependencies in packages/resources/devicesettings
packages/resources/devicesettings has no additional dependencies.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
LINEAGE_VERSION=15.1-20180306-UNOFFICIAL-gemini
TARGET_PRODUCT=lineage_gemini
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-43-Microsoft-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM1.171019.018
OUT_DIR=/home/taxueliuyun/lineage/out
AUX_OS_VARIANT_LIST=
============================================
10:07:10 Took 8417ms to start up.
10:07:10 Starting build with args: [bacon]
10:07:10 Environment: [ANDROID_DEV_SCRIPTS=/home/taxueliuyun/lineage/development/scripts:/home/taxueliuyun/lineage/prebuilts/devtools/tools:/home/taxueliuyun/lineage/external/selinux/prebuilts/bin:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/dtc:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/libufdt LINEAGE_BUILD=gemini ANDROID_PRE_BUILD_PATHS=/usr/lib/jvm/java-8-openjdk-amd64/bin: TRACE_BEGIN_SOONG=1520302022125950200 ANDROID_BUILD_TOP=/home/taxueliuyun/lineage ANDROID_JAVA_TOOLCHAIN=/usr/lib/jvm/java-8-openjdk-amd64/bin ANDROID_PRODUCT_OUT=/home/taxueliuyun/lineage/out/target/product/gemini SHELL=/bin/bash TERM=xterm-256color SSH_CLIENT=10.0.2.2 64492 2222 ANDROID_TARGET_OUT_TESTCASES=/home/taxueliuyun/lineage/out/target/product/gemini/testcases OLDPWD=/home/taxueliuyun/lineage OUT=/home/taxueliuyun/lineage/out/target/product/gemini SSH_TTY=/dev/pts/0 TARGET_BUILD_VARIANT=userdebug USER=taxueliuyun LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:eek:r=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:eek:w=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: ASAN_OPTIONS=detect_leaks=0 BUILD_ENV_SEQUENCE_NUMBER=13 ANDROID_BUILD_PATHS=/home/taxueliuyun/lineage/out/soong/host/linux-x86/bin:/home/taxueliuyun/lineage/out/host/linux-x86/bin:/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/taxueliuyun/lineage/development/scripts:/home/taxueliuyun/lineage/prebuilts/devtools/tools:/home/taxueliuyun/lineage/external/selinux/prebuilts/bin:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/dtc:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/libufdt:/home/taxueliuyun/lineage/prebuilts/android-emulator/linux-x86_64: ANDROID_HOST_OUT_TESTCASES=/home/taxueliuyun/lineage/out/host/linux-x86/testcases TOP=/home/taxueliuyun/lineage TARGET_BUILD_APPS= PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin:/home/taxueliuyun/lineage/out/soong/host/linux-x86/bin:/home/taxueliuyun/lineage/out/host/linux-x86/bin:/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/taxueliuyun/lineage/development/scripts:/home/taxueliuyun/lineage/prebuilts/devtools/tools:/home/taxueliuyun/lineage/external/selinux/prebuilts/bin:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/dtc:/home/taxueliuyun/lineage/prebuilts/misc/linux-x86/libufdt:/home/taxueliuyun/lineage/prebuilts/android-emulator/linux-x86_64:/home/taxueliuyun/bin:/home/taxueliuyun/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin MAIL=/var/mail/taxueliuyun TARGET_BUILD_TYPE=release PWD=/home/taxueliuyun/lineage JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 LANG=zh_CN.UTF-8 ANDROID_TOOLCHAIN=/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin ANDROID_TOOLCHAIN_2ND_ARCH=/home/taxueliuyun/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin GCC_COLORS=error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01 HOME=/home/taxueliuyun SHLVL=1 REPO_URL=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/ ORIGINAL_PWD=/home/taxueliuyun/lineage LOGNAME=taxueliuyun PYTHONPATH=/home/taxueliuyun/lineage/development/python-packages:/home/taxueliuyun/lineage/development/python-packages: ANDROID_EMULATOR_PREBUILTS=/home/taxueliuyun/lineage/prebuilts/android-emulator/linux-x86_64 SSH_CONNECTION=10.0.2.2 64492 10.0.2.15 2222 TARGET_GCC_VERSION=4.9 LESSOPEN=| /usr/bin/lesspipe %s BUILD_NUMBER=dd6674af45 PROMPT_COMMAND=echo -ne "\033]0;[arm64-lineage_gemini-userdebug] [email protected]: /home/taxueliuyun/lineage\007" TARGET_PRODUCT=lineage_gemini ANDROID_SET_JAVA_HOME=true ANDROID_HOST_OUT=/home/taxueliuyun/lineage/out/host/linux-x86 LESSCLOSE=/usr/bin/lesspipe %s %s OUT_DIR=/home/taxueliuyun/lineage/out PYTHONDONTWRITEBYTECODE=1]
10:07:10 /usr/bin/make [make --no-print-directory -f build/core/config.mk dump-many-vars CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core MAKECMDGOALS=bacon DUMP_MANY_VARS=NINJA_GOALS KATI_GOALS TARGET_DEVICE TARGET_PRODUCT TARGET_BUILD_VARIANT TARGET_BUILD_APPS CC_WRAPPER CXX_WRAPPER JAVAC_WRAPPER CCACHE_COMPILERCHECK CCACHE_SLOPPINESS CCACHE_BASEDIR CCACHE_CPP2 PLATFORM_VERSION_CODENAME PLATFORM_VERSION TARGET_PRODUCT TARGET_BUILD_VARIANT TARGET_BUILD_TYPE TARGET_BUILD_APPS TARGET_ARCH TARGET_ARCH_VARIANT TARGET_CPU_VARIANT TARGET_2ND_ARCH TARGET_2ND_ARCH_VARIANT TARGET_2ND_CPU_VARIANT HOST_ARCH HOST_2ND_ARCH HOST_OS HOST_OS_EXTRA HOST_CROSS_OS HOST_CROSS_ARCH HOST_CROSS_2ND_ARCH HOST_BUILD_TYPE BUILD_ID OUT_DIR AUX_OS_VARIANT_LIST TARGET_BUILD_PDK PDK_FUSION_PLATFORM_ZIP OUT_DIR=/home/taxueliuyun/lineage/out /home/taxueliuyun/lineage/out/soong/soong.variables]
10:07:10 /usr/lib/jvm/java-8-openjdk-amd64/bin/java [java -version]
10:07:11 /usr/lib/jvm/java-8-openjdk-amd64/bin/javac [javac -version]
10:07:13 NINJA_GOALS bacon
10:07:13 KATI_GOALS
10:07:13 TARGET_DEVICE gemini
10:07:13 TARGET_PRODUCT lineage_gemini
10:07:13 TARGET_BUILD_VARIANT userdebug
10:07:13 TARGET_BUILD_APPS
10:07:13 CC_WRAPPER
10:07:13 CXX_WRAPPER
10:07:13 JAVAC_WRAPPER
10:07:13 CCACHE_COMPILERCHECK
10:07:13 CCACHE_SLOPPINESS
10:07:13 CCACHE_BASEDIR
10:07:13 CCACHE_CPP2
10:07:13 PLATFORM_VERSION_CODENAME REL
10:07:13 PLATFORM_VERSION 8.1.0
10:07:13 TARGET_PRODUCT lineage_gemini
10:07:13 TARGET_BUILD_VARIANT userdebug
10:07:13 TARGET_BUILD_TYPE release
10:07:13 TARGET_BUILD_APPS
10:07:13 TARGET_ARCH arm64
10:07:13 TARGET_ARCH_VARIANT armv8-a
10:07:13 TARGET_CPU_VARIANT kryo
10:07:13 TARGET_2ND_ARCH arm
10:07:13 TARGET_2ND_ARCH_VARIANT armv7-a-neon
10:07:13 TARGET_2ND_CPU_VARIANT kryo
10:07:13 HOST_ARCH x86_64
10:07:13 HOST_2ND_ARCH x86
10:07:13 HOST_OS linux
10:07:13 HOST_OS_EXTRA Linux-4.4.0-43-Microsoft-x86_64-with-Ubuntu-16.04-xenial
10:07:13 HOST_CROSS_OS windows
10:07:13 HOST_CROSS_ARCH x86
10:07:13 HOST_CROSS_2ND_ARCH x86_64
10:07:13 HOST_BUILD_TYPE release
10:07:13 BUILD_ID OPM1.171019.018
10:07:13 OUT_DIR /home/taxueliuyun/lineage/out
10:07:13 AUX_OS_VARIANT_LIST
10:07:13 TARGET_BUILD_PDK
10:07:13 PDK_FUSION_PLATFORM_ZIP
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=lineage_gemini
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-43-Microsoft-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM1.171019.018
OUT_DIR=/home/taxueliuyun/lineage/out
============================================
10:07:13 ./bootstrap.bash [./bootstrap.bash]
10:07:14 /home/taxueliuyun/lineage/out/soong/soong [/home/taxueliuyun/lineage/out/soong/soong -w dupbuild=err -v]
[44/44] bootstrap /home/taxueliuyun/lineage/out/soong/.minibootstrap/build.ninja.in
[4/4] /home/taxueliuyun/lineage/out/soong/.bootstrap/bin...ome/taxueliuyun/lineage/out/soong/.bootstrap/build.ninja
[867/868] glob vendor/qcom/opensource/interfaces/wifi/supplicant/1.0/Android.bp
[56/56] /home/taxueliuyun/lineage/out/soong/.bootstrap/b...ng_build /home/taxueliuyun/lineage/out/soong/build.ninja
10:11:56 prebuilts/build-tools/linux-x86/bin/ckati [prebuilts/build-tools/linux-x86/bin/ckati --ninja --ninja_dir=/home/taxueliuyun/lineage/out --ninja_suffix=-lineage_gemini --regen --ignore_optional_include=/home/taxueliuyun/lineage/out/%.P --detect_android_echo --color_warnings --gen_all_targets --werror_find_emulator -f build/core/main.mk --use_find_emulator BUILDING_WITH_NINJA=true SOONG_ANDROID_MK=/home/taxueliuyun/lineage/out/soong/Android-lineage_gemini.mk SOONG_MAKEVARS_MK=/home/taxueliuyun/lineage/out/soong/make_vars-lineage_gemini.mk]
/home/taxueliuyun/lineage/out/build-lineage_gemini.ninja is missing, regenerating...
[134/1074] including ./device/xiaomi/msm8996-common/Android.mk ...
build/core/binary.mk:40: warning: camera.msm8996 uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libmmcamera_interface uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libmmjpeg_interface uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: ipacm uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libipanat uses deprecated kernel header dependency path.
[178/1074] including ./external/ebtables/Android.mk ...
build/core/binary.mk:40: warning: ebtables uses deprecated kernel header dependency path.
[218/1074] including ./external/json-c/Android.mk ...
build/core/binary.mk:40: warning: libjson uses deprecated kernel header dependency path.
[308/1074] including ./external/tinycompress/Android.mk ...
build/core/binary.mk:40: warning: libtinycompress_vendor uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libtinycompress uses deprecated kernel header dependency path.
[507/1074] including ./hardware/qcom/audio-caf/msm8996/Android.mk ...
build/core/binary.mk:40: warning: audio.primary.msm8996 uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxAacEnc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxAmrEnc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxEvrcEnc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxG711Enc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxQcelp13Enc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libqcompostprocbundle uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libvolumelistener uses deprecated kernel header dependency path.
[511/1074] including ./hardware/qcom/bt-caf/Android.mk ...
build/core/binary.mk:40: warning: libbt-vendor uses deprecated kernel header dependency path.
[520/1074] including ./hardware/qcom/display-caf/msm8996/Android.mk ...
build/core/binary.mk:40: warning: libqservice uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libqdutils uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libqdMetaData uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libqdMetaData.system uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libsdmcore uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: hdmi_cec.msm8996 uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libgpu_tonemapper uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libdrmutils uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: gralloc.msm8996 uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libgrallocutils uses deprecated kernel header dependency path.
[532/1074] including ./hardware/qcom/media-caf/msm8996/Android.mk ...
build/core/binary.mk:40: warning: libOmxVidcCommon uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxVdec uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libOmxVenc uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libc2dcolorconvert uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libhypv_intercept uses deprecated kernel header dependency path.
[536/1074] including ./hardware/qcom/wlan-caf/Android.mk ...
build/core/binary.mk:40: warning: libwifi-hal-qcom uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: libwifi-hal-qcom uses deprecated kernel header dependency path.
[729/1074] including ./system/qcom/softap/jni/Android.mk ...
build/core/binary.mk:40: warning: libQWiFiSoftApCfg uses deprecated kernel header dependency path.
[1055/1074] including ./vendor/qcom/opensource/cryptfs_hw/Android.mk ...
build/core/binary.mk:40: warning: libcryptfs_hw uses deprecated kernel header dependency path.
[1056/1074] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/binary.mk:40: warning: librmnetctl uses deprecated kernel header dependency path.
build/core/binary.mk:40: warning: sockev uses deprecated kernel header dependency path.
[1074/1074] including ./vendor/xiaomi/scorpio/Android.mk ...
waitpid failed: No child processes
10:24:38 ckati failed with: exit status 1

#### failed to build some targets (17:39 (mm:ss)) ####
 

Uldiniad

Senior Member
Mar 17, 2016
343
266
0
Sorry, it's my mistake. I executed this command, the output is below:
[email protected]:~/lineage$ breakfast gemini && make bacon showcommands
[...]
waitpid failed: No child processes
10:24:38 ckati failed with: exit status 1

#### failed to build some targets (17:39 (mm:ss)) ####
I've never seen this kind of error. seems like it is waiting for the next set of instructions but for some reason there is none. Google will be the most helpful in this case. Or maybe some people on the official LineageOS IRC chat.
If you're certain that your build environment on wsl is the same as your ubuntu/mac environment (with the exceptions/additions in my OP) and you know for a fact that the builds for your device on branch lineage-15.1 run fine on those environments then I am lost.
WSL is slower than native ubuntu on I/O but running it trough VM might be slowing it to death. That's the only reason I could see that it would fail on wsl on VM but that it would succeed on native mac/ubuntu. You could always go to wsl github and post an issue for your current situation (they'll ask you for a strace), but if the issue is too localized they probably won't help.
 
Last edited:

taxueliuyun

Member
Mar 4, 2018
6
1
0
I've never seen this kind of error. seems like it is waiting for the next set of instructions but for some reason there is none. Google will be the most helpful in this case. Or maybe some people on the official LineageOS IRC chat.
If you're certain that your build environment on wsl is the same as your ubuntu/mac environment (with the exceptions/additions in my OP) and you know for a fact that the builds for your device on branch lineage-15.1 run fine on those environments then I am lost.
WSL is slower than native ubuntu on I/O but running it trough VM might be slowing it to death. That's the only reason I could see that it would fail on wsl on VM but that it would succeed on native mac/ubuntu. You could always go to wsl github and post an issue for your current situation (they'll ask you for a strace), but if the issue is too localized they probably won't help.
"WSL is slower than native ubuntu on I/O but running it trough VM might be slowing it to death" this sentence gave me help. I allocated 2G memory and 1 cpu to Windows 10 in virtualbox. So I changed the configuration: 8G memory and 4 cpu. After this, I build the code, the error has gone. The ninja files generated finished, source code begin compile. However, compile speed, really slow.
Finally, thank you very much for your help.
 
  • Like
Reactions: Uldiniad

Uldiniad

Senior Member
Mar 17, 2016
343
266
0
"WSL is slower than native ubuntu on I/O but running it trough VM might be slowing it to death" this sentence gave me help. I allocated 2G memory and 1 cpu to Windows 10 in virtualbox. So I changed the configuration: 8G memory and 4 cpu. After this, I build the code, the error has gone. The ninja files generated finished, source code begin compile. However, compile speed, really slow.
Finally, thank you very much for your help.
Glad I was able to help. There's a reason why I put 16GB RAM as the first thing in my OP ;)
 

Mcenzie

Senior Member
Apr 7, 2012
73
16
0
[ 0% 97/86614] //frameworks/compile/mclinker/lib/Script:libmcldScript yacc ScriptParser.yy
FAILED: /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm64_armv8-a_kryo_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.cpp /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm64_armv8-a_kryo_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.h
BISON_PKGDATADIR=external/bison/data prebuilts/misc/linux-x86/bison/bison -d --defines=/home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm64_armv8-a_kryo_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.h -o /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm64_armv8-a_kryo_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.cpp frameworks/compile/mclinker/lib/Script/ScriptParser.yy
prebuilts/misc/linux-x86/bison/bison: error while loading shared libraries: libc++.so: cannot open shared object file: No such file or directory
[ 0% 98/86614] //frameworks/compile/mclinker/lib/Script:libmcldScript yacc ScriptParser.yy [linux]
FAILED: /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/linux_x86_64_static/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.cpp /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/linux_x86_64_static/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.h
BISON_PKGDATADIR=external/bison/data prebuilts/misc/linux-x86/bison/bison -d --defines=/home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/linux_x86_64_static/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.h -o /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/linux_x86_64_static/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.cpp frameworks/compile/mclinker/lib/Script/ScriptParser.yy
prebuilts/misc/linux-x86/bison/bison: error while loading shared libraries: libc++.so: cannot open shared object file: No such file or directory
[ 0% 106/86614] APK certs list: /home/mcenzie/android/lin...rts_intermediates/lineage_oneplus3-apkcerts-614519c814.txt
ninja: build stopped: subcommand failed.
22:02:24 ninja failed with: exit status 1

#### failed to build some targets (06:22 (mm:ss)) ####

Anyone knows the problem ?!
 

Uldiniad

Senior Member
Mar 17, 2016
343
266
0
[ 0% 97/86614] //frameworks/compile/mclinker/lib/Script:libmcldScript yacc ScriptParser.yy
FAILED: /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm64_armv8-a_kryo_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.cpp /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm64_armv8-a_kryo_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.h
BISON_PKGDATADIR=external/bison/data prebuilts/misc/linux-x86/bison/bison -d --defines=/home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm64_armv8-a_kryo_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.h -o /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm64_armv8-a_kryo_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.cpp frameworks/compile/mclinker/lib/Script/ScriptParser.yy
prebuilts/misc/linux-x86/bison/bison: error while loading shared libraries: libc++.so: cannot open shared object file: No such file or directory
[ 0% 98/86614] //frameworks/compile/mclinker/lib/Script:libmcldScript yacc ScriptParser.yy [linux]
FAILED: /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/linux_x86_64_static/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.cpp /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/linux_x86_64_static/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.h
BISON_PKGDATADIR=external/bison/data prebuilts/misc/linux-x86/bison/bison -d --defines=/home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/linux_x86_64_static/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.h -o /home/mcenzie/android/lineage/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/linux_x86_64_static/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.cpp frameworks/compile/mclinker/lib/Script/ScriptParser.yy
prebuilts/misc/linux-x86/bison/bison: error while loading shared libraries: libc++.so: cannot open shared object file: No such file or directory
[ 0% 106/86614] APK certs list: /home/mcenzie/android/lin...rts_intermediates/lineage_oneplus3-apkcerts-614519c814.txt
ninja: build stopped: subcommand failed.
22:02:24 ninja failed with: exit status 1

#### failed to build some targets (06:22 (mm:ss)) ####

Anyone knows the problem ?!
my bad, I deleted libc++.so because I thought that it wasn't being used... :silly:
I've put it back, so sync the changes and rebuild ;)
 
  • Like
Reactions: Mcenzie

Uldiniad

Senior Member
Mar 17, 2016
343
266
0
Thanks You. But Not Change. Its the same Error.
Then have you changed your roomservice.xml to include the lines in the OP?
Because without my commits your computer will use 32-bit bison (which is the pkg that is complaining in your build) and fail.
You can check that you have my changes by accessing the prebuilts/misc folder and checking that you have lib64 and libc++.so under that folder.
 
  • Like
Reactions: Mcenzie

Mcenzie

Senior Member
Apr 7, 2012
73
16
0
@Uldiniad

thats my roomservice.xml and my the folder from prebuilts/misc

<?xml version="1.0" encoding="UTF-8"?>

-<manifest>

<project name="LineageOS/android_device_oneplus_oneplus3" path="device/oneplus/oneplus3" remote="github" revision="lineage-15.1"/>

<project name="LineageOS/android_device_oppo_common" path="device/oppo/common" remote="github" revision="lineage-15.1"/>

<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github"/>

<project name="dianlujitao/android_kernel_oneplus_msm8996" path="kernel/oneplus/msm8996" remote="github" revision="lineage-15.1"/>

<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings"/>

<project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" remote="github" revision="lineage-15.1"/>

<remove-project name="platform/prebuilts/misc"/>

<remove-project name="LineageOS/android_prebuilts_build-tools"/>

<project name="Uldiniad/android_prebuilts_misc" path="prebuilts/misc" remote="github"/>

<project name="Uldiniad/android_prebuilts_build-tools" path="prebuilts/build-tools" remote="github"/>

</manifest>
 

Attachments

Last edited:

Uldiniad

Senior Member
Mar 17, 2016
343
266
0
@Uldiniad

thats my roomservice.xml and my the folder from prebuilts/misc

<?xml version="1.0" encoding="UTF-8"?>

-<manifest>

<project name="LineageOS/android_device_oneplus_oneplus3" path="device/oneplus/oneplus3" remote="github" revision="lineage-15.1"/>

<project name="LineageOS/android_device_oppo_common" path="device/oppo/common" remote="github" revision="lineage-15.1"/>

<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github"/>

<project name="dianlujitao/android_kernel_oneplus_msm8996" path="kernel/oneplus/msm8996" remote="github" revision="lineage-15.1"/>

<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings"/>

<project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" remote="github" revision="lineage-15.1"/>

<remove-project name="platform/prebuilts/misc"/>

<remove-project name="LineageOS/android_prebuilts_build-tools"/>

<project name="Uldiniad/android_prebuilts_misc" path="prebuilts/misc" remote="github"/>

<project name="Uldiniad/android_prebuilts_build-tools" path="prebuilts/build-tools" remote="github"/>

</manifest>
your roomservice.xml seems right. In the prebuilts misc folder, can you check that you have a lib64 folder under linux-x86 and that the lib64 folder contains libc++.so?
If it is not there, then that is the issue.
 
  • Like
Reactions: Mcenzie

Uldiniad

Senior Member
Mar 17, 2016
343
266
0
Ouh yes there is nothing. Where i can download it manually ?!
my prebuilts/misc repo on GitHub has it. that is why I have the step of adding my custom repo to the roomservice.xml. repo sync is supposed to take care of downloading the folder.
try this and let me know if it works (assuming you don't have not made any changes to any files in the source code that you want to keep, because this will set your your source code to be exactly on track with all repos online)
Code:
repo forall -vc "git reset --hard" && repo sync
 
  • Like
Reactions: Mcenzie

Mcenzie

Senior Member
Apr 7, 2012
73
16
0
my prebuilts/misc repo on GitHub has it. that is why I have the step of adding my custom repo to the roomservice.xml. repo sync is supposed to take care of downloading the folder.
try this and let me know if it works (assuming you don't have not made any changes to any files in the source code that you want to keep, because this will set your your source code to be exactly on track with all repos online)
Code:
repo forall -vc "git reset --hard" && repo sync
so for now i become this error

[ 0% 908/98513] APK certs list: /home/mcenzie/android/lin...rts_intermediates/lineage_oneplus3-apkcerts-9f6a5688b3.txt
FAILED: /home/mcenzie/android/lineage/out/target/product/oneplus3/obj/PACKAGING/apkcerts_intermediates/lineage_oneplus3-apkcerts-9f6a5688b3.txt
/bin/bash /home/mcenzie/android/lineage/out/target/product/oneplus3/obj/PACKAGING/apkcerts_intermediates/lineage_oneplus3-apkcerts-9f6a5688b3.txt.rsp
/home/mcenzie/android/lineage/out/target/product/oneplus3/obj/PACKAGING/apkcerts_intermediates/lineage_oneplus3-apkcerts-9f6a5688b3.txt.rsp: fork: Invalid argument
[ 0% 917/98513] Export includes file: -- /home/mcenzie/a...IBRARIES/libGLESv1_CM.ndk.15_intermediates/export_includes
ninja: build stopped: subcommand failed.
13:25:07 ninja failed with: exit status 1

#### failed to build some targets (07:02 (mm:ss)) ####