Feel free to contribute to this documentation by explaining the issue and linking the commit that helped you fix it.
Note
How to apply a patch file?
patch -p1 < filename.patch
However, I recommend opening the patch file in a code editor and manually editing your files for better understanding.
- Not all patch files can be applied using the command above.
- If the errors you are facing are related to
-Werror, aka treating warnings as errors, you can use this patch to disable treating warnings as errors, even though it's not a good practice :)
-
Fix:
../scripts/gcc-version.sh: line 25: aarch64-linux-gnu-gcc: command not found -
Fix:
-fstack-protector-strong not supported by compiler -
Fix:
multiple definition of 'yylloc' -
Fix:
#error New address family defined, please update secclass_map. -
Fix:
sec_debug_test.c:773:(.text+0x1044): relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC against... -
Fix:
fatal error: 'linux/state_notifier.h' file not found -
Fix:
./include/linux/ologk.h:5:10: fatal error: 'olog.pb.h' file not found -
Fix:
drivers/misc/tzdev/tz_deploy_tzar: fix startup.tzar inclusion -
Fix:
ioctl_cfg80211.c: error: too many arguments to function call, expected 3, have 8 -
Fix:
drivers/input/touchscreen/gt1151q_1695/gt1x_test.c: multiple definition of 'is_space' -
Fix:
yamltree.c:(.text+0xa41): undefined reference to `yaml_emitter_initialize' -
Fix:
as: unrecognized option '-EL' -
Fix:
undefined reference to 'stpcpy' -
Fix:
../kernel/gen_kheaders.sh: 71: ../tools/build/cpio: not found