[OnePlus 5 Questions & Answers] parthroxx:
BUILDING PIXEL EXPERIENCE FOR CHEESEBURGER ​

Device Tree : https://github.com/PixelExperience-Devices/device_oneplus_cheeseburger/

Common Tree : https://github.com/LineageOS/android_device_oneplus_msm8998-common

Vendor tree:= https://github.com/officialpm/proprietary_vendor_oneplus

Kernel Source:= https://github.com/LineageOS/android_kernel_oneplus_msm8998

Rom Source : https://github.com/PixelExperience

Locations :

Device Tree - device/oneplus/cheeseburger

Common Tree - device/oneplus/msm8998-common

Vendor - vendor/oneplus

Kernel- kernel/oneplus/msm8998

Commands i I followed :

. build/envsetup.sh

lunch

then selected cheeseburger (49)

and mka bacon -j16

ERROR - https://del.dog/pecheese2.rb

[ 19% 14733/74287] //system/sepolicy/tools/fc_sort:fc_sort link fc_sort [darwin]
clang-6.0: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
[ 20% 14929/74287] //vendor/aosp/build/soong:generated_kernel_includes generate
FAILED: /Volumes/ANDROID/PEwork/out/soong/.intermediates/vendor/aosp/build/soong/generated_kernel_includes/gen/.dummy_dep
/Volumes/ANDROID/PEwork/out/soong/host/darwin-x86/bin/sbox --sandbox-path /Volumes/ANDROID/PEwork/out/soong/.temp --output-root /Volumes/ANDROID/PEwork/out/soong/.intermediates/vendor/aosp/build/soong/generated_kernel_includes/gen --copy-all-output -c 'make CFLAGS_MODULE="-fno-pic" C_INCLUDE_PATH=/Volumes/ANDROID/PEwork/external/elfutils/libelf:/usr/local/opt/openssl/include LIBRARY_PATH=/usr/local/opt/openssl/lib -C kernel/oneplus/msm8998 O=__SBOX_OUT_DIR__ ARCH=arm64 CROSS_COMPILE="aarch64-linux-androidkernel-" CROSS_COMPILE_ARM32="arm-linux-androidkernel-" headers_install' && touch /Volumes/ANDROID/PEwork/out/soong/.intermediates/vendor/aosp/build/soong/generated_kernel_includes/gen/.dummy_dep
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
HOSTCC scripts/basic/fixdep
WRAP arch/arm64/include/generated/asm/bug.h
WRAP arch/arm64/include/generated/asm/bugs.h
WRAP arch/arm64/include/generated/asm/clkdev.h
WRAP arch/arm64/include/generated/asm/cputime.h
WRAP arch/arm64/include/generated/asm/current.h
WRAP arch/arm64/include/generated/asm/delay.h
WRAP arch/arm64/include/generated/asm/div64.h
WRAP arch/arm64/include/generated/asm/dma.h
WRAP arch/arm64/include/generated/asm/dma-contiguous.h
WRAP arch/arm64/include/generated/asm/early_ioremap.h
WRAP arch/arm64/include/generated/asm/emergency-restart.h
WRAP arch/arm64/include/generated/asm/errno.h
WRAP arch/arm64/include/generated/asm/ftrace.h
WRAP arch/arm64/include/generated/asm/hash.h
WRAP arch/arm64/include/generated/asm/hw_irq.h
WRAP arch/arm64/include/generated/asm/ioctl.h
WRAP arch/arm64/include/generated/asm/ioctls.h
WRAP arch/arm64/include/generated/asm/ipcbuf.h
WRAP arch/arm64/include/generated/asm/irq_regs.h
WRAP arch/arm64/include/generated/asm/kdebug.h
WRAP arch/arm64/include/generated/asm/kmap_types.h
WRAP arch/arm64/include/generated/asm/kvm_para.h
WRAP arch/arm64/include/generated/asm/local.h
WRAP arch/arm64/include/generated/asm/local64.h
WRAP arch/arm64/include/generated/asm/mcs_spinlock.h
WRAP arch/arm64/include/generated/asm/mm-arch-hooks.h
WRAP arch/arm64/include/generated/asm/mman.h
WRAP arch/arm64/include/generated/asm/msgbuf.h
WRAP arch/arm64/include/generated/asm/msi.h
WRAP arch/arm64/include/generated/asm/mutex.h
WRAP arch/arm64/include/generated/asm/pci.h
WRAP arch/arm64/include/generated/asm/pci-bridge.h
WRAP arch/arm64/include/generated/asm/poll.h
WRAP arch/arm64/include/generated/asm/preempt.h
WRAP arch/arm64/include/generated/asm/resource.h
WRAP arch/arm64/include/generated/asm/rwsem.h
WRAP arch/arm64/include/generated/asm/sections.h
WRAP arch/arm64/include/generated/asm/segment.h
WRAP arch/arm64/include/generated/asm/sembuf.h
WRAP arch/arm64/include/generated/asm/serial.h
WRAP arch/arm64/include/generated/asm/shmbuf.h
WRAP arch/arm64/include/generated/asm/simd.h
WRAP arch/arm64/include/generated/asm/sizes.h
WRAP arch/arm64/include/generated/asm/socket.h
WRAP arch/arm64/include/generated/asm/sockios.h
WRAP arch/arm64/include/generated/asm/swab.h
WRAP arch/arm64/include/generated/asm/switch_to.h
WRAP arch/arm64/include/generated/asm/termbits.h
WRAP arch/arm64/include/generated/asm/termios.h
WRAP arch/arm64/include/generated/asm/topology.h
WRAP arch/arm64/include/generated/asm/trace_clock.h
WRAP arch/arm64/include/generated/asm/types.h
WRAP arch/arm64/include/generated/asm/unaligned.h
WRAP arch/arm64/include/generated/asm/user.h
WRAP arch/arm64/include/generated/asm/vga.h
WRAP arch/arm64/include/generated/asm/xor.h
WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
HOSTCC scripts/unifdef
INSTALL usr/include/asm-generic/ (35 files)
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
make[3]: *** [usr/include/asm-generic/.install] Error 1
make[2]: *** [asm-generic] Error 2
make[1]: *** [headers_install] Error 2
make: *** [sub-make] Error 2
sbox command (make CFLAGS_MODULE="-fno-pic" C_INCLUDE_PATH=/Volumes/ANDROID/PEwork/external/elfutils/libelf:/usr/local/opt/openssl/include LIBRARY_PATH=/usr/local/opt/openssl/lib -C kernel/oneplus/msm8998 O=/Volumes/ANDROID/PEwork/out/soong/.temp/sbox122541355 ARCH=arm64 CROSS_COMPILE="aarch64-linux-androidkernel-" CROSS_COMPILE_ARM32="arm-linux-androidkernel-" headers_install) failed with err "exit status 2"

[ 20% 14944/74287] //art/libdexfile:libdexfi...lang++ dex/dex_file_verifier.cc [darwin x86
ninja: build stopped: subcommand failed.
14:23:26 ninja failed with: exit status 1

#### failed to build some targets (01:25:43 (hh:mm:ss)) ####

I am new to this (ROM BUILDING) , Please help with the error.

Thanks in Advance.