I recently bought an AMD RX590 card (XFX 8GB Fatboy),
and tried to install on my linux box. I downloaded the AMDGPU drivers from amd website,
and launched the installer ./amdgpu-install on my machine.
I got the following error during instalation:
Building for 5.6.0-16.2-liquorix-amd64
Building for architecture x86_64
Building initial module for 5.6.0-16.2-liquorix-amd64
ERROR (dkms apport): kernel package linux-headers-5.6.0-16.2-liquorix-amd64 is not supported
Error! Bad return status for module build on kernel: 5.6.0-16.2-liquorix-amd64 (x86_64)
Consult /var/lib/dkms/amdgpu/5.4.7.53-1048554/build/make.log for more information.
Here is the output from make.log:
/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.c: In function 'smu_v11_0_i2c_transmit':
/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.c:237:6: error: 'drm_debug' undeclared (first use in this function); did you mean '__drm_debug'?
if (drm_debug & DRM_UT_DRIVER) {
^~~~~~~~~
__drm_debug
/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.c:237:6: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.c: In function 'smu_v11_0_i2c_receive':
/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.c:391:6: error: 'drm_debug' undeclared (first use in this function); did you mean '__drm_debug'?
if (drm_debug & DRM_UT_DRIVER) {
^~~~~~~~~
__drm_debug
scripts/Makefile.build:267: recipe for target '/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
scripts/Makefile.build:505: recipe for target '/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu' failed
make[1]: *** [/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu] Error 2
Makefile:1708: recipe for target '/var/lib/dkms/amdgpu/5.4.7.53-1048554/build' failed
make: *** [/var/lib/dkms/amdgpu/5.4.7.53-1048554/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.6.0-16.2-liquorix-amd64'
Does anyone know how to make this work on Linux?
I tried to install amdgpu with the --no-dkms swith successfully, but the graphics card doesn't initialize with the amd drivers, and shows up as llvmpipe 9.0. Any ideas how to make this works?
Related
I've been trying to install opencv, using this referance. But when I try to run make command, I get error as follows:
/opt/opencv/modules/videoio/src/cap_dc1394_v2.cpp:59:10: fatal error:
dc1394/dc1394.h: No such file or directory
#include <dc1394/dc1394.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:278: recipe for
target 'modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dc1394_v2.cpp.o'
failed
make[2]: ***
[modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dc1394_v2.cpp.o] Error
1
CMakeFiles/Makefile2:6307: recipe for target
'modules/videoio/CMakeFiles/opencv_videoio.dir/all' failed
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
I tried so many times to install opencv, when the installation is completed, I tried to check the installation, and then I get error that there is no module named opencv.
I recommend to use this guide to download the OpenCV Libary to the linux. (ubuntu 18.04).
I did it today on my ubuntu 18.04 and it worked perfectly, but please read all the guide and don't just copy the terminal commands.
I am trying to install OpenOnload on an AWS server running Ubuntu server 18.04.3. I downloaded the DEB release package from version 7.1.0.265 (the latest) from here: https://support.solarflare.com/index.php/component/cognidox/?view=categories&id=361
and then extract out of it just the folder \onload_7.1.0.265-debiansource.tgz\onload_7.1.0.265.orig.tar.gz and untar that. Then I can run
$ ./scripts/onload_install
as per the instructions in the README file. On Ubuntu 20 on my local machine this all worked and installed OpenOnload fine but on an AWS server instance this error is thrown:
onload_install: Building Onload.
Build tree made for linux as x86_64_linux-4.15.0-1057-aws
make: Entering directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws'
# Build both autocompat.h files: linux_net and linux_affinity.
make -C driver/linux_net
make[1]: Entering directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net'
make -C /usr/src/linux-headers-4.15.0-1057-aws CC="cc" M=$(pwd)
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-1057-aws'
/home/ubuntu/onload-7.1.0.265/src/driver/linux_net/Makefile:61: SFE4001/Falcon is no longer supported
CHK /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/autocompat.h
UPD /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/autocompat.h
CHK /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/config.h
UPD /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/config.h
CC [M] /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.o
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c: In function ‘efx_init_struct’:
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5225:2: error: implicit declaration of function ‘efx_mtd_free’; did you mean ‘efx_mtd_probe’? [-Werror=implicit-function-declaration]
efx_mtd_free(efx);
^~~~~~~~~~~~
efx_mtd_probe
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5224:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c: In function ‘efx_fini_struct’:
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5247:9: error: ‘struct efx_nic’ has no member named ‘mtd_struct’
if (efx->mtd_struct) {
^~
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5248:6: error: ‘struct efx_nic’ has no member named ‘mtd_struct’
efx->mtd_struct->efx = NULL;
^~
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5249:6: error: ‘struct efx_nic’ has no member named ‘mtd_struct’
efx->mtd_struct = NULL;
^~
cc1: some warnings being treated as errors
scripts/Makefile.build:330: recipe for target '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.o' failed
make[3]: *** [/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.o] Error 1
Makefile:1580: recipe for target '_module_/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net' failed
make[2]: *** [_module_/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-1057-aws'
/home/ubuntu/onload-7.1.0.265/src/driver/linux_net/Makefile:300: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net'
../../src/mmake.mk:57: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws'
onload_build: ERROR: Failed to build driver components.
onload_install: ERROR: Build failed. Not installing.
Could this be due to incompatibility with some specific features on AWS? I checked the version compatibility for the downloaded source and it says compatible with Ubuntu server 18.04. Any ideas on how to fix it would be greatly appreciated!
Based on the comments.
The solution was to use Onload-7.0.0.176 instead of Onload-7.1.0.265.
Seems version Onload-7.1.0.265 has some compilation bugs on Ubuntu 18.04.
I am trying to install packet generator in my system. I have downloaded packet generator from DPDK.org. I follow the instructions mentioned in the following link.
When I run the make command I get the below error:
/root/DPDK/pktgen-dpdk/app/pktgen-latency.c:17:25: fatal error: rte_bus_pci.h: No such file or directory
compilation terminated.
/root/DPDK/dpdk-stable-17.08.1//mk/internal/rte.compile-pre.mk:138:
recipe for target 'pktgen-latency.o' failed
make[2]: *** [pktgen-latency.o] Error 1
/root/DPDK/dpdk-stable-17.08.1//mk/rte.extapp.mk:47: recipe for
target 'pktgen' failed
make[1]: *** [pktgen] Error 2
/root/DPDK/dpdk-stable-17.08.1//mk/rte.extsubdir.mk:48: recipe for
target 'app' failed
make: *** [app] Error 2
Upgrading the version of DPDK solves this issue. I used a version of 17.08 and later on upgraded it to 17.11
Looks like the RTE_TARGET is set incorrectly or DPDK is not compiled. First we set:
export RTE_SDK=<DPDKInstallDir>
export RTE_TARGET=x86_64-native-linuxapp-gcc
Then we compile DPDK and then Pktgen.
OS: Ubuntu 16.04
Ogre: v1.9
I am trying to compile code from this repository. Although it is meant for Ogre v1.9, it is giving me this error:
In file included from /home/cortana/Desktop/clean-project/src/BaseApplication.cpp:17:0:
/home/cortana/Desktop/clean-project/src/BaseApplication.h:34:22: fatal error: SdkTrays.h: No such file or directory
compilation terminated.
CMakeFiles/OgreApp.dir/build.make:62: recipe for target 'CMakeFiles/OgreApp.dir/src/BaseApplication.cpp.o' failed
make[2]: *** [CMakeFiles/OgreApp.dir/src/BaseApplication.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/OgreApp.dir/all' failed
make[1]: *** [CMakeFiles/OgreApp.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
How can I fix this error?
As already mentioned in the comments, you need to make sure that your compiler is able to find the file "SdkTrays.h".
You claimed that this file is not part of Ogre version 1.9, which however is not correct. It could be that it is not part of the unofficial repository you are using. In our official one, it can be found here:
SdkTrays.h in official Ogre 1.9
OS: ubuntu 16.04
CUDA: 7.5
Cudnn: 5
I am following this tutorial for installing caffe with gpu.
In here, I wanted an installation of opencv 3.1. But the compilation of opencv is giving error when CUDA is already installed in the system.
The error I get on trying to make opencv 3.1 is :
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:266 (message):
Error generating file
/home/cortana/Downloads/opencv-3.1.0/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o
modules/core/CMakeFiles/opencv_core.dir/build.make:63: recipe for target 'modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o' failed
make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1
CMakeFiles/Makefile2:1505: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
I have tried changing CMakeLists.txt of opencv 3.1 by adding the line set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES") to it. Also, I checked the suggestion for changing the /usr/include/string.h provided here. But I already have the updated version of the file.
I am unable to build opencv 3.1 and hence, Caffe.
Try with CUDA 8. It worked for me with GeForce GTX 960M on Ubuntu 16.04