# git rev-parse -q --verify a2818e1225b055e1aab14e47a4ce039338b0c216^{commit} a2818e1225b055e1aab14e47a4ce039338b0c216 already have revision, skipping fetch # git checkout -q -f -B kisskb a2818e1225b055e1aab14e47a4ce039338b0c216 # git clean -qxdf # < git log -1 # commit a2818e1225b055e1aab14e47a4ce039338b0c216 # Author: Alexey Kardashevskiy # Date: Thu Sep 29 12:08:23 2022 +1000 # # zstd: Fixing mixed module-builtin objects # # With CONFIG_ZSTD_COMPRESS=m and CONFIG_ZSTD_DECOMPRESS=y we end up in # a situation when files from lib/zstd/common/ are compiled once to be # linked later for ZSTD_DECOMPRESS (build-in) and ZSTD_COMPRESS (module) # even though CFLAGS are different for builtins and modules. # So far somehow this was not a problem but enabling LLVM LTO exposes # the problem as: # # ld.lld: error: linking module flags 'Code Model': IDs have conflicting values in 'lib/built-in.a(zstd_common.o at 5868)' and 'ld-temp.o' # # This particular conflict is caused by KBUILD_CFLAGS=-mcmodel=medium vs. # KBUILD_CFLAGS_MODULE=-mcmodel=large , modules use the large model on # POWERPC as explained at # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/Makefile?h=v5.18-rc4#n127 # but the current use of common files is wrong anyway. # # This works around the issue by introducing a zstd_common module with # shared code. # # Signed-off-by: Alexey Kardashevskiy # Signed-off-by: Masahiro Yamada # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 a2818e1225b055e1aab14e47a4ce039338b0c216 # < make -s -j 24 ARCH=x86 O=/kisskb/build/kbuild_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # < make -s -j 24 ARCH=x86 O=/kisskb/build/kbuild_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 24 ARCH=x86 O=/kisskb/build/kbuild_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig # make -s -j 24 ARCH=x86 O=/kisskb/build/kbuild_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c: In function 'UseMinimumDCFCLK': /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c:6805:1: error: the frame size of 2096 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] } ^ cc1: all warnings being treated as errors make[6]: *** [/kisskb/src/scripts/Makefile.build:249: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.o] Error 1 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [/kisskb/src/scripts/Makefile.build:440: drivers/gpu/drm/amd/amdgpu] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:440: drivers/gpu/drm] Error 2 make[3]: *** [/kisskb/src/scripts/Makefile.build:440: drivers/gpu] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:440: drivers] Error 2 make[1]: *** [/kisskb/src/Makefile:1846: .] Error 2 make: *** [Makefile:222: __sub-make] Error 2 Command 'make -s -j 24 ARCH=x86 O=/kisskb/build/kbuild_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/kbuild_x86-allmodconfig_x86_64-gcc8 # Build took: 0:36:14.226409