Compile new kernel (zen-kernel)

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Compile new kernel (zen-kernel)

Postby xkp » Fri Mar 13, 2015 10:12 am

Hello people why i cannot compile zen-kernel with grsecurity.. its really stupid.

Code: Select all
root@51-184:~/zen/linux# make-kpkg -j3 --initrd kernel_image kernel_headers
exec make kpkg_version=13.014+nmu1 -f /usr/share/kernel-package/ruleset/minimal.mk debian INITRD=YES
====== making target debian/stamp/conf/minimal_debian [new prereqs: ]======
This is kernel package version 13.014+nmu1.
test -d debian             || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do                                      \
            cp -f  /usr/share/kernel-package/$file ./debian/;                               \
        done
cp: cannot stat ‘/usr/share/kernel-package/ChangeLog’: No such file or directory
for dir  in Config docs examples ruleset scripts pkg po;  do                                      \
          cp -af /usr/share/kernel-package/$dir  ./debian/;                                 \
        done
test -f debian/control || sed         -e 's/=V/3.19.1-zen/g'  \
                -e 's/=D/3.19.1-zen-10.00.Custom/g'         -e 's/=A/amd64/g'  \
   -e 's/=SA//g'  \
   -e 's/=I//g'                \
   -e 's/=CV/3.19/g'             \
   -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g'             \
   -e 's/=ST/linux/g'      -e 's/=B/x86_64/g'    \
                -e 's/=R//g'    /usr/share/kernel-package/Control > debian/control
test -f debian/changelog ||  sed -e 's/=V/3.19.1-zen/g'       \
            -e 's/=D/3.19.1-zen-10.00.Custom/g'        -e 's/=A/amd64/g'       \
            -e 's/=ST/linux/g'     -e 's/=B/x86_64/g'         \
            -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g'                            \
             /usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
test -d ./debian/stamp || mkdir debian/stamp
make -f debian/rules debian/stamp/conf/kernel-conf
make[1]: Entering directory '/root/zen/zen-kernel'
====== making target debian/stamp/conf/kernel-conf [new prereqs: ]======
make    ARCH=x86_64 \
                    oldconfig;
make[2]: Entering directory '/root/zen/zen-kernel'
  HOSTCC  scripts/basic/bin2c
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
make[2]: Leaving directory '/root/zen/zen-kernel'
make    ARCH=x86_64 prepare
make[2]: Entering directory '/root/zen/zen-kernel'
scripts/kconfig/conf --silentoldconfig Kconfig
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_64.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
  HOSTCXX -fPIC tools/gcc/colorize_plugin.o
  HOSTLLD -shared tools/gcc/colorize_plugin.so
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
In file included from arch/x86/tools/relocs_64.c:17:0:
arch/x86/tools/relocs.c: In function ‘do_reloc64’:
arch/x86/tools/relocs.c:811:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (sec->shdr.sh_info == per_cpu_shndx)
                        ^
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
  WRAP    arch/x86/include/generated/asm/clkdev.h
  WRAP    arch/x86/include/generated/asm/cputime.h
  WRAP    arch/x86/include/generated/asm/dma-contiguous.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/scatterlist.h
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  GEN     include/generated/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
make[2]: Leaving directory '/root/zen/zen-kernel'
echo done > debian/stamp/conf/kernel-conf
make[1]: Leaving directory '/root/zen/zen-kernel'
make -f debian/rules debian/stamp/conf/full-changelog
make[1]: Entering directory '/root/zen/zen-kernel'
====== making target debian/stamp/conf/full-changelog [new prereqs: ]======
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do   \
     cp -f  /usr/share/kernel-package/$file ./debian/;         \
done
cp: cannot stat ‘/usr/share/kernel-package/ChangeLog’: No such file or directory
for dir  in Config docs examples ruleset scripts pkg po;   do      \
   cp -af /usr/share/kernel-package/$dir  ./debian/;            \
done
install -p -m 755 /usr/share/kernel-package/rules debian/rules
sed         -e 's/=V/3.19.1-zen-grsec+/g'  \
                -e 's/=D/3.19.1-zen-grsec+-10.00.Custom/g'         -e 's/=A/amd64/g'  \
   -e 's/=SA//g'  \
   -e 's/=I//g'                \
   -e 's/=CV/3.19/g'             \
   -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g'             \
   -e 's/=ST/linux/g'      -e 's/=B/x86_64/g'    \
                -e 's/=R//g'  /usr/share/kernel-package/Control > debian/control
