Re: [android-building] Re: Unable to build bluecross kernel
No I wanted for pixel 2. It has wahoo board. so wahoo_defconfig works fine for it's configuration. Thanks Mate Saurabh Sakhare On Tue, Mar 12, 2019 at 12:05 AM 'Chris Fries' via Android Building < android-building@googlegroups.com> wrote: > The b1c1_defconfig should be the one you want for Pixel 3. Does that > resolve the issue? > > -Chris > > > On Monday, March 11, 2019 at 1:24:34 PM UTC-5, Saurabh Sakhare wrote: >> >> Use Makefile in KSRC to get to know more about kernel requirements and >> compatibility. And check build.config file that'll give you specific >> requirements for kernel compilation. >> I'm compiling wahoo kernel so in my build.config i found >> "ARCH=arm64 >> BRANCH=android-msm-wahoo-4.4 >> CC=clang >> CLANG_TRIPLE=aarch64-linux-gnu- >> CROSS_COMPILE=aarch64-linux-android- >> CROSS_COMPILE_ARM32=arm-linux-androideabi- >> DEFCONFIG=wahoo_defconfig >> EXTRA_CMDS='' >> KERNEL_DIR=private/msm-google >> POST_DEFCONFIG_CMDS='check_defconfig' >> >> CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/clang-4053586/bin/ >> >> LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin >> >> LINUX_GCC_CROSS_COMPILE_ARM32_PREBUILTS_BIN=prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin >> LZ4_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/lz4 >> DTC_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/dtc >> LIBUFDT_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/libufdt" >> >> This info so I got all requirements to build the kerne. And do add path >> properly check path using tab. >> >> Saurabh Sakhare >> >> >> >> On Mon, Mar 11, 2019 at 10:46 PM Emanuele Vannacci >> wrote: >> >>> i have the same problem. Do you solve this error? >>> >>> Il giorno giovedì 15 novembre 2018 20:44:31 UTC+1, Lance Vick ha scritto: I am unable to build a kernel for crosshatch. Looks like a missing file or broken path? Also I am only assuming "android-msm-bluecross-4.9-pie-dr1-release" for the branch and "sdm845-perf" for the defconfig from looking at git history as there is no documentation for crosshatch or blueline in https://source.android.com/setup/build/building-kernels Build commands: git clone https://android.googlesource.com/kernel/msm kernel/msm cd "kernel/msm" git checkout android-msm-bluecross-4.9-pie-dr1-release export ARCH=arm64 export CROSS_COMPILE="$PWD/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-${gcc_version}/bin/aarch64-linux-android-" make "sdm845-perf_defconfig" make -j8 Failure output: In file included from drivers/clk/qcom/mdss/mdss_pll_trace.h:116:0, from drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.c:24: ./include/trace/define_trace.h:88:43: fatal error: ./mdss_pll_trace.h: No such file or directory #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) compilation terminated. scripts/Makefile.build:336: recipe for target 'drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.o' failed make[4]: *** [drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.o] Error 1 make[4]: *** Waiting for unfinished jobs scripts/Makefile.build:650: recipe for target 'drivers/clk/qcom/mdss' failed make[3]: *** [drivers/clk/qcom/mdss] Error 2 scripts/Makefile.build:650: recipe for target 'drivers/clk/qcom' failed make[2]: *** [drivers/clk/qcom] Error 2 scripts/Makefile.build:650: recipe for target 'drivers/clk' failed make[1]: *** [drivers/clk] Error 2 make[1]: *** Waiting for unfinished jobs create image file: arch/arm64/boot/dtbo.img... Can not read file: arch/arm64/boot/dts/google/sdm845-v2-b1c1-devboard.dtbo arch/arm64/boot/Makefile:71: recipe for target 'arch/arm64/boot/dtbo.img' failed make[1]: *** [arch/arm64/boot/dtbo.img] Error 255 arch/arm64/Makefile:214: recipe for target 'dtbo.img' failed make: *** [dtbo.img] Error 2 make: *** Waiting for unfinished jobs Makefile:1117: recipe for target 'drivers' failed make: *** [drivers] Error 2 -- >>> -- >>> You received this message because you are subscribed to the "Android >>> Building" mailing list. >>> To post to this group, send email to android-...@googlegroups.com >>> To unsubscribe from this group, send email to >>> android-buildi...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/android-building?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Android Building" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to android-buildi...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send
[android-building] build java+kolin library with build.bp failed
this is my build.bp: java_library_static { name: "mylib", srcs: [ "*.java", "*.kt", "**/*.java", "**/*.kt", ], optimize: { enabled: false, }, } but it yields very strange errors when building, like: SysProperty.kt:9:16: error: type mismatch: inferred type is java.lang.String! but kotlin.String was expected return SystemProperties.get(key) ^ SysProperty.kt:9:33: error: cannot access class 'java.lang.String'. Check your module classpath for missing or conflicting dependencies return SystemProperties.get(key) ^ SysProperty.kt:9:37: error: type mismatch: inferred type is kotlin.String but java.lang.String! was expected return SystemProperties.get(key) ^ SysProperty.kt:14:16: error: type mismatch: inferred type is java.lang.String! but kotlin.String was expected return SystemProperties.get(key, def) ^ SysProperty.kt:14:33: error: cannot access class 'java.lang.String'. Check your module classpath for missing or conflicting dependencies return SystemProperties.get(key, def) ^ SysProperty.kt:14:37: error: type mismatch: inferred type is kotlin.String but java.lang.String! was expected return SystemProperties.get(key, def) ^ SysProperty.kt:14:42: error: type mismatch: inferred type is kotlin.String but java.lang.String! was expected return SystemProperties.get(key, def) ^ SysProperty.kt:19:33: error: cannot access class 'java.lang.String'. Check your module classpath for missing or conflicting dependencies return SystemProperties.set(key, value) ^ TelephonyMgr.kt:11:48: error: cannot access class 'java.lang.Object'. Check your module classpath for missing or conflicting dependencies getContext().getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager ^ TelephonyMgr.kt:11:48: error: cannot access class 'java.lang.String'. Check your module classpath for missing or conflicting dependencies CoreApi.getInstance().getContext().getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager It looks like some standard java classes are missing, such as java.lang.String, java.lang.Object, but why? -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-building] error of "libLLVM_host" depends on undefined module "libLLVM_darwin" reported
Hi, All With the latest AOSP master source, if I repo init with '-darwin' group excluded on my Ubuntu host, then I will got my following errors reported: FAILED: out/soong/build.ninja out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp error: prebuilts/clang/host/linux-x86/Android.bp:585:1: "libLLVM_host" depends on undefined module "libLLVM_darwin" error: prebuilts/clang/host/linux-x86/Android.bp:619:1: "libc++abi_host" depends on undefined module "libc++abi_darwin" error: prebuilts/clang/host/linux-x86/Android.bp:595:1: "libclang_cxx_host" depends on undefined module "libclang_cxx_darwin" error: prebuilts/clang/host/linux-x86/Android.bp:605:1: "libc++_host" depends on undefined module "libc++_darwin" ninja: build stopped: subcommand failed. 23:14:17 soong bootstrap failed with: exit status 1 I found that libLLVM_darwin module is defined in project of prebuilts/clang/host/darwin-x86/, but does those modules defined in prebuilts/clang/host/linux-x86 really depends on the modules defined in prebuilts/clang/host/darwin-x86? and it worked before(one week ago?) without prebuilts/clang/host/darwin-x86 repo synced. Could anyone please help to check on that? Thanks, Yongqin Liu -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-building] error of "libLLVM_host" depends on undefined module "libLLVM_darwin" reported
We don't maintain the -darwin group -- in general, if you have a manifest that hasn't been carefully stripped down, you may need to specify ALLOW_MISSING_DEPENDENCIES=true, but that may only push the error until later in the build process (and won't work in this case). In this case, it looks like the change in behavior was due to this soong change: https://android-review.googlesource.com/c/platform/build/soong/+/920955 (the parent change is the implementation). We're now adding dependencies to all the referenced modules, even if they're in target: { darwin: { ... } } blocks that will never be used in the current build. While that can be a good thing (you're less likely to cause an instant build failure on Mac due to a typo), it is a problem for these types of use cases. I've filed a public bug to track this: https://issuetracker.google.com/128377112 Thanks for the report, Dan On Mon, Mar 11, 2019 at 8:35 PM Yongqin Liu wrote: > Hi, All > > With the latest AOSP master source, if I repo init with '-darwin' group > excluded on my Ubuntu host, > > then I will got my following errors reported: > > FAILED: out/soong/build.ninja > out/soong/.bootstrap/bin/soong_build -t -l > out/.module_paths/Android.bp.list -b out/soong -n out -d > out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o > out/soong/build.ninja Android.bp > error: prebuilts/clang/host/linux-x86/Android.bp:585:1: "libLLVM_host" > depends on undefined module "libLLVM_darwin" > error: prebuilts/clang/host/linux-x86/Android.bp:619:1: "libc++abi_host" > depends on undefined module "libc++abi_darwin" > error: prebuilts/clang/host/linux-x86/Android.bp:595:1: > "libclang_cxx_host" depends on undefined module "libclang_cxx_darwin" > error: prebuilts/clang/host/linux-x86/Android.bp:605:1: "libc++_host" > depends on undefined module "libc++_darwin" > ninja: build stopped: subcommand failed. > 23:14:17 soong bootstrap failed with: exit status 1 > > > I found that libLLVM_darwin module is defined in project of > prebuilts/clang/host/darwin-x86/, > but does those modules defined in prebuilts/clang/host/linux-x86 really > depends on the modules defined in prebuilts/clang/host/darwin-x86? > and it worked before(one week ago?) without > prebuilts/clang/host/darwin-x86 repo synced. > Could anyone please help to check on that? > > Thanks, > Yongqin Liu > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to android-building@googlegroups.com > To unsubscribe from this group, send email to > android-building+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-building+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-building] Re: Unable to build bluecross kernel
Use Makefile in KSRC to get to know more about kernel requirements and compatibility. And check build.config file that'll give you specific requirements for kernel compilation. I'm compiling wahoo kernel so in my build.config i found "ARCH=arm64 BRANCH=android-msm-wahoo-4.4 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android- CROSS_COMPILE_ARM32=arm-linux-androideabi- DEFCONFIG=wahoo_defconfig EXTRA_CMDS='' KERNEL_DIR=private/msm-google POST_DEFCONFIG_CMDS='check_defconfig' CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/clang-4053586/bin/ LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin LINUX_GCC_CROSS_COMPILE_ARM32_PREBUILTS_BIN=prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin LZ4_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/lz4 DTC_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/dtc LIBUFDT_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/libufdt" This info so I got all requirements to build the kerne. And do add path properly check path using tab. Saurabh Sakhare On Mon, Mar 11, 2019 at 10:46 PM Emanuele Vannacci < emanuele.vanna...@gmail.com> wrote: > i have the same problem. Do you solve this error? > > Il giorno giovedì 15 novembre 2018 20:44:31 UTC+1, Lance Vick ha scritto: >> >> I am unable to build a kernel for crosshatch. >> >> Looks like a missing file or broken path? >> >> Also I am only assuming "android-msm-bluecross-4.9-pie-dr1-release" for >> the branch and "sdm845-perf" for the defconfig from looking at git history >> as there is no documentation for crosshatch or blueline in >> https://source.android.com/setup/build/building-kernels >> >> Build commands: >> >> git clone https://android.googlesource.com/kernel/msm kernel/msm >> cd "kernel/msm" >> git checkout android-msm-bluecross-4.9-pie-dr1-release >> >> export ARCH=arm64 >> export >> CROSS_COMPILE="$PWD/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-${gcc_version}/bin/aarch64-linux-android-" >> >> make "sdm845-perf_defconfig" >> make -j8 >> >> >> Failure output: >> >> In file included from drivers/clk/qcom/mdss/mdss_pll_trace.h:116:0, >> >> from drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.c:24: >> >> ./include/trace/define_trace.h:88:43: fatal error: ./mdss_pll_trace.h: No >> such file or directory >> #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) >> >> compilation terminated. >> >> scripts/Makefile.build:336: recipe for target >> 'drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.o' failed >> make[4]: *** [drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.o] Error 1 >> make[4]: *** Waiting for unfinished jobs >> scripts/Makefile.build:650: recipe for target 'drivers/clk/qcom/mdss' >> failed >> make[3]: *** [drivers/clk/qcom/mdss] Error 2 >> scripts/Makefile.build:650: recipe for target 'drivers/clk/qcom' failed >> make[2]: *** [drivers/clk/qcom] Error 2 >> scripts/Makefile.build:650: recipe for target 'drivers/clk' failed >> make[1]: *** [drivers/clk] Error 2 >> make[1]: *** Waiting for unfinished jobs >> >> create image file: arch/arm64/boot/dtbo.img... >> Can not read file: arch/arm64/boot/dts/google/sdm845-v2-b1c1-devboard.dtbo >> arch/arm64/boot/Makefile:71: recipe for target 'arch/arm64/boot/dtbo.img' >> failed >> make[1]: *** [arch/arm64/boot/dtbo.img] Error 255 >> arch/arm64/Makefile:214: recipe for target 'dtbo.img' failed >> make: *** [dtbo.img] Error 2 >> make: *** Waiting for unfinished jobs >> >> Makefile:1117: recipe for target 'drivers' failed >> >> make: *** [drivers] Error 2 >> >> >> -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to android-building@googlegroups.com > To unsubscribe from this group, send email to > android-building+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-building+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-building] Re: Unable to build bluecross kernel
The b1c1_defconfig should be the one you want for Pixel 3. Does that resolve the issue? -Chris On Monday, March 11, 2019 at 1:24:34 PM UTC-5, Saurabh Sakhare wrote: > > Use Makefile in KSRC to get to know more about kernel requirements and > compatibility. And check build.config file that'll give you specific > requirements for kernel compilation. > I'm compiling wahoo kernel so in my build.config i found > "ARCH=arm64 > BRANCH=android-msm-wahoo-4.4 > CC=clang > CLANG_TRIPLE=aarch64-linux-gnu- > CROSS_COMPILE=aarch64-linux-android- > CROSS_COMPILE_ARM32=arm-linux-androideabi- > DEFCONFIG=wahoo_defconfig > EXTRA_CMDS='' > KERNEL_DIR=private/msm-google > POST_DEFCONFIG_CMDS='check_defconfig' > CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/clang-4053586/bin/ > > LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin > > LINUX_GCC_CROSS_COMPILE_ARM32_PREBUILTS_BIN=prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin > LZ4_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/lz4 > DTC_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/dtc > LIBUFDT_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/libufdt" > > This info so I got all requirements to build the kerne. And do add path > properly check path using tab. > > Saurabh Sakhare > > > > On Mon, Mar 11, 2019 at 10:46 PM Emanuele Vannacci > wrote: > >> i have the same problem. Do you solve this error? >> >> Il giorno giovedì 15 novembre 2018 20:44:31 UTC+1, Lance Vick ha scritto: >>> >>> I am unable to build a kernel for crosshatch. >>> >>> Looks like a missing file or broken path? >>> >>> Also I am only assuming "android-msm-bluecross-4.9-pie-dr1-release" for >>> the branch and "sdm845-perf" for the defconfig from looking at git history >>> as there is no documentation for crosshatch or blueline in >>> https://source.android.com/setup/build/building-kernels >>> >>> Build commands: >>> >>> git clone https://android.googlesource.com/kernel/msm kernel/msm >>> cd "kernel/msm" >>> git checkout android-msm-bluecross-4.9-pie-dr1-release >>> >>> export ARCH=arm64 >>> export >>> CROSS_COMPILE="$PWD/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-${gcc_version}/bin/aarch64-linux-android-" >>> >>> make "sdm845-perf_defconfig" >>> make -j8 >>> >>> >>> Failure output: >>> >>> In file included from drivers/clk/qcom/mdss/mdss_pll_trace.h:116:0, >>> >>> from drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.c:24: >>> >>> ./include/trace/define_trace.h:88:43: fatal error: ./mdss_pll_trace.h: >>> No such file or directory >>> #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) >>> >>> compilation terminated. >>> >>> scripts/Makefile.build:336: recipe for target >>> 'drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.o' failed >>> make[4]: *** [drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.o] Error 1 >>> make[4]: *** Waiting for unfinished jobs >>> scripts/Makefile.build:650: recipe for target 'drivers/clk/qcom/mdss' >>> failed >>> make[3]: *** [drivers/clk/qcom/mdss] Error 2 >>> scripts/Makefile.build:650: recipe for target 'drivers/clk/qcom' failed >>> make[2]: *** [drivers/clk/qcom] Error 2 >>> scripts/Makefile.build:650: recipe for target 'drivers/clk' failed >>> make[1]: *** [drivers/clk] Error 2 >>> make[1]: *** Waiting for unfinished jobs >>> >>> create image file: arch/arm64/boot/dtbo.img... >>> Can not read file: >>> arch/arm64/boot/dts/google/sdm845-v2-b1c1-devboard.dtbo >>> arch/arm64/boot/Makefile:71: recipe for target >>> 'arch/arm64/boot/dtbo.img' failed >>> make[1]: *** [arch/arm64/boot/dtbo.img] Error 255 >>> arch/arm64/Makefile:214: recipe for target 'dtbo.img' failed >>> make: *** [dtbo.img] Error 2 >>> make: *** Waiting for unfinished jobs >>> >>> Makefile:1117: recipe for target 'drivers' failed >>> >>> make: *** [drivers] Error 2 >>> >>> >>> -- >> -- >> You received this message because you are subscribed to the "Android >> Building" mailing list. >> To post to this group, send email to android-...@googlegroups.com >> >> To unsubscribe from this group, send email to >> android-buildi...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-building?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Android Building" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to android-buildi...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout.