[Android Q&A, Help & Troubleshooting] anthony062991:
I tried it again and now I get this:

CHK include/linux/version.h

UPD include/linux/version.h

CHK include/generated/utsrelease.h

UPD include/generated/utsrelease.h

HOSTCC scripts/genksyms/genksyms.o

SHIPPED scripts/genksyms/lex.c

SHIPPED scripts/genksyms/parse.h

SHIPPED scripts/genksyms/keywords.c

SHIPPED scripts/genksyms/parse.c

HOSTCC scripts/genksyms/lex.o

HOSTCC scripts/genksyms/parse.o

HOSTLD scripts/genksyms/genksyms

Generating include/generated/mach-types.h

CC scripts/mod/empty.o

HOSTCC scripts/mod/mk_elfconfig

CC kernel/bounds.s

MKELF scripts/mod/elfconfig.h

HOSTCC scripts/mod/file2alias.o

GEN include/generated/bounds.h

CC arch/arm/kernel/asm-offsets.s

GEN include/generated/asm-offsets.h

CALL scripts/checksyscalls.sh

HOSTCC scripts/mod/modpost.o

HOSTCC scripts/mod/sumversion.o

HOSTCC scripts/selinux/genheaders/genheaders

HOSTLD scripts/mod/modpost

HOSTCC scripts/kallsyms

HOSTCC scripts/selinux/mdp/mdp

HOSTCC scripts/conmakehash

CC init/main.o

HOSTCC usr/gen_init_cpio

GEN usr/initramfs_data.cpio

AS usr/initramfs_data.o

LD usr/built-in.o

CC arch/arm/kernel/elf.o

CHK include/generated/compile.h

UPD include/generated/compile.h

AS arch/arm/kernel/entry-armv.o

CC init/do_mounts.o

AS arch/arm/kernel/entry-common.o

CC arch/arm/kernel/irq.o

CC arch/arm/kernel/process.o

CC init/do_mounts_rd.o

CC arch/arm/kernel/ptrace.o

CC init/do_mounts_initrd.o

CC arch/arm/kernel/return_address.o

CC init/do_mounts_md.o

CC arch/arm/kernel/setup.o

CC init/initramfs.o

CC init/calibrate.o

CC arch/arm/kernel/signal.o

CC init/version.o

LD init/mounts.o

LD init/built-in.o

CC arch/arm/mm/dma-mapping.o

CC arch/arm/kernel/sys_arm.o

CC arch/arm/kernel/stacktrace.o

CC arch/arm/mm/extable.o

CC arch/arm/mm/fault.o

CC arch/arm/kernel/time.o

CC arch/arm/mm/init.o

CC arch/arm/kernel/traps.o

arch/arm/mm/init.c: In function 'mem_init':

arch/arm/mm/init.c:616: warning: format '%4d' expects type 'int', but argument 22 has type 'long int'

arch/arm/mm/init.c:616: warning: format '%4d' expects type 'int', but argument 25 has type 'long int'

arch/arm/mm/init.c:616: warning: format '%4d' expects type 'int', but argument 28 has type 'long int'

CC arch/arm/kernel/armksyms.o

CC arch/arm/mm/iomap.o

CC arch/arm/kernel/module.o

CC arch/arm/mm/fault-armv.o

CC arch/arm/kernel/bios32.o

CC arch/arm/mm/flush.o

CC arch/arm/mm/ioremap.o

CC arch/arm/kernel/isa.o

CC arch/arm/kernel/ftrace.o

CC arch/arm/mm/mmap.o

CC arch/arm/kernel/machine_kexec.o

CC arch/arm/mm/pgd.o

CC arch/arm/mm/mmu.o

AS arch/arm/kernel/relocate_kernel.o

CC arch/arm/kernel/kprobes.o

CC arch/arm/kernel/kprobes-decode.o

CC arch/arm/mm/vmregion.o

CC arch/arm/kernel/atags.o

CC arch/arm/mm/proc-syms.o

CC arch/arm/kernel/kgdb.o

CC arch/arm/mm/alignment.o

CC arch/arm/kernel/io.o

AS arch/arm/kernel/head.o

CC arch/arm/kernel/init_task.o

AS arch/arm/mm/abort-ev5tj.o

AS arch/arm/mm/pabort-legacy.o

CC arch/arm/mm/copypage-v4wb.o

AS arch/arm/mm/tlb-v4wbi.o

AS arch/arm/mm/proc-arm926.o

LD arch/arm/mm/built-in.o

LDS arch/arm/kernel/vmlinux.lds

LD arch/arm/kernel/built-in.o

CC arch/arm/common/vic.o

CC arch/arm/mach-versatile/core.o

CC arch/arm/common/icst.o

CC arch/arm/common/clkdev.o

CC arch/arm/mach-versatile/versatile_pb.o

LD arch/arm/common/built-in.o

CC arch/arm/mach-versatile/pci.o

CC arch/arm/plat-versatile/clock.o

LD arch/arm/mach-versatile/built-in.o

CC arch/arm/plat-versatile/timer-sp.o

CC kernel/sched.o

CC arch/arm/plat-versatile/sched-clock.o

CC arch/arm/plat-versatile/leds.o

LD arch/arm/plat-versatile/built-in.o

CC mm/bootmem.o

CC mm/filemap.o

CC mm/mempool.o

CC mm/oom_kill.o

CC mm/fadvise.o

CC mm/maccess.o

CC mm/page_alloc.o

CC kernel/fork.o

CC kernel/exec_domain.o

CC kernel/panic.o

CC mm/page-writeback.o

CC kernel/printk.o

mm/page-writeback.c: In function 'write_cache_pages':

