[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] Joeisgood99:
Ok, Thanks!

This is a new one, just happened for the first time. Has it got to do with ccache? I checked the folder and it has normal permissions so not sure.

AS arch/arm64/crypto/aes-ce.o

CC arch/arm64/crypto/aes-glue-neon.o

error: error opening 'scripts/basic/.fixdep.d': Permission denied

1 error generated.

This is the first error I was refering to.

CC security/keys/encrypted-keys/encrypted.o

../drivers/acpi/scan.c:1982:39: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]

if ((*((u32 *) (void *) (("APIC"))) == *((u32 *) (void *) ((ape->id))))) {

and.....

CC block/blk-map.o

CC security/pfe/pfk.o

../fs/namei.c:1865:8: error: explicitly assigning value of variable of type 'unsigned long' to itself [-Werror,-Wself-assign]

adata = (adata);

~~~~~ ^ ~~~~~

../fs/namei.c:1866:8: error: explicitly assigning value of variable of type 'unsigned long' to itself [-Werror,-Wself-assign]

bdata = (bdata);

~~~~~ ^ ~~~~~

../fs/namei.c:2617:17: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]

and...

CC mm/compaction.o

../block/cfq-iosched.c:842:28: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]

if (((cfqq)->ioprio_class == IOPRIO_CLASS_IDLE))

this repeats about 10x

CC security/selinux/netlabel.o

../mm/mlock.c:375:6: error: explicitly assigning value of variable of type 'unsigned long' to itself [-Werror,-Wself-assign]

end = (end);

CC kernel/power/qos.o

../mm/mmap.c:1783:29: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]

if (((&mm->mm_rb)->rb_node == ((void *)0)))

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

../mm/mmap.c:1783:29: note: remove extraneous parentheses around the comparison to silence this warning

if (((&mm->mm_rb)->rb_node == ((void *)0)))

~ ^ ~

../mm/mmap.c:1783:29: note: use '=' to turn this equality comparison into an assignment

if (((&mm->mm_rb)->rb_node == ((void *)0)))

^~

=

../mm/mmap.c:1887:29: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]

if (((&mm->mm_rb)->rb_node == ((void *)0)))

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

../mm/mmap.c:1887:29: note: remove extraneous parentheses around the comparison to silence this warning

if (((&mm->mm_rb)->rb_node == ((void *)0)))

~ ^ ~

../mm/mmap.c:1887:29: note: use '=' to turn this equality comparison into an assignment

if (((&mm->mm_rb)->rb_node == ((void *)0)))

^~

=

../mm/mmap.c:2084:7: error: explicitly assigning value of variable of type 'unsigned long' to itself [-Werror,-Wself-assign]

addr = (addr);

~~~~ ^ ~~~~

3 errors generated.

../scripts/Makefile.build:274: recipe for target 'mm/mmap.o' failed

and..

CC crypto/asymmetric_keys/asymmetric_type.o

CC kernel/locking/percpu-rwsem.o

../security/smack/smack_lsm.c:892:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1078:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1084:6: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1111:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1119:6: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1144:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1152:6: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1184:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1190:6: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1223:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1248:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1268:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1332:6: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1399:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1436:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1618:6: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1623:6: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1645:5: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

../security/smack/smack_lsm.c:1676:6: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]

rc = (rc);

~~ ^ ~~

fatal error: too many errors emitted, stopping now [-ferror-limit=]

What do you think?