[Android Software/Hacking General [Developers Only]] xdroidfreakz:
I tried compiling the kernel pixel 3a and got this problem

source kernel:

GitHub - flar2/Bluecross at ElementalX-P3a-4.00

Kernel for Pixel 3/3XL/3a/3aXL. Contribute to flar2/Bluecross development by creating an account on GitHub.

github.com

any suggestion? how to find the location of the error

CC lib/list_sort.o

In file included from /home/idoniex/Bluecross-ElementalX-P3a-4.00xx/techpack/audio/asoc/codecs/sdm660_cdc/msm

-digital-cdc.c:28:

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/techpack/audio/include/soc/internal.h:1:1: error: expected iden

tifier or '('

../../../../drivers/base/regmap/internal.h

^

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/techpack/audio/asoc/codecs/sdm660_cdc/msm-digital-cdc.c:108:25:

error: incomplete definition of type 'struct regmap'

msm_dig_cdc->regmap->cache_only = true;

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

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/include/linux/regmap.h:29:8: note: forward declaration of 'stru

ct regmap'

struct regmap;

^

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/techpack/audio/asoc/codecs/sdm660_cdc/msm-digital-cdc.c:239:41:

error: use of undeclared identifier 'COMPANDER_1'

if (dig_cdc->comp_enabled[interp_n] != COMPANDER_1 &&

^

CC lib/uuid.o

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/techpack/audio/asoc/codecs/sdm660_cdc/msm-digital-cdc.c:698:30:

error: use of undeclared identifier 'COMPANDER_1'

SOC_SINGLE_EXT("COMP0 RX1", COMPANDER_1, MSM89XX_RX1, 1, 0,

^

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/techpack/audio/asoc/codecs/sdm660_cdc/msm-digital-cdc.c:698:30:

error: use of undeclared identifier 'COMPANDER_1'

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/techpack/audio/asoc/codecs/sdm660_cdc/msm-digital-cdc.c:701:30:

error: use of undeclared identifier 'COMPANDER_1'

SOC_SINGLE_EXT("COMP0 RX2", COMPANDER_1, MSM89XX_RX2, 1, 0,

^

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/techpack/audio/asoc/codecs/sdm660_cdc/msm-digital-cdc.c:701:30:

error: use of undeclared identifier 'COMPANDER_1'

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/techpack/audio/asoc/codecs/sdm660_cdc/msm-digital-cdc.c:1340:4:

error: invalid application of 'sizeof' to an incomplete type 'const struct snd_kcontrol_new []'

ARRAY_SIZE(compander_kcontrols));

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

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/include/linux/kernel.h:55:32: note: expanded from macro 'ARRAY_

SIZE'

#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))

^~~~~

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/techpack/audio/asoc/codecs/sdm660_cdc/msm-digital-cdc.c:1354:34

: error: use of undeclared identifier 'COMPANDER_NONE'; did you mean 'DPM_ORDER_NONE'?

msm_dig_cdc->comp_enabled = COMPANDER_NONE;

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

DPM_ORDER_NONE

/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/include/linux/pm.h:783:2: note: 'DPM_ORDER_NONE' declared here

DPM_ORDER_NONE,

^

9 errors generated.

make[6]: *** [/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/scripts/Makefile.build:342: techpack/audio/asoc/c

odecs/sdm660_cdc/msm-digital-cdc.o] Error 1

make[5]: *** [/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/scripts/Makefile.build:656: techpack/audio/asoc/c

odecs/sdm660_cdc] Error 2

make[4]: *** [/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/scripts/Makefile.build:656: techpack/audio/asoc/c

odecs] Error 2

make[3]: *** [/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/scripts/Makefile.build:656: techpack/audio/asoc]

Error 2

make[2]: *** [/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/scripts/Makefile.build:656: techpack/audio] Error

2

make[1]: *** [/home/idoniex/Bluecross-ElementalX-P3a-4.00xx/Makefile:1125: techpack] Error 2

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