realme-kernel-opensource / realme_c55-AndroidU-kernel-source

Other
1 stars 1 forks source link

Compilation #2

Open MakingPanorama opened 1 month ago

MakingPanorama commented 1 month ago

Which configuration while building, binutils needed to build kernel without errors ? ./include/trace/define_trace.h:89:10: fatal error: './sched_assist_trace.h' file not found

include TRACE_INCLUDE(TRACE_INCLUDE_FILE)

tried on google clang 11.0.1(r383902)

MakingPanorama commented 1 month ago
drivers/misc/mediatek/base/power/cpufreq_v1/src/v2/mtk_cpufreq_main.c:184:2: error: implicit declaration of function 'cpuhvfs_set_dvfs' [-Werror,-Wimplicit-function-declaration]
        cpuhvfs_set_dvfs(cpufreq_get_cluster_id(p->cpu_id), target_khz);
        ^
drivers/misc/mediatek/base/power/cpufreq_v1/src/v2/mtk_cpufreq_main.c:1158:4: error: implicit declaration of function 'cpuhvfs_set_min_max' [-Werror,-Wimplicit-function-declaration]
                        cpuhvfs_set_min_max(i,
                        ^
drivers/misc/mediatek/base/power/cpufreq_v1/src/v2/mtk_cpufreq_main.c:1165:3: error: implicit declaration of function 'cpuhvfs_write_advise_freq' [-Werror,-Wimplicit-function-declaration]
                cpuhvfs_write_advise_freq(i, ppm->cpu_limit[i].has_advise_freq);
                ^
drivers/misc/mediatek/base/power/cpufreq_v1/src/v2/mtk_cpufreq_main.c:1349:3: error: implicit declaration of function 'cpuhvfs_set_cluster_on_off' [-Werror,-Wimplicit-function-declaration]
                cpuhvfs_set_cluster_on_off(cpufreq_get_cluster_id(p->cpu_id),
                ^
drivers/misc/mediatek/base/power/cpufreq_v1/src/v2/mtk_cpufreq_main.c:1349:3: note: did you mean 'cpuhvfs_notify_cluster_off'?
./drivers/misc/mediatek/base/power/include/mtk_cpufreq_hybrid.h:161:13: note: 'cpuhvfs_notify_cluster_off' declared here
extern void cpuhvfs_notify_cluster_off(unsigned int cluster);
            ^
drivers/misc/mediatek/base/power/cpufreq_v1/src/v2/mtk_cpufreq_main.c:1358:2: error: implicit declaration of function 'srate_doe' [-Werror,-Wimplicit-function-declaration]
        srate_doe();
        ^
drivers/misc/mediatek/base/power/cpufreq_v1/src/v2/mtk_cpufreq_main.c:1506:4: error: implicit declaration of function 'cpuhvfs_set_cluster_on_off' [-Werror,-Wimplicit-function-declaration]
                        cpuhvfs_set_cluster_on_off(
                        ^
drivers/misc/mediatek/base/power/cpufreq_v1/src/v2/mtk_cpufreq_main.c:1697:2: error: implicit declaration of function 'cpuhvfs_set_init_sta' [-Werror,-Wimplicit-function-declaration]
        cpuhvfs_set_init_sta();
        ^
drivers/misc/mediatek/base/power/cpufreq_v1/src/v2/mtk_cpufreq_main.c:1699:2: error: implicit declaration of function 'cpuhvfs_set_sched_dvfs_disable' [-Werror,-Wimplicit-function-declaration]
        cpuhvfs_set_sched_dvfs_disable(1);
MakingPanorama commented 1 month ago
 CC      drivers/misc/oplus/oplus_display_onscreenfingerprint.o
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:39:9: warning: '_UFMT_bpp_WIDTH' macro redefined [-Wmacro-redefined]
#define _UFMT_bpp_WIDTH 7
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:31:9: note: previous definition is here
#define _UFMT_bpp_WIDTH 6
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:46:9: warning: 'MAKE_UNIFIED_COLOR_FMT' macro redefined [-Wmacro-redefined]
#define MAKE_UNIFIED_COLOR_FMT(\
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:38:9: note: previous definition is here
#define MAKE_UNIFIED_COLOR_FMT(rgb, bpp, block, vdo, format, byteswap,\
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:88:6: error: redefinition of 'UNIFIED_COLOR_FMT'
enum UNIFIED_COLOR_FMT {
     ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:81:6: note: previous definition is here
enum UNIFIED_COLOR_FMT {
     ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:89:2: error: redefinition of enumerator 'UFMT_UNKNOWN'
        UFMT_UNKNOWN = 0,
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:82:2: note: previous definition is here
        UFMT_UNKNOWN = 0,
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:90:2: error: redefinition of enumerator 'UFMT_Y8'
        UFMT_Y8 =       MAKE_UNIFIED_COLOR_FMT(0, 8, 0, 0, 7, 0, 0, 1),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:83:2: note: previous definition is here
        UFMT_Y8 = MAKE_UNIFIED_COLOR_FMT(0, 8, 0, 0, 7, 0, 0, 1),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:91:2: error: redefinition of enumerator 'UFMT_RGBA4444'
        UFMT_RGBA4444 = MAKE_UNIFIED_COLOR_FMT(1, 16, 0, 0, 4, 0, 0, 2),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:84:2: note: previous definition is here
        UFMT_RGBA4444 = MAKE_UNIFIED_COLOR_FMT(1, 16, 0, 0, 4, 0, 0, 2),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:92:2: error: redefinition of enumerator 'UFMT_RGBA5551'
        UFMT_RGBA5551 = MAKE_UNIFIED_COLOR_FMT(1, 16, 0, 0, 0, 0, 0, 3),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:85:2: note: previous definition is here
        UFMT_RGBA5551 = MAKE_UNIFIED_COLOR_FMT(1, 16, 0, 0, 0, 0, 0, 3),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:93:2: error: redefinition of enumerator 'UFMT_RGB565'
        UFMT_RGB565 =   MAKE_UNIFIED_COLOR_FMT(1, 16, 0, 0, 0, 0, 0, 4),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:86:2: note: previous definition is here
        UFMT_RGB565 = MAKE_UNIFIED_COLOR_FMT(1, 16, 0, 0, 0, 0, 0, 4),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:94:2: error: redefinition of enumerator 'UFMT_BGR565'
        UFMT_BGR565 =   MAKE_UNIFIED_COLOR_FMT(1, 16, 0, 0, 0, 1, 0, 5),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:87:2: note: previous definition is here
        UFMT_BGR565 = MAKE_UNIFIED_COLOR_FMT(1, 16, 0, 0, 0, 1, 0, 5),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:95:2: error: redefinition of enumerator 'UFMT_RGB888'
        UFMT_RGB888 =   MAKE_UNIFIED_COLOR_FMT(1, 24, 0, 0, 1, 1, 0, 6),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:88:2: note: previous definition is here
        UFMT_RGB888 = MAKE_UNIFIED_COLOR_FMT(1, 24, 0, 0, 1, 1, 0, 6),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:96:2: error: redefinition of enumerator 'UFMT_BGR888'
        UFMT_BGR888 =   MAKE_UNIFIED_COLOR_FMT(1, 24, 0, 0, 1, 0, 0, 7),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:89:2: note: previous definition is here
        UFMT_BGR888 = MAKE_UNIFIED_COLOR_FMT(1, 24, 0, 0, 1, 0, 0, 7),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:97:2: error: redefinition of enumerator 'UFMT_RGBA8888'
        UFMT_RGBA8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 2, 1, 0, 8),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:90:2: note: previous definition is here
        UFMT_RGBA8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 2, 1, 0, 8),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:98:2: error: redefinition of enumerator 'UFMT_BGRA8888'
        UFMT_BGRA8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 2, 0, 0, 9),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:91:2: note: previous definition is here
        UFMT_BGRA8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 2, 0, 0, 9),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:99:2: error: redefinition of enumerator 'UFMT_ARGB8888'
        UFMT_ARGB8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 3, 1, 0, 10),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:92:2: note: previous definition is here
        UFMT_ARGB8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 3, 1, 0, 10),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:100:2: error: redefinition of enumerator 'UFMT_ABGR8888'
        UFMT_ABGR8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 3, 0, 0, 11),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:93:2: note: previous definition is here
        UFMT_ABGR8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 3, 0, 0, 11),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:101:2: error: redefinition of enumerator 'UFMT_RGBX8888'
        UFMT_RGBX8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 0, 0, 0, 12),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:94:2: note: previous definition is here
        UFMT_RGBX8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 0, 0, 0, 12),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:102:2: error: redefinition of enumerator 'UFMT_BGRX8888'
        UFMT_BGRX8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 0, 0, 0, 13),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:95:2: note: previous definition is here
        UFMT_BGRX8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 0, 0, 0, 13),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:103:2: error: redefinition of enumerator 'UFMT_XRGB8888'
        UFMT_XRGB8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 0, 0, 0, 14),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:96:2: note: previous definition is here
        UFMT_XRGB8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 0, 0, 0, 14),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:104:2: error: redefinition of enumerator 'UFMT_XBGR8888'
        UFMT_XBGR8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 0, 0, 0, 15),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:97:2: note: previous definition is here
        UFMT_XBGR8888 = MAKE_UNIFIED_COLOR_FMT(1, 32, 0, 0, 0, 0, 0, 15),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:105:2: error: redefinition of enumerator 'UFMT_AYUV'
        UFMT_AYUV =     MAKE_UNIFIED_COLOR_FMT(0, 0, 0, 0, 0, 0, 0, 16),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:98:2: note: previous definition is here
        UFMT_AYUV = MAKE_UNIFIED_COLOR_FMT(0, 0, 0, 0, 0, 0, 0, 16),
        ^
In file included from drivers/misc/oplus/oplus_display_onscreenfingerprint.c:14:
In file included from ./drivers/misc/mediatek/video/mt6779/videox/disp_drv_log.h:10:
In file included from ./drivers/misc/mediatek/video/mt6779/dispsys/display_recorder.h:13:
./drivers/misc/mediatek/video/mt6779/dispsys/ddp_info.h:106:2: error: redefinition of enumerator 'UFMT_YUV'
        UFMT_YUV =      MAKE_UNIFIED_COLOR_FMT(0, 0, 0, 0, 0, 0, 0, 17),
        ^
./drivers/misc/mediatek/video/mt6768/dispsys/ddp_info.h:99:2: note: previous definition is here
        UFMT_YUV = MAKE_UNIFIED_COLOR_FMT(0, 0, 0, 0, 0, 0, 0, 17),
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

And why kernel source code contains wrong #include path directory?