[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] amit020:
I'm trying to build resurrection remix oreo ROM for the first time for MOTO C PLUS , do I need to make some change in kernel source, because when I delete kernel/moto folder and try to brunch I got the same error as when the folder is present...I have tried command make - j4, bunch <device name> and I'm getting this error in terminal

[44/44] bootstrap /Volumes/untitled/rr...ut/soong/.minibootstrap/build.ninja.in

[4/4] /Volumes/untitled/rr-oreo/out/so...-oreo/out/soong/.bootstrap/build.ninja

[872/873] glob vendor/qcom/opensource/...erfaces/wifi/supplicant/1.0/Android.bp

[56/56] /Volumes/untitled/rr-oreo/out/...untitled/rr-oreo/out/soong/build.ninja

/Volumes/untitled/rr-oreo/out/build-amit.ninja is missing, regenerating...

[130/1067] including ./device/moto/panelli/Android.mk ...

device/moto/panelli/hals/wpa_supplicant_8_lib/Android.mk:22: warning: build BASIC wpa_supplicant

[591/1067] including ./packages/apps/ResurrectionOTA/Android.mk ...

cp: illegal option -- u

usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file

cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory

[738/1067] including ./system/sepolicy/Android.mk ...

./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version

[1067/1067] including ./vendor/rr/prebuilt/common/Android.mk ...

build/core/aapt2.mk:32: warning: overriding commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/obj/APPS/framework-res_intermediates/flat-res/device/moto/panelli/overlay/frameworks/base/core/res/res/values_config.arsc.flat'

build/core/aapt2.mk:32: warning: ignoring old commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/obj/APPS/framework-res_intermediates/flat-res/device/moto/panelli/overlay/frameworks/base/core/res/res/values_config.arsc.flat'

build/core/aapt2.mk:32: warning: overriding commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/obj/APPS/framework-res_intermediates/flat-res/device/moto/panelli/overlay/frameworks/base/core/res/res/xml_power_profile.xml.flat'

build/core/aapt2.mk:32: warning: ignoring old commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/obj/APPS/framework-res_intermediates/flat-res/device/moto/panelli/overlay/frameworks/base/core/res/res/xml_power_profile.xml.flat'

build/core/aapt2.mk:32: warning: overriding commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/obj/APPS/SystemUI_intermediates/flat-res/device/moto/panelli/overlay/frameworks/base/packages/SystemUI/res/values_config.arsc.flat'

build/core/aapt2.mk:32: warning: ignoring old commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/obj/APPS/SystemUI_intermediates/flat-res/device/moto/panelli/overlay/frameworks/base/packages/SystemUI/res/values_config.arsc.flat'

build/core/aapt2.mk:32: warning: overriding commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/obj/APPS/SystemUITests_intermediates/flat-res/device/moto/panelli/overlay/frameworks/base/packages/SystemUI/res/values_config.arsc.flat'

build/core/aapt2.mk:32: warning: ignoring old commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/obj/APPS/SystemUITests_intermediates/flat-res/device/moto/panelli/overlay/frameworks/base/packages/SystemUI/res/values_config.arsc.flat'

build/core/aapt2.mk:32: warning: overriding commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/obj/APPS/Settings_intermediates/flat-res/device/moto/panelli/overlay/packages/apps/Settings/res/values_config.arsc.flat'

build/core/aapt2.mk:32: warning: ignoring old commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/obj/APPS/Settings_intermediates/flat-res/device/moto/panelli/overlay/packages/apps/Settings/res/values_config.arsc.flat'

build/core/Makefile:33: warning: overriding commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/system/etc/permissions/android.software.live_wallpaper.xml'

build/core/base_rules.mk:391: warning: ignoring old commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/system/etc/permissions/android.software.live_wallpaper.xml'

build/core/Makefile:33: warning: overriding commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/system/vendor/manifest.xml'

