Re: [android-building] android-8.0.0_r12 build error on mac OS
This is specifically a problem with intel's code, it is assuming that the compiler targeting the machine doing the building can also be used to target the device being built for. That is true for a linux x86 build machine targeting a linux x86 device, but it is not true for a mac build machine. On Fri, Oct 13, 2017 at 1:51 PM, Dean Wheatleywrote: > I see a build error for android-8.0.0_r12 on mac OS > > [ 11% 1830/16140] target asm: 2ndbootloader.bin <= > hardware/intel/bootstub/head.S > FAILED: out/target/product//obj/EXECUTABLES/2ndbootloader. > bin_intermediates/head.o > /bin/bash -c "prebuilts/clang/host/darwin-x86/clang-3859424/bin/clang -I > system/core/mkbootimg -I hardware/intel/bootstub -I > out/target/product//obj/EXECUTABLES/2ndbootloader.bin_intermediates > -I out/target/product//gen/EXECUTABLES/2ndbootloader.bin_intermediates > -I libnativehelper/include/nativehelper \$(cat > out/target/product//obj/EXECUTABLES/2ndbootloader. > bin_intermediates/import_includes) -I system/core/include -I > system/media/audio/include -I hardware/libhardware/include -I > hardware/libhardware_legacy/include -I hardware/ril/include -I > libnativehelper/include -I frameworks/native/include -I > frameworks/native/opengl/include -isystem frameworks/av/include -isystem > out/target/product//obj/include -isystem > device/asus/fugu/kernel-headers > -isystem bionic/libc/arch-x86/include -isystem bionic/libc/include -isystem > bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-x86 -isystem > bionic/libc/kernel/android/uapi -c -m32 -ffreestanding -Wall -O1 > -DCMDLINE_SIZE=0x400 -DAOSP_HEADER_ADDRESS=0x10007800 -std=gnu99 > -DSTACK_OFFSET=0x10F0 -D__ASSEMBLY__ -MD -MF > out/target/product//obj/EXECUTABLES/2ndbootloader.bin_intermediates/head.d > -o > out/target/product//obj/EXECUTABLES/2ndbootloader.bin_intermediates/head.o > hardware/intel/bootstub/head.S" > hardware/intel/bootstub/head.S:59:10: error: mach-o section specifier > uses an unknown section type > .section ".text.head","ax",@progbits > ^ > [ 11% 1834/16140] build out/target/common/obj/JAVA_LIBRARIES/sdk_v15_ > intermediates/classes.jack > ninja: build stopped: subcommand failed. > 22:59:50 ninja failed with: exit status 1 > make: *** [run_soong_ui] Error 1 > > I will attempt a build using prebuilts/clang/host/darwin-x86/ master > branch instead, but I would like to know whether mac OS builds of the > android-8.0.0* branches is supported. > > The build error points to http://llvm.org/doxygen/ > MCSectionMachO_8cpp_source.html line 232, but it's unclear to me what > section type is needed. > > -- > -- > 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] build/target/product/core.mk question
No, you would delete that line completely. On Fri, Oct 13, 2017 at 10:31 AM,wrote: > So if I wanted to build AOSP without the calculator would I edit the > /build/target/product/core.mk to add a minus sign in front of > "Calculator \"? > > For example: > > PRODUCT_PACKAGES += \ >BasicDreams \ >Browser \ > - Calculator \ > > Thanks! > > John > > -- > -- > 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.
[android-building] build/target/product/core.mk question
So if I wanted to build AOSP without the calculator would I edit the /build/target/product/core.mk to add a minus sign in front of "Calculator \"? For example: PRODUCT_PACKAGES += \ BasicDreams \ Browser \ - Calculator \ Thanks! John -- -- 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] android-8.0.0_r12 build error on mac OS
I see a build error for android-8.0.0_r12 on mac OS [ 11% 1830/16140] target asm: 2ndbootloader.bin <= hardware/intel/bootstub/head.S FAILED: out/target/product//obj/EXECUTABLES/2ndbootloader.bin_intermediates/head.o /bin/bash -c "prebuilts/clang/host/darwin-x86/clang-3859424/bin/clang -I system/core/mkbootimg -I hardware/intel/bootstub -I out/target/product//obj/EXECUTABLES/2ndbootloader.bin_intermediates -I out/target/product//gen/EXECUTABLES/2ndbootloader.bin_intermediates -I libnativehelper/include/nativehelper \$(cat out/target/product//obj/EXECUTABLES/2ndbootloader.bin_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -isystem frameworks/av/include -isystem out/target/product//obj/include -isystem device/asus/fugu/kernel-headers -isystem bionic/libc/arch-x86/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-x86 -isystem bionic/libc/kernel/android/uapi -c -m32 -ffreestanding -Wall -O1 -DCMDLINE_SIZE=0x400 -DAOSP_HEADER_ADDRESS=0x10007800 -std=gnu99 -DSTACK_OFFSET=0x10F0 -D__ASSEMBLY__ -MD -MF out/target/product//obj/EXECUTABLES/2ndbootloader.bin_intermediates/head.d -o out/target/product//obj/EXECUTABLES/2ndbootloader.bin_intermediates/head.o hardware/intel/bootstub/head.S" hardware/intel/bootstub/head.S:59:10: error: mach-o section specifier uses an unknown section type .section ".text.head","ax",@progbits ^ [ 11% 1834/16140] build out/target/common/obj/JAVA_LIBRARIES/sdk_v15_intermediates/classes.jack ninja: build stopped: subcommand failed. 22:59:50 ninja failed with: exit status 1 make: *** [run_soong_ui] Error 1 I will attempt a build using prebuilts/clang/host/darwin-x86/ master branch instead, but I would like to know whether mac OS builds of the android-8.0.0* branches is supported. The build error points to http://llvm.org/doxygen/MCSectionMachO_8cpp_source.html line 232, but it's unclear to me what section type is needed. -- -- 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.