Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: . You can also select a web site from the following list: How to Get Best Site PerformanceSelect the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location. If you look at the script you'll notice it's fairly simple to change it to another version. Just change the 7 to another number. You can go ahead and fork the repository, make your changes and run the script from Gitlab in a similar fashion as shown above. /opt/cuda/include/crt/host_config.h:129: error: #error — unsupported GNU version! gcc versions later than 7 are not supported! I have already tried a suggestion from a previous Stack Overflow post found here: CUDA incompatible with my gcc version I did not use the exact command as my cuda is located in /opt/cuda/bin/gcc. I did the same command for g++. However, the terminal outputs that these files are already linked. I did confirm this by going to the actual file and looking at it's properties. Can someone please suggest a solution to my issue? Best SolutionI managed to do so usung this two lines, this will update the symbolic links of cuda to gcc7
Related SolutionsUbuntu – CUDA and gcc compatibility issueThe problem stems from the CUDA toolchain not being able to find a valid C++ compiler. The most correct way to do this [note you are using an unsupported Linux version, so use this advice at your own risk], is to set up a local directory holding links to a supported compiler suite (this mean matching, supported verions of gcc and g++) and pass the
Here I have a set of links to a supported compiler. I then can compile like this:
This is probably the safest and least invasive way to use alternative compilers where the system compiler is not supported. Python – setup script exited with error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1I encountered the same problem in college having installed Linux Mint for the main project of my final year, the third solution below worked for me. When encountering this error please note before the error it may say you are missing a package or header file — you should find those and install them and verify if it works (e.g. ssl → libssl). Greetings, I tried to install Apex but found this error. Should I uninstall this gcc version and reinstall older one? |