User Tools

Site Tools


linux:fedora_compatibility_settings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:fedora_compatibility_settings [2015/12/07 12:09] – created - external edit 127.0.0.1linux:fedora_compatibility_settings [2022/12/07 15:38] (current) – [Gcc 3.4] jansen
Line 5: Line 5:
 Fedora moves fast, and the latest versions of things are not always compatible with previous versions. It is difficult enough to keep your own programs up to date, but sometimes you need to use a piece of software which doesn't work any more due to the rapid changes in compilers and system libraries. Here are some tips and workarounds. Fedora moves fast, and the latest versions of things are not always compatible with previous versions. It is difficult enough to keep your own programs up to date, but sometimes you need to use a piece of software which doesn't work any more due to the rapid changes in compilers and system libraries. Here are some tips and workarounds.
  
-==== Gcc 3.4 ====+==== GCC ====
  
-The default compiler is now GCC 5.1 (4.9 in Fedora 21). However, Gcc 3.4 is still available (on request, NOT by default) through the commands gcc34 and g++34+The default compiler is now GCC 12.2. However, earlier versions are available through environment modulesSee ''module avail gcc/'' for a list
 However, those packages will not be maintained forever, so it may be time to figure out why you or your code thinks these older versions are needed. Besides, it will not be possible to link code compiled with gcc34 to libraries compiled with gcc 4.x, so if your program requires external libraries, you should use the current compiler version. However, those packages will not be maintained forever, so it may be time to figure out why you or your code thinks these older versions are needed. Besides, it will not be possible to link code compiled with gcc34 to libraries compiled with gcc 4.x, so if your program requires external libraries, you should use the current compiler version.
  
 If you want the old compiler to use g77 (Fortran 77) instead of gfortran (Fortran 90/95), you may be better off using gfortran, with some compatibility options, if required. Mostly, use ''-std=legacy'' to suppress warnings about obsolete code. In special cases, other options may be required, but the internet is full of descriptions on how to proceed. If you want the old compiler to use g77 (Fortran 77) instead of gfortran (Fortran 90/95), you may be better off using gfortran, with some compatibility options, if required. Mostly, use ''-std=legacy'' to suppress warnings about obsolete code. In special cases, other options may be required, but the internet is full of descriptions on how to proceed.
- 
-Various other versions of GCC are also available using environment modules. See ''module avail'' for a listing. 
- 
  
 ==== Glibc problem detection ==== ==== Glibc problem detection ====
linux/fedora_compatibility_settings.1449490140.txt.gz · Last modified: by 127.0.0.1