cancel
Showing results for 
Search instead for 
Did you mean: 

PC Drivers & Software

gremlin_it
Journeyman III

amdgpu-pro 21.20 fail to compile on rhel 8 with kernel 5.15.0

during the installtion of the new kernel, kernel-ml from elrepo, it fail on dkms step ... 

after reboot with the new kernel i try to rebuild it manually with 'dkms autorebuild' and got again the error ... 


# dkms status
amdgpu, 5.11.5.30-1292797.el8: added
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/amdgpu/5.9.20.121-1263777.el8/source/dkms.conf does not exist.

# dkms autoinstall
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/amdgpu/5.9.20.121-1263777.el8/source/dkms.conf does not exist.

Kernel preparation unnecessary for this kernel. Skipping...

Running the pre_build script:
checking for a BSD-compatible install... /bin/install -c
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking kernel source directory... /usr/src/kernels/5.15.0-1.el8.elrepo.x86_64
checking kernel build directory... /usr/src/kernels/5.15.0-1.el8.elrepo.x86_64
checking kernel source version... 5.15.0-1.el8.elrepo.x86_64
checking kernel file name for module symbols... Module.symvers
checking for linux/overflow.h... yes
checking for linux/sched/mm.h... yes
checking for linux/sched/task.h... yes
checking for linux/sched/signal.h... yes
checking for linux/nospec.h... yes
checking for linux/bits.h... yes
checking for linux/io-64-nonatomic-lo-hi.h... yes
checking for asm/set_memory.h... yes
checking for asm/fpu/api.h... yes
checking for uapi/linux/sched/types.h... yes
checking for linux/compiler_attributes.h... yes
checking for linux/dma-fence.h... yes
checking for linux/dma-resv.h... yes
checking for linux/mmap_lock.h... yes
checking for linux/pci-p2pdma.h... yes
checking for linux/dma-attrs.h... no
checking for linux/mem_encrypt.h... yes
checking for linux/dma-buf-map.h... yes
checking for drm/drm_backport.h... no
checking for drm/amdgpu_pciid.h... no
checking for drm/drm_auth.h... yes
checking for drm/drm_irq.h... no
checking for drm/drm_connector.h... yes
checking for drm/drm_encoder.h... yes
checking for drm/drm_plane.h... yes
checking for drm/drm_print.h... yes
checking for drm/drm_drv.h... yes
checking for drm/drm_file.h... yes
checking for drm/drm_debugfs.h... yes
checking for drm/drm_ioctl.h... yes
checking for drm/drm_vblank.h... yes
checking for drm/drm_device.h... yes
checking for drm/drm_gem_framebuffer_helper.h... yes
checking for drm/drm_hdcp.h... yes
checking for drm/drm_audio_component.h... yes
checking for drm/drm_util.h... yes
checking for drm/drm_atomic_uapi.h... yes
checking for drm/drm_probe_helper.h... yes
checking for drm/drmP.h... no
checking for drm/task_barrier.h... yes
checking for drm/drm_managed.h... yes
checking for drm/drm_gem_ttm_helper.h... yes
checking for module configuration... done
configure: creating ./config.status
config.status: creating config/config.h

Building module:
cleaning build area...(bad exit status: 2)
make -j24 KERNELRELEASE=5.15.0-1.el8.elrepo.x86_64 -j24 TTM_NAME=amdttm SCHED_NAME=amd-sched -C /lib/modules/5.15.0-1.el8.elrepo.x86_64/build M=/var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.15.0-1.el8.elrepo.x86_64 (x86_64)
Consult /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/make.log for more information.

the log file contain : 
DKMS make.log for amdgpu-4.11.5.30-1292797.el8 for kernel 5.15.0-1.el8.elrepo.x86_64 (x86_64)
Fri 6 Nov 09:50:59 CET 2021
make: Entering directory '/usr/src/kernels/6.15.0-1.el8.elrepo.x86_64'
/var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/Makefile:26: "Local GCC version 80404 does not match kernel compiler GCC version 80401"
/var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/Makefile:27: "This may cause unexpected and hard-to-isolate compiler-related issues"
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/scheduler/sched_fence.o
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/scheduler/sched_entity.o
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/scheduler/sched_main.o] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/ttm/ttm_tt.o
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/scheduler/sched_fence.o] Error 1
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/ttm/ttm_bo.o
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/scheduler/sched_entity.o] Error 1
make[2]: *** [scripts/Makefile.build:540: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/scheduler] Error 2
make[2]: *** Waiting for unfinished jobs....
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/ttm/ttm_bo_util.o
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/amd/amdkcl/main.o
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/ttm/ttm_bo_vm.o
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/ttm/ttm_tt.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/ttm/ttm_bo.o] Error 1
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/amd/amdkcl/symbols.o
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/ttm/ttm_module.o
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/ttm/ttm_bo_util.o] Error 1
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/amd/amdkcl/kcl_common.o
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/amd/amdkcl/main.o] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/ttm/ttm_bo_vm.o] Error 1
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/amd/amdkcl/kcl_kernel_params.o
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/amd/amdkcl/symbols.o] Error 1
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/ttm/ttm_module.o] Error 1
make[2]: *** [scripts/Makefile.build:540: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/ttm] Error 2
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/amd/amdkcl/kcl_common.o] Error 1
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
make[3]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/amd/amdkcl/kcl_kernel_params.o] Error 1
make[2]: *** [scripts/Makefile.build:540: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/amd/amdkcl] Error 2
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/amd/amdgpu/amdgpu_drv.o
CC [M] /var/lib/dkms/amdgpu/6.11.5.30-1292797.el8/build/amd/amdgpu/amdgpu_device.o
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
make[2]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/amd/amdgpu/amdgpu_drv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC [M] /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/amd/amdgpu/amdgpu_kms.o
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
make[2]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/amd/amdgpu/amdgpu_device.o] Error 1
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
make[2]: *** [scripts/Makefile.build:277: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/amd/amdgpu/amdgpu_kms.o] Error 1
make[1]: *** [scripts/Makefile.build:540: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build/amd/amdgpu] Error 2
make: *** [Makefile:1868: /var/lib/dkms/amdgpu/5.11.5.30-1292797.el8/build] Error 2
make: Leaving directory '/usr/src/kernels/5.15.0-1.el8.elrepo.x86_64'

what make me crazy is my gcc is updated and version 8.4.1 not 8.4.4 as dkms suppose ... 
# gcc --version
gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

with the previous kernel, 5.14.15, all was working.

0 Likes
1 Reply
alfema
Adept I

Same problem with Linux Mint Cinnamon 20.3 and driver 20.40.

Although in my case it says that the versions 90303 and 90300 do not match.

gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

But I think that this message is just a warning, the problem must come from the line: gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files

0 Likes