-
Notifications
You must be signed in to change notification settings - Fork 632
Open
Description
I'm getting lot of errors and warnings when building using gcc-11, gcc-10 and gcc-9.
Each version of aarch64-linux-gnu complier gives different errors.
Is the source fully updated?
Also can you tell me the build environment I need to setup?
Errors like:
../fs/proc/task_cpustats/task_sched_info.c: In function ‘proc_pids_set_write’:
../fs/proc/task_cpustats/task_sched_info.c:391:17: error: ‘-mgeneral-regs-only’ is incompatible with the use of floating-point types
391 | write_pid_time = ts.tv_sec * 1e6 + ts.tv_nsec / 1000 ;
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../fs/proc/task_cpustats/task_sched_info.c:391:17: error: ‘-mgeneral-regs-only’ is incompatible with the use of floating-point types
../fs/proc/task_cpustats/task_sched_info.c:391:17: error: ‘-mgeneral-regs-only’ is incompatible with the use of floating-point types
../fs/proc/task_cpustats/task_sched_info.c:391:17: error: ‘-mgeneral-regs-only’ is incompatible with the use of floating-point types
and
../drivers/power/oplus/v1/voocphy/oplus_sy6529.c: In function ‘sy6529_direct_chg_enable’:
../drivers/power/oplus/v1/voocphy/oplus_sy6529.c:362:12: error: suggest parentheses around comparison in operand of ‘|’ [-Werror=parentheses]
362 | if (*data == sy6529_CHARGE_MODE_2_1 | *data == sy6529_CHARGE_MODE_1_1) /* SY6529 is working in 2_1 mode or 1_1 mode, return 1*/
CC drivers/platform/msm/ipa/ipa_v3/ipa_dma.o
cc1: some warnings being treated as errors
make[6]: *** [../scripts/Makefile.build:338: drivers/power/oplus/v1/voocphy/oplus_sy6529.o] Error 1
make[5]: *** [../scripts/Makefile.build:642: drivers/power/oplus/v1/voocphy] Error 2
make[4]: *** [../scripts/Makefile.build:642: drivers/power/oplus/v1] Error 2
make[3]: *** [../scripts/Makefile.build:642: drivers/power/oplus] Error 2
make[2]: *** [../scripts/Makefile.build:642: drivers/power] Error 2
make[2]: *** Waiting for unfinished jobs....
and
In function ‘check_copy_size’,
inlined from ‘copy_from_user’ at ../include/linux/uaccess.h:146:6,
inlined from ‘ipa_debugfs_enable_disable_drop_stats’ at ../drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c:2256:12:
../include/linux/thread_info.h:147:4: error: call to ‘__bad_copy_to’ declared with attribute error: copy destination size is too small
147 | __bad_copy_to();
| ^~~~~~~~~~~~~~~
make[6]: *** [../scripts/Makefile.build:338: drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.o] Error 1
make[6]: *** Waiting for unfinished jobs....
Full Logs (gcc-9):
op9r_build_logs.txt
Full Logs (gcc-11):
op9r_build_logs-gcc-11.txt
Build Script and repo:
https://github.com/fatalcoder524/build_android_kernel_oneplus_sm8250
Metadata
Metadata
Assignees
Labels
No labels