sed -e 's/=V/3.19.1-zen-grsec+/g' -e 's/=D/3.19.1-zen-grsec+-10.00.Custom/g'         \
    -e 's/=A/amd64/g' -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \
    -e 's/=ST/linux/g'    -e 's/=B/x86_64/g'         \
   /usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
make -f debian/rules debian/stamp/conf/kernel-conf
make[2]: Entering directory '/root/zen/zen-kernel'
make[2]: 'debian/stamp/conf/kernel-conf' is up to date.
make[2]: Leaving directory '/root/zen/zen-kernel'
make[1]: Leaving directory '/root/zen/zen-kernel'
echo done > debian/stamp/conf/minimal_debian
exec debian/rules  INITRD=YES  kernel_image kernel_headers
====== making target debian/stamp/conf/vars [new prereqs: ]======

====== making target debian/stamp/build/kernel [new prereqs: vars]======
This is kernel package version 13.014+nmu1.
restore_upstream_debianization
test ! -f scripts/package/builddeb.kpkg-dist ||   mv -f scripts/package/builddeb.kpkg-dist scripts/package/builddeb
test ! -f scripts/package/Makefile.kpkg-dist ||   mv -f scripts/package/Makefile.kpkg-dist scripts/package/Makefile
/usr/bin/make -j3   ARCH=x86_64 \
           bzImage
make[1]: Entering directory '/root/zen/zen-kernel'
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/mod/mk_elfconfig
scripts/selinux/genheaders/genheaders.c: In function ‘main’:
scripts/selinux/genheaders/genheaders.c:78:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (j = 0; j < max(1, 40 - strlen(map->name)); j++)
                 ^
scripts/selinux/genheaders/genheaders.c:88:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (j = 0; j < max(1, 40 - strlen(s)); j++)
                 ^