mm/page-writeback.c:860: internal compiler error: Segmentation fault

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> for instructions.

make[1]: *** [mm/page-writeback.o] Error 1

make: *** [mm] Error 2

make: *** Waiting for unfinished jobs....

CC kernel/cpu.o

CC kernel/exit.o

CC kernel/itimer.o

TIMEC kernel/timeconst.h

CC kernel/softirq.o

kernel/softirq.c:62: warning: excess elements in array initializer

kernel/softirq.c:62: warning: (near initialization for 'softirq_to_name')

CC kernel/resource.o

CC kernel/sysctl.o

CC kernel/sysctl_binary.o

CC kernel/capability.o

CC kernel/ptrace.o

CC kernel/timer.o

CC kernel/user.o

CC kernel/signal.o

CC kernel/sys.o

CC kernel/kmod.o

CC kernel/workqueue.o

CC kernel/pid.o

CC kernel/rcupdate.o

CC kernel/extable.o

CC kernel/params.o

CC kernel/posix-timers.o

CC kernel/kthread.o

CC kernel/wait.o

CC kernel/kfifo.o

CC kernel/sys_ni.o

CC kernel/posix-cpu-timers.o

CC kernel/mutex.o

CC kernel/hrtimer.o

CC kernel/rwsem.o

CC kernel/nsproxy.o

CC kernel/srcu.o

CC kernel/semaphore.o

CC kernel/notifier.o

CC kernel/ksysfs.o

kernel/ksysfs.c: In function 'kexec_crash_size_show':

kernel/ksysfs.c:106: warning: format '%zu' expects type 'size_t', but argument 3 has type 'unsigned int'

CC kernel/pm_qos_params.o

CC kernel/sched_clock.o

CC kernel/cred.o

CC kernel/async.o

CC kernel/range.o

CC kernel/jump_label.o

CC kernel/groups.o

CC kernel/freezer.o

CC kernel/profile.o

CC kernel/sysctl_check.o

CC kernel/stacktrace.o

CC kernel/debug/debug_core.o

CC kernel/irq/irqdesc.o

CC kernel/irq/handle.o

CC kernel/irq/manage.o

CC kernel/debug/gdbstub.o

CC kernel/irq/spurious.o

CC kernel/debug/kdb/kdb_io.o

CC kernel/irq/resend.o

CC kernel/irq/chip.o

CC kernel/debug/kdb/kdb_main.o

CC kernel/irq/dummychip.o

CC kernel/irq/devres.o

CC kernel/irq/autoprobe.o

CC kernel/irq/proc.o

CC kernel/irq/pm.o

CC kernel/debug/kdb/kdb_support.o

LD kernel/irq/built-in.o

CC kernel/power/main.o

CC kernel/power/console.o

CC kernel/debug/kdb/kdb_bt.o

CC kernel/power/process.o

GENKDB kernel/debug/kdb/gen-kdb_cmds.c

CC kernel/debug/kdb/kdb_bp.o

CC kernel/power/suspend.o

CC kernel/debug/kdb/kdb_debugger.o

CC kernel/power/suspend_test.o

CC kernel/debug/kdb/kdb_keyboard.o

CC kernel/power/nvs.o

CC kernel/debug/kdb/gen-kdb_cmds.o

CC kernel/power/poweroff.o

LD kernel/debug/kdb/built-in.o

LD kernel/debug/built-in.o

CC kernel/time/timekeeping.o

LD kernel/power/built-in.o

CC kernel/trace/trace_selftest_dynamic.o

CC kernel/trace/trace_clock.o

CC kernel/trace/ftrace.o

CC kernel/time/ntp.o

CC kernel/time/clocksource.o

CC kernel/time/jiffies.o

CC kernel/trace/ring_buffer.o

CC kernel/time/timer_list.o

CC kernel/time/timecompare.o

CC kernel/time/timeconv.o

CC kernel/time/clockevents.o

CC kernel/time/tick-common.o

CC kernel/trace/trace.o

CC kernel/time/tick-oneshot.o

CC kernel/time/tick-sched.o

CC kernel/time/timer_stats.o

LD kernel/time/built-in.o

CC kernel/futex.o

CC kernel/trace/trace_output.o

CC kernel/trace/trace_stat.o

CC kernel/rtmutex.o

CC kernel/trace/trace_printk.o

CC kernel/up.o

CC kernel/trace/trace_sched_switch.o

CC kernel/uid16.o

CC kernel/trace/trace_functions.o

CC kernel/trace/trace_sched_wakeup.o

CC kernel/module.o

CC kernel/trace/trace_nop.o

CC kernel/trace/trace_stack.o

CC kernel/trace/blktrace.o

CC kernel/kallsyms.o

CC kernel/trace/trace_events.o

CC kernel/acct.o

CC kernel/kexec.o

CC kernel/trace/trace_export.o

CC kernel/trace/trace_event_perf.o

CC kernel/cgroup.o

CC kernel/trace/trace_events_filter.o

CC kernel/trace/trace_kprobe.o

CC kernel/cgroup_freezer.o

CC kernel/trace/power-traces.o

CC kernel/cpuset.o

kernel/cpuset.c: In function 'cpuset_can_attach':

kernel/cpuset.c:1385: error: 'task' undeclared (first use in this function)

kernel/cpuset.c:1385: error: (Each undeclared identifier is reported only once

kernel/cpuset.c:1385: error: for each function it appears in.)

make[1]: *** [kernel/cpuset.o] Error 1

make[1]: *** Waiting for unfinished jobs....

CC kernel/trace/trace_kdb.o

LD kernel/trace/libftrace.o

LD kernel/trace/built-in.o

make: *** [kernel] Error 2