[Android Builders Collective] harpin14789:
Got this error while building.

Can someone help me with troubleshooting this. :)

Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/pm/LauncherApps$ShortcutQuery$QueryFlags.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/pm/PackageManager$DeleteFlags.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/pm/PackageManager$PackageInfoFlags.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/pm/PackageManager$PermissionFlags.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/res/Configuration$NativeConfig.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/res/GradientColor$GradientTileMode.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/Context$ServiceName.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/GridLayout$AlignmentMode.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/Editor$HandleType.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/LinearLayout$DividerMode.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/GridView$StretchMode.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/LinearLayout$OrientationMode.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/GridLayout$Orientation.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/Toast$Duration.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/NumberPicker$OnScrollListener$ScrollState.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/telecom/VideoProfile$VideoState.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/telecom/VideoProfile$VideoQuality.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/webkit/WebSettings$CacheMode.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/webkit/WebSettings$MenuItemFlags.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/bluetooth/BluetoothAdapter$ScanMode.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/bluetooth/BluetoothAdapter$AdapterState.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/graphics/Outline$Mode.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/graphics/Canvas$Saveflags.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/graphics/pdf/PdfRenderer$RenderMode.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/graphics/PixelFormat$Opacity.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/graphics/drawable/GradientDrawable$Shape.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/graphics/drawable/GradientDrawable$RadiusType.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/graphics/drawable/GradientDrawable$GradientType.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/com/android/internal/view/InputMethodClient$UnbindReason.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/com/android/internal/view/menu/CascadingMenuPopup$HorizPosition.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/com/android/internal/view/InputMethodClient$StartInputReason.class
Deleting /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/com/android/internal/widget/LockPatternUtils$StrongAuthTracker$StrongAuthFlags.class
target Executable: dexdump (/home/kishnadas/abc/out/target/product/shamu/obj/EXECUTABLES/dexdump_intermediates/LINKED/dexdump)
warning: no entries written for dimen/password_keyboard_height (0x010500c3)
target Unpacked: e2fsck (/home/kishnadas/abc/out/target/product/shamu/obj/EXECUTABLES/e2fsck_intermediates/PACKED/e2fsck)
target SharedLib: libjavacore (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libjavacore_intermediates/LINKED/libjavacore.so)
target SharedLib: libtinycompress (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libtinycompress_intermediates/LINKED/libtinycompress.so)
target SharedLib: audio_policy.default (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/audio_policy.default_intermediates/LINKED/audio_policy.default.so)
target SharedLib: libgps.utils (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libgps.utils_intermediates/LINKED/libgps.utils.so)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: /home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libgps.utils_intermediates/loc_log.o: file is empty
hardware/qcom/gps/msm8084/utils/loc_cfg.cpp:125: error: undefined reference to 'loc_logger'
hardware/qcom/gps/msm8084/utils/loc_cfg.cpp:125: error: undefined reference to 'loc_logger'
hardware/qcom/gps/msm8084/utils/loc_cfg.cpp:125: error: undefined reference to 'loc_logger'
hardware/qcom/gps/msm8084/utils/loc_cfg.cpp:125: error: undefined reference to 'loc_logger'
hardware/qcom/gps/msm8084/utils/loc_cfg.cpp:400: error: undefined reference to 'loc_logger_init'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libgps.utils_intermediates/LINKED/libgps.utils.so] Error 1
make: *** Waiting for unfinished jobs. . . .

Got this error when I restarted.

make -C kernel/moto/shamu O=/home/kishnadas/abc/out/target/product/shamu/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/kishnadas/abc/prebuilts/misc/linux-x86/ccache/ccache /home/kishnadas/abc/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= shamu_defconfig
make[1]: Entering directory `/home/kishnadas/abc/kernel/moto/shamu'
Ensure Jack server is installed and started
Copying: /home/kishnadas/abc/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-jarjar.jar
target SharedLib: libbinder (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libbinder_intermediates/LINKED/libbinder.so)
target SharedLib: libsqlite (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libsqlite_intermediates/LINKED/libsqlite.so)
target SharedLib: libvulkan (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libvulkan_intermediates/LINKED/libvulkan.so)
Jack server already installed in "/home/kishnadas/.jack-server"
Server is already running
target SharedLib: libsonivox (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libsonivox_intermediates/LINKED/libsonivox.so)
target SharedLib: libharfbuzz_ng (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libharfbuzz_ng_intermediates/LINKED/libharfbuzz_ng.so)
target SharedLib: libprocessgroup (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libprocessgroup_intermediates/LINKED/libprocessgroup.so)
target Pack Relocations: libLLVM (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libLLVM_intermediates/PACKED/libLLVM.so)
target Pack Relocations: libnfc_nci_jni (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libnfc_nci_jni_intermediates/PACKED/libnfc_nci_jni.so)
target Pack Relocations: libpac (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libpac_intermediates/PACKED/libpac.so)
Symlink: /home/kishnadas/abc/out/target/product/shamu/system/bin/app_process -> app_process32
target Pack Relocations: libaudiopolicyenginedefault (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libaudiopolicyenginedefault_intermediates/PACKED/libaudiopolicyenginedefault.so)
target Pack Relocations: libtinyalsa (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/PACKED/libtinyalsa.so)
target Pack Relocations: libart (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libart_intermediates/PACKED/libart.so)
target Unpacked: dexdump (/home/kishnadas/abc/out/target/product/shamu/obj/EXECUTABLES/dexdump_intermediates/PACKED/dexdump)
target Symbolic: e2fsck (/home/kishnadas/abc/out/target/product/shamu/symbols/system/bin/e2fsck)
target Pack Relocations: libjavacore (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libjavacore_intermediates/PACKED/libjavacore.so)
Install: /home/kishnadas/abc/out/target/product/shamu/system/framework/framework-res.apk
target Pack Relocations: libtinycompress (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libtinycompress_intermediates/PACKED/libtinycompress.so)
target Pack Relocations: audio_policy.default (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/audio_policy.default_intermediates/PACKED/audio_policy.default.so)
target SharedLib: libgps.utils (/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libgps.utils_intermediates/LINKED/libgps.utils.so)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: /home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libgps.utils_intermediates/loc_log.o: file is empty
hardware/qcom/gps/msm8084/utils/loc_cfg.cpp:125: error: undefined reference to 'loc_logger'
hardware/qcom/gps/msm8084/utils/loc_cfg.cpp:125: error: undefined reference to 'loc_logger'
hardware/qcom/gps/msm8084/utils/loc_cfg.cpp:125: error: undefined reference to 'loc_logger'
hardware/qcom/gps/msm8084/utils/loc_cfg.cpp:125: error: undefined reference to 'loc_logger'
hardware/qcom/gps/msm8084/utils/loc_cfg.cpp:400: error: undefined reference to 'loc_logger_init'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/kishnadas/abc/out/target/product/shamu/obj/SHARED_LIBRARIES/libgps.utils_intermediates/LINKED/libgps.utils.so] Error 1
make: *** Waiting for unfinished jobs....
GEN /home/kishnadas/abc/out/target/product/shamu/obj/KERNEL_OBJ/Makefile
drivers/usb/gadget/Kconfig:897:warning: defaults for choice values not supported
#
# configuration written to .config
#
make[1]: Leaving directory `/home/kishnadas/abc/kernel/moto/shamu'