scripts/selinux/genheaders/genheaders.c:129:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (k = 0; k < max(1, 40 - strlen(map->name) - strlen(map->perms[j])); k++)
                  ^
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/selinux/mdp/mdp
  MKELF   scripts/mod/elfconfig.h
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/sumversion.o
  SHIPPED scripts/genksyms/parse.tab.c
  SHIPPED scripts/genksyms/lex.lex.c
  SHIPPED scripts/genksyms/keywords.hash.c
  SHIPPED scripts/genksyms/parse.tab.h
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/kallsyms
scripts/kallsyms.c: In function ‘check_symbol_range’:
scripts/kallsyms.c:97:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (i = 0; i < entries; ++i) {
                ^
scripts/kallsyms.c: In function ‘symbol_in_range’:
scripts/kallsyms.c:186:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (i = 0; i < entries; ++i) {
                ^
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTCC  scripts/mod/modpost.o
scripts/genksyms/lex.lex.c_shipped: In function ‘yy_get_next_buffer’:
scripts/genksyms/lex.lex.c_shipped:675:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for ( n = 0; n < max_size && \
                  ^
scripts/genksyms/lex.lex.c_shipped:1135:3: note: in expansion of macro ‘YY_INPUT’
   YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
   ^
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/sortextable
scripts/mod/file2alias.c: In function ‘do_pci_entry’:
scripts/mod/file2alias.c:420:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  ADD(alias, "v", vendor != PCI_ANY_ID, vendor);
                         ^
scripts/mod/file2alias.c:115:13: note: in definition of macro ‘ADD’
         if (cond)                                               \
             ^
scripts/mod/file2alias.c:421:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  ADD(alias, "d", device != PCI_ANY_ID, device);
                         ^
scripts/mod/file2alias.c:115:13: note: in definition of macro ‘ADD’
         if (cond)                                               \
             ^
scripts/mod/file2alias.c:422:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  ADD(alias, "sv", subvendor != PCI_ANY_ID, subvendor);
                             ^
scripts/mod/file2alias.c:115:13: note: in definition of macro ‘ADD’
         if (cond)                                               \
             ^
scripts/mod/file2alias.c:423:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  ADD(alias, "sd", subdevice != PCI_ANY_ID, subdevice);
                             ^
scripts/mod/file2alias.c:115:13: note: in definition of macro ‘ADD’
         if (cond)                                               \
             ^
scripts/mod/file2alias.c: In function ‘do_vmbus_entry’:
scripts/mod/file2alias.c:877:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (i = 0; i < (sizeof(*guid) * 2); i += 2)
                ^
scripts/mod/file2alias.c: In function ‘do_ipack_entry’:
scripts/mod/file2alias.c:1034:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  ADD(alias, "v", vendor != IPACK_ANY_ID, vendor);
                         ^
scripts/mod/file2alias.c:115:13: note: in definition of macro ‘ADD’
         if (cond)                                               \
             ^
scripts/mod/file2alias.c:1035:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  ADD(alias, "d", device != IPACK_ANY_ID, device);
                         ^
scripts/mod/file2alias.c:115:13: note: in definition of macro ‘ADD’
         if (cond)                                               \
             ^
  HOSTCC  scripts/asn1_compiler
scripts/sortextable.c: In function ‘main’:
scripts/sortextable.c:326:6: warning: variable ‘n_error’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
  int n_error = 0;  /* gcc-4.3.0 false positive complaint */
      ^
scripts/sortextable.c:327:6: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
  int i;
      ^
  HOSTLD  scripts/mod/modpost
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      init/main.o
  UPD     include/generated/compile.h
  CC      init/do_mounts.o
  HOSTCC  usr/gen_init_cpio
  GEN     usr/initramfs_data.cpio.gz
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  LD      arch/x86/crypto/built-in.o
  LD      arch/x86/crypto/sha-mb/built-in.o
  AS      arch/x86/ia32/ia32entry.o
  CC      arch/x86/ia32/sys_ia32.o
  CC      init/do_mounts_initrd.o
  CC      init/initramfs.o
  CC      arch/x86/ia32/ia32_signal.o
  CC      init/calibrate.o
  CC      init/init_task.o
  CC      arch/x86/ia32/nosyscall.o
  CC      arch/x86/ia32/syscall_ia32.o
  CC      arch/x86/ia32/audit.o
  CC      init/version.o
  LD      arch/x86/ia32/built-in.o
  CC      arch/x86/kernel/process_64.o
  LD      init/mounts.o
kernel/Makefile:132: *** No X.509 certificates found ***
  CC      kernel/fork.o
  LD      init/built-in.o
  CC      mm/filemap.o
  CC      arch/x86/kernel/signal.o
kernel/fork.c: In function ‘dup_mmap’:
kernel/fork.c:525:3: error: ‘charge’ undeclared (first use in this function)
   charge = 0;
   ^
kernel/fork.c:525:3: note: each undeclared identifier is reported only once for each function it appears in
kernel/fork.c:543:4: error: label ‘fail_nomem_anon_vma_fork’ used but not defined
    goto fail_nomem_anon_vma_fork;
    ^
kernel/fork.c:540:4: error: label ‘fail_nomem_policy’ used but not defined
    goto fail_nomem_policy;
    ^
kernel/fork.c:535:4: error: label ‘fail_nomem’ used but not defined
    goto fail_nomem;
    ^
kernel/fork.c: At top level:
kernel/fork.c:417:31: warning: ‘dup_vma’ defined but not used [-Wunused-function]
 static struct vm_area_struct *dup_vma(struct mm_struct *mm, struct mm_struct *oldmm, struct vm_area_struct *mpnt)
                               ^
scripts/Makefile.build:257: recipe for target 'kernel/fork.o' failed
make[2]: *** [kernel/fork.o] Error 1
Makefile:1009: recipe for target 'kernel' failed
make[1]: *** [kernel] Error 2
make[1]: *** Waiting for unfinished jobs....
  AS      arch/x86/kernel/entry_64.o
  CC      arch/x86/kernel/traps.o
  CC      arch/x86/kernel/irq.o
  CC      mm/mempool.o
  CC      arch/x86/kernel/irq_64.o
  CC      arch/x86/kernel/dumpstack_64.o
  CC      arch/x86/kernel/time.o
  CC      mm/oom_kill.o
  CC      arch/x86/kernel/ioport.o
  CC      arch/x86/kernel/ldt.o
  CC      mm/maccess.o
  CC      arch/x86/kernel/dumpstack.o
  CC      arch/x86/kernel/nmi.o
  CC      mm/page_alloc.o
  CC      arch/x86/kernel/setup.o
  LD      arch/x86/kvm/built-in.o
  CC      arch/x86/mm/init.o
  CC      arch/x86/kernel/x86_init.o
  CC      arch/x86/mm/init_64.o
  CC      arch/x86/kernel/i8259.o
  CC      mm/page-writeback.o
  CC      arch/x86/kernel/irqinit.o
  CC      arch/x86/mm/fault.o
  CC      arch/x86/kernel/jump_label.o
  CC      arch/x86/kernel/irq_work.o
  CC      arch/x86/mm/ioremap.o
  CC      mm/readahead.o
  CC      arch/x86/kernel/probe_roms.o
  CC      mm/swap.o
  CC      arch/x86/mm/extable.o
  CC      arch/x86/kernel/sys_x86_64.o
  CC      arch/x86/mm/pageattr.o
  CC      arch/x86/kernel/x8664_ksyms_64.o
  AS      arch/x86/kernel/mcount_64.o
  CC      arch/x86/kernel/syscall_64.o
  CC      mm/truncate.o
  CC      arch/x86/kernel/vsyscall_gtod.o
  CC      arch/x86/kernel/vsyscall_64.o
  CC      arch/x86/mm/mmap.o
  AS      arch/x86/kernel/vsyscall_emu_64.o
  CC      mm/vmscan.o
  CC      arch/x86/kernel/espfix_64.o
  CC      arch/x86/mm/pat.o
  CC      arch/x86/kernel/ksysfs.o
  CC      arch/x86/kernel/bootflag.o
  CC      arch/x86/mm/pgtable.o
  CC      arch/x86/kernel/e820.o
  CC      arch/x86/mm/physaddr.o
  CC      arch/x86/mm/gup.o
  CC      arch/x86/kernel/pci-dma.o
  CC      arch/x86/mm/setup_nx.o
  CC      mm/shmem.o
  CC      arch/x86/mm/pat_rbtree.o
  CC      arch/x86/mm/tlb.o
  CC      arch/x86/kernel/quirks.o
  CC      arch/x86/mm/hugetlbpage.o
  CC      arch/x86/kernel/topology.o
  CC      arch/x86/mm/numa.o
  CC      arch/x86/kernel/kdebugfs.o
  CC      mm/util.o
  CC      arch/x86/kernel/alternative.o
  CC      arch/x86/mm/numa_64.o
  CC      arch/x86/mm/srat.o
  CC      mm/mmzone.o
  CC      arch/x86/mm/uderef_64.o
  CC      mm/vmstat.o
  CC      arch/x86/kernel/i8253.o
  LD      arch/x86/mm/built-in.o
  AS      arch/x86/net/bpf_jit.o
  CC      arch/x86/net/bpf_jit_comp.o
  CC      arch/x86/kernel/pci-nommu.o
  CC      arch/x86/kernel/hw_breakpoint.o
  LD      arch/x86/net/built-in.o
  LD      arch/x86/platform/ce4100/built-in.o
  CC      arch/x86/platform/efi/quirks.o
  CC      mm/backing-dev.o
  CC      arch/x86/kernel/tsc.o
  CC      arch/x86/platform/efi/efi.o
  CC      mm/mm_init.o
  CC      arch/x86/kernel/tsc_msr.o
  CC      arch/x86/platform/efi/efi_64.o
  CC      arch/x86/kernel/io_delay.o
  CC      mm/mmu_context.o
  CC      arch/x86/kernel/rtc.o
  AS      arch/x86/platform/efi/efi_stub_64.o
  CC      arch/x86/platform/efi/efi-bgrt.o
  CC      mm/percpu.o
  CC      arch/x86/platform/efi/early_printk.o
  CC      arch/x86/kernel/pci-iommu_table.o
  CC      arch/x86/kernel/resource.o
  AS      arch/x86/platform/efi/efi_thunk_64.o
  CC      arch/x86/kernel/process.o
  LD      arch/x86/platform/efi/built-in.o
  LD      arch/x86/platform/geode/built-in.o
  LD      arch/x86/platform/goldfish/built-in.o
  LD      arch/x86/platform/intel-mid/built-in.o
  LD      arch/x86/platform/iris/built-in.o
  LD      arch/x86/platform/olpc/built-in.o
  LD      arch/x86/platform/scx200/built-in.o
  CC      arch/x86/platform/sfi/sfi.o
  LD      arch/x86/platform/sfi/built-in.o
  LD      arch/x86/platform/ts5500/built-in.o
  LD      arch/x86/platform/uv/built-in.o
  LD      arch/x86/platform/built-in.o
  CC      arch/x86/realmode/init.o
  CC      mm/slab_common.o
  AS      arch/x86/realmode/rm/header.o
  AS      arch/x86/realmode/rm/trampoline_64.o
  CC      arch/x86/kernel/i387.o
  AS      arch/x86/realmode/rm/stack.o
  AS      arch/x86/realmode/rm/reboot.o
  AS      arch/x86/realmode/rm/wakeup_asm.o
  CC      arch/x86/realmode/rm/wakemain.o
  CC      arch/x86/realmode/rm/video-mode.o
  AS      arch/x86/realmode/rm/copy.o
  AS      arch/x86/realmode/rm/bioscall.o
  CC      arch/x86/realmode/rm/regs.o
  CC      arch/x86/realmode/rm/video-vga.o
  CC      arch/x86/realmode/rm/video-vesa.o
  CC      arch/x86/kernel/xsave.o
  CC      arch/x86/realmode/rm/video-bios.o
  PASYMS  arch/x86/realmode/rm/pasyms.h
  LDS     arch/x86/realmode/rm/realmode.lds
  LD      arch/x86/realmode/rm/realmode.elf
  RELOCS  arch/x86/realmode/rm/realmode.relocs
  OBJCOPY arch/x86/realmode/rm/realmode.bin
  AS      arch/x86/realmode/rmpiggy.o
  CC      mm/compaction.o
  LD      arch/x86/realmode/built-in.o
  CC      arch/x86/vdso/vma.o
  CC      arch/x86/kernel/ptrace.o
  CC      arch/x86/vdso/vdso32-setup.o
  LDS     arch/x86/vdso/vdso.lds
  AS      arch/x86/vdso/vdso-note.o
  CC      arch/x86/vdso/vclock_gettime.o
  CC      mm/vmacache.o
  CC      arch/x86/vdso/vgetcpu.o
  CC      mm/interval_tree.o
  HOSTCC  arch/x86/vdso/vdso2c
  CC      arch/x86/kernel/tls.o
In file included from arch/x86/vdso/vdso2c.c:161:0:
arch/x86/vdso/vdso2c.h: In function ‘go64’:
arch/x86/vdso/vdso2c.h:92:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (k = 0; k < NSYMS; k++) {
                 ^
In file included from arch/x86/vdso/vdso2c.c:165:0:
arch/x86/vdso/vdso2c.h: In function ‘go32’:
arch/x86/vdso/vdso2c.h:92:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (k = 0; k < NSYMS; k++) {
                 ^
  CC      mm/list_lru.o
  LDS     arch/x86/vdso/vdsox32.lds
  X32     arch/x86/vdso/vdso-note-x32.o
  X32     arch/x86/vdso/vclock_gettime-x32.o
  X32     arch/x86/vdso/vgetcpu-x32.o
  LDS     arch/x86/vdso/vdso32/vdso32.lds
  CC      arch/x86/kernel/step.o
  CC      arch/x86/vdso/vdso32/vclock_gettime.o
  CC      mm/workingset.o
  CC      arch/x86/kernel/tboot.o
  AS      arch/x86/vdso/vdso32/note.o
  AS      arch/x86/vdso/vdso32/int80.o
  AS      arch/x86/vdso/vdso32/syscall.o
  AS      arch/x86/vdso/vdso32/sysenter.o
  VDSO    arch/x86/vdso/vdso64.so.dbg
  CC      mm/iov_iter.o
  VDSO    arch/x86/vdso/vdsox32.so.dbg
  VDSO    arch/x86/vdso/vdso32-int80.so.dbg
  VDSO    arch/x86/vdso/vdso32-syscall.so.dbg
  VDSO    arch/x86/vdso/vdso32-sysenter.so.dbg
  OBJCOPY arch/x86/vdso/vdso64.so
  OBJCOPY arch/x86/vdso/vdsox32.so
  OBJCOPY arch/x86/vdso/vdso32-int80.so
  OBJCOPY arch/x86/vdso/vdso32-syscall.so
  OBJCOPY arch/x86/vdso/vdso32-sysenter.so
  VDSO2C  arch/x86/vdso/vdso-image-64.c
  VDSO2C  arch/x86/vdso/vdso-image-x32.c
  VDSO2C  arch/x86/vdso/vdso-image-32-int80.c
  VDSO2C  arch/x86/vdso/vdso-image-32-syscall.c
  VDSO2C  arch/x86/vdso/vdso-image-32-sysenter.c
  CC      arch/x86/vdso/vdso-image-64.o
  CC      arch/x86/vdso/vdso-image-x32.o
  CC      arch/x86/kernel/i8237.o
  CC      arch/x86/vdso/vdso-image-32-int80.o
  CC      arch/x86/kernel/stacktrace.o
  CC      arch/x86/vdso/vdso-image-32-syscall.o
  CC      arch/x86/vdso/vdso-image-32-sysenter.o
  CC      mm/prfile.o
  LD      arch/x86/vdso/built-in.o
  CC      arch/x86/xen/enlighten.o
  CC      mm/debug.o
  CC      arch/x86/kernel/acpi/boot.o
  CC      mm/fremap.o
  CC      arch/x86/kernel/acpi/sleep.o
  CC      mm/gup.o
  CC      arch/x86/xen/setup.o
  AS      arch/x86/kernel/acpi/wakeup_64.o
  CC      arch/x86/kernel/acpi/apei.o
  CC      arch/x86/kernel/acpi/cstate.o
  CC      arch/x86/xen/multicalls.o
  CC      mm/highmem.o
  CC      arch/x86/xen/mmu.o
  LD      arch/x86/kernel/acpi/built-in.o
  CC      arch/x86/kernel/apic/apic.o
  CC      mm/memory.o
  CC      arch/x86/kernel/apic/apic_noop.o
  CC      arch/x86/kernel/apic/ipi.o
  CC      arch/x86/xen/irq.o
  CC      arch/x86/kernel/apic/vector.o
  CC      arch/x86/xen/time.o
  CC      mm/mincore.o
  CC      arch/x86/kernel/apic/hw_nmi.o
  CC      arch/x86/kernel/apic/io_apic.o
  AS      arch/x86/xen/xen-asm.o
  AS      arch/x86/xen/xen-asm_64.o
  CC      arch/x86/xen/grant-table.o
  CC      mm/mlock.o
  CC      arch/x86/xen/suspend.o
  CC      arch/x86/xen/platform-pci-unplug.o
  CC      mm/mmap.o
  CC      arch/x86/kernel/apic/msi.o
  CC      arch/x86/xen/p2m.o
  CC      arch/x86/kernel/apic/htirq.o
  CC      arch/x86/kernel/apic/x2apic_phys.o
  CC      arch/x86/xen/trace.o
  CC      mm/mprotect.o
  CC      arch/x86/kernel/apic/x2apic_cluster.o
  CC      arch/x86/kernel/apic/apic_flat_64.o
  CC      mm/mremap.o
  CC      arch/x86/xen/smp.o
  CC      arch/x86/kernel/apic/probe_64.o
  CC      mm/msync.o
  LD      arch/x86/kernel/apic/built-in.o
  CC      arch/x86/kernel/cpu/intel_cacheinfo.o
  CC      mm/rmap.o
  CC      arch/x86/xen/spinlock.o
  CC      arch/x86/kernel/cpu/scattered.o
  CC      arch/x86/kernel/cpu/topology.o
  CC      arch/x86/xen/apic.o
  CC      arch/x86/kernel/cpu/common.o
  CC      arch/x86/xen/vga.o
  CC      mm/vmalloc.o
  CC      arch/x86/xen/pci-swiotlb-xen.o
  CC      arch/x86/kernel/cpu/rdrand.o
  CC      arch/x86/xen/efi.o
  CC      arch/x86/kernel/cpu/match.o
  LD      arch/x86/xen/built-in.o
  CC      arch/x86/kernel/cpu/proc.o
  MKCAP   arch/x86/kernel/cpu/capflags.c
  CC      mm/pagewalk.o
  CC      arch/x86/kernel/cpu/powerflags.o
  CC      arch/x86/kernel/cpu/bugs_64.o
  CC      arch/x86/kernel/cpu/intel.o
  CC      mm/pgtable-generic.o
  CC      arch/x86/kernel/cpu/amd.o
  CC      mm/process_vm_access.o
  CC      mm/init-mm.o
  CC      arch/x86/kernel/cpu/centaur.o
  CC      mm/nobootmem.o
  CC      arch/x86/kernel/cpu/perf_event.o
  CC      mm/fadvise.o
  CC      mm/madvise.o
  CC      arch/x86/kernel/cpu/perf_event_amd.o
  CC      mm/memblock.o
  CC      mm/page_io.o
  CC      arch/x86/kernel/cpu/perf_event_amd_uncore.o
  CC      mm/swap_state.o
  CC      arch/x86/kernel/cpu/perf_event_amd_iommu.o
  CC      mm/swapfile.o
  CC      arch/x86/kernel/cpu/perf_event_p6.o
  CC      mm/frontswap.o
  CC      arch/x86/kernel/cpu/perf_event_knc.o
  CC      mm/zswap.o
  CC      arch/x86/kernel/cpu/perf_event_p4.o
  CC      mm/dmapool.o
  CC      arch/x86/kernel/cpu/perf_event_intel_lbr.o
  CC      mm/hugetlb.o
  CC      mm/mempolicy.o
  CC      arch/x86/kernel/cpu/perf_event_intel_ds.o
  CC      arch/x86/kernel/cpu/perf_event_intel.o
  CC      mm/sparse.o
  CC      mm/sparse-vmemmap.o
  CC      mm/mmu_notifier.o
  CC      mm/slub.o
  CC      arch/x86/kernel/cpu/perf_event_intel_rapl.o
  CC      mm/migrate.o
  CC      arch/x86/kernel/cpu/perf_event_intel_uncore.o
  CC      arch/x86/kernel/cpu/perf_event_intel_uncore_snb.o
  CC      mm/page_counter.o
  CC      arch/x86/kernel/cpu/perf_event_intel_uncore_snbep.o
  CC      arch/x86/kernel/cpu/perf_event_intel_uncore_nhmex.o
  CC      mm/memcontrol.o
  CC      arch/x86/kernel/cpu/mcheck/mce.o
  CC      arch/x86/kernel/cpu/microcode/core.o
  CC      arch/x86/kernel/cpu/microcode/intel.o
  CC      arch/x86/kernel/cpu/microcode/intel_lib.o
  CC      arch/x86/kernel/cpu/mcheck/mce-severity.o
  CC      arch/x86/kernel/cpu/microcode/amd.o
  CC      arch/x86/kernel/cpu/mcheck/mce_intel.o
  CC      mm/vmpressure.o
  CC      arch/x86/kernel/cpu/microcode/core_early.o
  CC      arch/x86/kernel/cpu/mcheck/mce_amd.o
  CC      mm/swap_cgroup.o
  CC      arch/x86/kernel/cpu/microcode/intel_early.o
  CC      mm/hugetlb_cgroup.o
  CC      arch/x86/kernel/cpu/mcheck/threshold.o
  CC      mm/memory-failure.o
  CC      arch/x86/kernel/cpu/microcode/amd_early.o
  CC      arch/x86/kernel/cpu/mcheck/therm_throt.o
  LD      arch/x86/kernel/cpu/microcode/microcode.o
  LD      arch/x86/kernel/cpu/microcode/built-in.o
  CC      mm/cleancache.o
  CC      arch/x86/kernel/cpu/mcheck/mce-apei.o
  CC      mm/page_isolation.o
  CC      mm/zpool.o
  LD      arch/x86/kernel/cpu/mcheck/built-in.o
  CC      arch/x86/kernel/cpu/mtrr/main.o
  CC      mm/zbud.o
  CC      mm/zsmalloc.o
  CC      mm/early_ioremap.o
  CC      arch/x86/kernel/cpu/mtrr/if.o
  CC      mm/cma.o
  CC      mm/balloon_compaction.o
  CC      arch/x86/kernel/cpu/mtrr/generic.o
  CC      arch/x86/kernel/cpu/mtrr/cleanup.o
  LD      mm/built-in.o
  CC      arch/x86/kernel/cpu/perfctr-watchdog.o
  CC      arch/x86/kernel/cpu/perf_event_amd_ibs.o
  LD      arch/x86/kernel/cpu/mtrr/built-in.o
  CC      arch/x86/kernel/cpu/vmware.o
  CC      arch/x86/kernel/cpu/hypervisor.o
  CC      arch/x86/kernel/cpu/mshyperv.o
  CC      arch/x86/kernel/cpu/capflags.o
  LD      arch/x86/kernel/kprobes/built-in.o
  CC      arch/x86/kernel/reboot.o
  CC      arch/x86/kernel/early-quirks.o
  LD      arch/x86/kernel/cpu/built-in.o
  CC      arch/x86/kernel/smp.o
  CC      arch/x86/kernel/smpboot.o
  CC      arch/x86/kernel/tsc_sync.o
  CC      arch/x86/kernel/setup_percpu.o
  CC      arch/x86/kernel/mpparse.o
  CC      arch/x86/kernel/trace_clock.o
  CC      arch/x86/kernel/machine_kexec_64.o
  AS      arch/x86/kernel/relocate_kernel_64.o
  CC      arch/x86/kernel/crash.o
  CC      arch/x86/kernel/module.o
  CC      arch/x86/kernel/doublefault.o
  CC      arch/x86/kernel/early_printk.o
  CC      arch/x86/kernel/hpet.o
  CC      arch/x86/kernel/amd_nb.o
  CC      arch/x86/kernel/kvm.o
  CC      arch/x86/kernel/kvmclock.o
  CC      arch/x86/kernel/paravirt.o
  CC      arch/x86/kernel/paravirt_patch_64.o
  CC      arch/x86/kernel/paravirt-spinlocks.o
  CC      arch/x86/kernel/pvclock.o
  CC      arch/x86/kernel/pcspeaker.o
  CC      arch/x86/kernel/pci-swiotlb.o
  CC      arch/x86/kernel/sysfb.o
  CC      arch/x86/kernel/sysfb_simplefb.o
  CC      arch/x86/kernel/sysfb_efi.o
  CC      arch/x86/kernel/perf_regs.o
  CC      arch/x86/kernel/tracepoint.o
  CC      arch/x86/kernel/pmc_atom.o
  CC      arch/x86/kernel/audit_64.o
  CC      arch/x86/kernel/amd_gart_64.o
  CC      arch/x86/kernel/aperture_64.o
  CC      arch/x86/kernel/pci-calgary_64.o
  CC      arch/x86/kernel/tce_64.o
  CC      arch/x86/kernel/mmconf-fam10h_64.o
  CC      arch/x86/kernel/vsmp_64.o
  AS      arch/x86/kernel/head_64.o
  CC      arch/x86/kernel/head64.o
  CC      arch/x86/kernel/head.o
  LDS     arch/x86/kernel/vmlinux.lds
  LD      arch/x86/kernel/built-in.o
  LD      arch/x86/built-in.o
make[1]: Leaving directory '/root/zen/zen-kernel'
debian/ruleset/targets/common.mk:295: recipe for target 'debian/stamp/build/kernel' failed
make: *** [debian/stamp/build/kernel] Error 2
root@51-184:~/zen/linux#
xkp
 
Posts: 2
Joined: Tue Feb 10, 2015 7:59 am

Re: Compile new kernel (zen-kernel)

Postby PaX Team » Fri Mar 13, 2015 12:38 pm

this isn't a problem in grsec per se, you must resolve any merge conflicts with their changes before this will work.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Compile new kernel (zen-kernel)

Postby xkp » Sat Mar 14, 2015 3:47 am

a very young jedi-newbie iam master Yoda, i will try to give you some more info about the problems with patching, and if you be kind to suply me with some links for debug or some usefull command that generate logs when compile/patch-ing.
xkp
 
Posts: 2
Joined: Tue Feb 10, 2015 7:59 am


Return to grsecurity support