Editing
GCC Toolset Activation
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Demonstration of Switching GCC Versions == This section demonstrates how to switch between different GCC versions and verify the active version. The username in the examples has been changed to 'dvosler' as requested. <pre> dvosler@babel-3-15:~# gcc --version | grep GCC gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10) dvosler@babel-3-15:~# scl enable gcc-toolset-9 $SHELL dvosler@babel-3-15:~# gcc --version | grep GCC gcc (GCC) 9.2.1 20191120 (Red Hat 9.2.1-2) dvosler@babel-3-15:~# exit dvosler@babel-3-15:~# scl enable gcc-toolset-10 $SHELL dvosler@babel-3-15:~# gcc --version | grep GCC gcc (GCC) 10.3.1 20210422 (Red Hat 10.3.1-1) dvosler@babel-3-15:~# exit dvosler@babel-3-15:~# scl enable gcc-toolset-11 $SHELL dvosler@babel-3-15:~# gcc --version | grep GCC gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9) dvosler@babel-3-15:~# :) </pre> This output shows the default GCC version, and then the versions after enabling GCC toolsets 9, 10, and 11, respectively. The examples end with exiting back to the session with the default GCC version.
Summary:
Please note that all contributions to CMU -- Language Technologies Institute -- HPC Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information