[Android] TheOddTaco:
I was compiling via CM14.1 and I encountered this error:

[ 2% 391/14725] target SharedLib: lib...mediates/LINKED/libandroid_servers.so)
FAILED: /bin/bash -c "/usr/bin/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -nostdlib -Wl,-soname,libandroid_servers.so -Wl,--gc-sections -shared -L/home/taco/android/out/target/product/m1/obj/lib /home/taco/android/out/target/product/m1/obj/lib/crtbegin_so.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_AlarmManagerService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_am_BatteryStatsService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_am_ActivityManagerService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_AssetAtlasService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_connectivity_Vpn.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_ConsumerIrService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_HardwarePropertiesManagerService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_hdmi_HdmiCecController.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_input_InputApplicationHandle.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_input_InputManagerService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_input_InputWindowHandle.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_lights_LightsService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_location_GnssLocationProvider.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_location_FlpHardwareProvider.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_power_PowerManagerService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_SerialService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_SystemServer.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_tv_TvUinputBridge.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_tv_TvInputHal.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_vr_VrManagerService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_UsbDeviceManager.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_UsbMidiDevice.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_UsbHostManager.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_VibratorService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_PersistentDataBlockService.o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/onload.o -Wl,--whole-archive -Wl,--no-whole-archive /home/taco/android/out/target/product/m1/obj/STATIC_LIBRARIES/libunwind_llvm_intermediates/libunwind_llvm.a /home/taco/android/out/target/product/m1/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/lib/libatomic.a prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9/libgcc.a -landroid_runtime -landroidfw -lbinder -lcutils -llog -lhardware -lhardware_legacy -lkeystore_binder -lnativehelper -lutils -lui -linput -linputflinger -linputservice -lsensorservice -lskia -lgui -lusbhost -lsuspend -lEGL -lGLESv2 -lnetutils -ltime_genoff -lc++ -ldl -lc -lm -o /home/taco/android/out/target/product/m1/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--icf=safe -Wl,--hash-style=gnu -Wl,--no-undefined-version -Wl,--no-fix-cortex-a8 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wl,--exclude-libs,libunwind_llvm.a -Wl,--no-undefined /home/taco/android/out/target/product/m1/obj/lib/crtend_so.o"
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: cannot find -ltime_genoff
frameworks/base/services/core/jni/com_android_server_AlarmManagerService.cpp:144: error: undefined reference to 'time_genoff_operation'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Is there any fix to this error?

Thanks.