build/core/base_rules.mk:391: warning: ignoring old commands for target `/Volumes/untitled/rr-oreo/out/target/product/panelli/system/vendor/manifest.xml'

[ 99% 1272/1273] glob system/tools/hidl/c2hal/test/Android.bp

[ 0% 39/73596] //external/boringssl:l...no_clang empty static archive [darwin]

warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: warning for library: /Volumes/untitled/rr-oreo/out/soong/.intermediates/external/boringssl/libcrypto_no_clang/darwin_x86_64_static/dummy.a the table of contents is empty (no object file members in the library define global symbols)

[ 0% 40/73596] //external/boringssl:l...lang empty static archive [darwin x86]

warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: warning for library: /Volumes/untitled/rr-oreo/out/soong/.intermediates/external/boringssl/libcrypto_no_clang/darwin_x86_static/dummy.a the table of contents is empty (no object file members in the library define global symbols)

[ 1% 787/73596] //external/e2fsprogs/lib/blkid:libext2_blkid clang probe.c

external/e2fsprogs/lib/blkid/probe.c:1485:44: warning: passing 'uint8_t [30]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]

blkid_set_tag(probe->dev, "LABEL", label->name, label->length);

^~~~~~~~~~~

external/e2fsprogs/lib/blkid/blkidP.h:177:17: note: passing argument to parameter 'value' here

const char *value, const int vlength);

^

external/e2fsprogs/lib/blkid/probe.c:1491:14: warning: passing 'uuid_t' (aka 'unsigned char [16]') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]

snprintf(uuid, sizeof (uuid), "%02hhX%02hhX-%02hhX%02hhX",

^~~~

bionic/libc/include/stdio.h:300:56: note: passing argument to parameter 'dest' here

int snprintf(char *__restrict const __pass_object_size dest,

^

external/e2fsprogs/lib/blkid/probe.c:1494:52: warning: passing 'uuid_t' (aka 'unsigned char [16]') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]

blkid_set_tag(probe->dev, "UUID", uuid, strlen(uuid));

^~~~

bionic/libc/include/string.h:343:42: note: passing argument to parameter 's' here

size_t strlen(const char* const _Nonnull s __pass_object_size0)

^

external/e2fsprogs/lib/blkid/probe.c:1494:39: warning: passing 'uuid_t' (aka 'unsigned char [16]') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]

blkid_set_tag(probe->dev, "UUID", uuid, strlen(uuid));

^~~~

external/e2fsprogs/lib/blkid/blkidP.h:177:17: note: passing argument to parameter 'value' here

const char *value, const int vlength);

^

external/e2fsprogs/lib/blkid/probe.c:1470:71: warning: unused parameter 'id' [-Wunused-parameter]

static int probe_exfat(struct blkid_probe *probe, struct blkid_magic *id,

^

5 warnings generated.

[ 1% 796/73596] //external/e2fsprogs/...libext2_blkid clang getsize.c [darwin]

external/e2fsprogs/lib/blkid/getsize.c:78:21: warning: unused variable 'size64' [-Wunused-variable]

unsigned long long size64;

^

1 warning generated.

[ 1% 816/73596] //external/e2fsprogs/...d:libext2_blkid clang probe.c [darwin]

external/e2fsprogs/lib/blkid/probe.c:204:42: warning: unused parameter 'fs_name' [-Wunused-parameter]

static int check_for_modules(const char *fs_name)

^

external/e2fsprogs/lib/blkid/probe.c:1485:44: warning: passing 'uint8_t [30]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]

blkid_set_tag(probe->dev, "LABEL", label->name, label->length);

^~~~~~~~~~~

external/e2fsprogs/lib/blkid/blkidP.h:177:17: note: passing argument to parameter 'value' here

const char *value, const int vlength);

^

external/e2fsprogs/lib/blkid/probe.c:1491:14: warning: passing 'uuid_t' (aka 'unsigned char [16]') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]

snprintf(uuid, sizeof (uuid), "%02hhX%02hhX-%02hhX%02hhX",

^~~~

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/secure/_stdio.h:57:29: note: expanded from macro 'snprintf'

__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)

^~~

external/e2fsprogs/lib/blkid/probe.c:1494:52: warning: passing 'uuid_t' (aka 'unsigned char [16]') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]

blkid_set_tag(probe->dev, "UUID", uuid, strlen(uuid));

^~~~

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/string.h:82:28: note: passing argument to parameter here

size_t strlen(const char *);

^

external/e2fsprogs/lib/blkid/probe.c:1494:39: warning: passing 'uuid_t' (aka 'unsigned char [16]') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]

blkid_set_tag(probe->dev, "UUID", uuid, strlen(uuid));

^~~~

external/e2fsprogs/lib/blkid/blkidP.h:177:17: note: passing argument to parameter 'value' here

const char *value, const int vlength);

^

external/e2fsprogs/lib/blkid/probe.c:1470:71: warning: unused parameter 'id' [-Wunused-parameter]

static int probe_exfat(struct blkid_probe *probe, struct blkid_magic *id,

^

6 warnings generated.

[ 1% 843/73596] //external/e2fsprogs/...libext2_e2p clang fgetflags.c [darwin]

external/e2fsprogs/lib/e2p/fgetflags.c:50:14: warning: unused variable 'buf' [-Wunused-variable]

struct stat buf;

^

external/e2fsprogs/lib/e2p/fgetflags.c:48:29: warning: unused parameter 'name' [-Wunused-parameter]

int fgetflags (const char * name, unsigned long * flags)

^

external/e2fsprogs/lib/e2p/fgetflags.c:48:51: warning: unused parameter 'flags' [-Wunused-parameter]

int fgetflags (const char * name, unsigned long * flags)

^

3 warnings generated.

[ 1% 844/73596] //external/e2fsprogs/...libext2_e2p clang fsetflags.c [darwin]

external/e2fsprogs/lib/e2p/fsetflags.c:57:29: warning: unused parameter 'name' [-Wunused-parameter]

int fsetflags (const char * name, unsigned long flags)

^

external/e2fsprogs/lib/e2p/fsetflags.c:57:49: warning: unused parameter 'flags' [-Wunused-parameter]

int fsetflags (const char * name, unsigned long flags)

^

2 warnings generated.

[ 1% 845/73596] //external/e2fsprogs/...bext2_e2p clang fsetproject.c [darwin]

external/e2fsprogs/lib/e2p/fsetproject.c:42:29: warning: unused parameter 'name' [-Wunused-parameter]

int fsetproject(const char *name, unsigned long project)

^

external/e2fsprogs/lib/e2p/fsetproject.c:42:49: warning: unused parameter 'project' [-Wunused-parameter]

int fsetproject(const char *name, unsigned long project)

^

2 warnings generated.

[ 1% 847/73596] //external/e2fsprogs/...bext2_e2p clang fgetproject.c [darwin]

external/e2fsprogs/lib/e2p/fgetproject.c:42:29: warning: unused parameter 'name' [-Wunused-parameter]

int fgetproject(const char *name, unsigned long *project)

^

external/e2fsprogs/lib/e2p/fgetproject.c:42:50: warning: unused parameter 'project' [-Wunused-parameter]

int fgetproject(const char *name, unsigned long *project)

^

2 warnings generated.

[ 1% 849/73596] //external/e2fsprogs/...bext2_e2p clang fgetversion.c [darwin]

external/e2fsprogs/lib/e2p/fgetversion.c:46:29: warning: unused parameter 'name' [-Wunused-parameter]

int fgetversion(const char *name, unsigned long *version)

^

1 warning generated.

[ 1% 850/73596] //external/e2fsprogs/...bext2_e2p clang fsetversion.c [darwin]

external/e2fsprogs/lib/e2p/fsetversion.c:46:31: warning: unused parameter 'name' [-Wunused-parameter]

int fsetversion (const char * name, unsigned long version)

^

external/e2fsprogs/lib/e2p/fsetversion.c:46:51: warning: unused parameter 'version' [-Wunused-parameter]

int fsetversion (const char * name, unsigned long version)

^

2 warnings generated.

[ 1% 851/73596] //external/e2fsprogs/...:libext2_e2p clang getflags.c [darwin]

external/e2fsprogs/lib/e2p/getflags.c:33:14: warning: unused variable 'buf' [-Wunused-variable]

struct stat buf;

^

external/e2fsprogs/lib/e2p/getflags.c:31:19: warning: unused parameter 'fd' [-Wunused-parameter]

int getflags (int fd, unsigned long * flags)

^

external/e2fsprogs/lib/e2p/getflags.c:31:39: warning: unused parameter 'flags' [-Wunused-parameter]

int getflags (int fd, unsigned long * flags)

^

3 warnings generated.

[ 1% 852/73596] //external/e2fsprogs/...ibext2_e2p clang getversion.c [darwin]

external/e2fsprogs/lib/e2p/getversion.c:29:21: warning: unused parameter 'fd' [-Wunused-parameter]

int getversion (int fd, unsigned long * version)

^

external/e2fsprogs/lib/e2p/getversion.c:29:41: warning: unused parameter 'version' [-Wunused-parameter]

int getversion (int fd, unsigned long * version)

^

2 warnings generated.

[ 1% 860/73596] //external/e2fsprogs/...:libext2_e2p clang setflags.c [darwin]

external/e2fsprogs/lib/e2p/setflags.c:40:19: warning: unused parameter 'fd' [-Wunused-parameter]

int setflags (int fd, unsigned long flags)

^

external/e2fsprogs/lib/e2p/setflags.c:40:37: warning: unused parameter 'flags' [-Wunused-parameter]

int setflags (int fd, unsigned long flags)

^

2 warnings generated.

[ 1% 861/73596] //external/e2fsprogs/...ibext2_e2p clang setversion.c [darwin]

external/e2fsprogs/lib/e2p/setversion.c:29:21: warning: unused parameter 'fd' [-Wunused-parameter]

int setversion (int fd, unsigned long version)

^

external/e2fsprogs/lib/e2p/setversion.c:29:39: warning: unused parameter 'version' [-Wunused-parameter]

int setversion (int fd, unsigned long version)

^

2 warnings generated.

[ 1% 993/73596] //external/e2fsprogs/lib/ext2fs:libext2fs clang sparse_io.c

external/e2fsprogs/lib/ext2fs/sparse_io.c:273:44: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat]

fprintf(stderr, "failed to alloc %lu\n", num * block_size);

~~~ ^~~~~~~~~~~~~~~~

%llu

1 warning generated.

[ 1% 1044/73596] //external/e2fsprogs...s:libext2fs clang ismounted.c [darwin]

external/e2fsprogs/lib/ext2fs/ismounted.c:394:3: warning: "Can't use getmntent or getmntinfo to check for mounted filesystems!" [-W#warnings]

#warning "Can't use getmntent or getmntinfo to check for mounted filesystems!"

^

1 warning generated.

[ 1% 1073/73596] //external/e2fsprogs...s:libext2fs clang sparse_io.c [darwin]

external/e2fsprogs/lib/ext2fs/sparse_io.c:273:44: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat]

fprintf(stderr, "failed to alloc %lu\n", num * block_size);

~~~ ^~~~~~~~~~~~~~~~

%llu

1 warning generated.

[ 1% 1083/73596] //external/e2fsprogs...xt2fs static link libext2fs.a [darwin]

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Volumes/untitled/rr-oreo/out/soong/.intermediates/external/e2fsprogs/lib/ext2fs/libext2fs/darwin_x86_64_static/libext2fs.a(swapfs.o) has no symbols

[ 1% 1335/73596] //system/tools/hidl:...dl-gen-ast yacc hidl-gen_y.yy [darwin]

FAILED: /Volumes/untitled/rr-oreo/out/soong/.intermediates/system/tools/hidl/libhidl-gen-ast/darwin_x86_64_shared/gen/yacc/system/tools/hidl/hidl-gen_y.cpp /Volumes/untitled/rr-oreo/out/soong/.intermediates/system/tools/hidl/libhidl-gen-ast/darwin_x86_64_shared/gen/yacc/system/tools/hidl/hidl-gen_y.h

BISON_PKGDATADIR=external/bison/data prebuilts/misc/darwin-x86/bison/bison -d --defines=/Volumes/untitled/rr-oreo/out/soong/.intermediates/system/tools/hidl/libhidl-gen-ast/darwin_x86_64_shared/gen/yacc/system/tools/hidl/hidl-gen_y.h -o /Volumes/untitled/rr-oreo/out/soong/.intermediates/system/tools/hidl/libhidl-gen-ast/darwin_x86_64_shared/gen/yacc/system/tools/hidl/hidl-gen_y.cpp system/tools/hidl/hidl-gen_y.yy

[ 1% 1340/73596] //system/tools/hidl/...s:libhidl-gen-utils clang++ FQName.cpp

ninja: build stopped: subcommand failed.

08:41:31 ninja failed with: exit status 1