nix:gcc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
nix:gcc [2016/05/11 10:27] – kauffman | nix:gcc [2017/12/05 12:03] – kauffman | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== GCC ====== | ====== GCC ====== | ||
+ | |||
+ | ===== GCC Versions that are already installed on CS infrastructure ===== | ||
+ | Usually, we install multiple versions. The default version of GCC probably won't be changed system wide... ever. | ||
+ | |||
+ | Here is a list of packages we install as of 2017-05-02: | ||
+ | < | ||
+ | gcc | ||
+ | gcc-4.7-uofc-cs | ||
+ | gcc-4.9-uofc-cs | ||
+ | gcc-5 | ||
+ | gcc-5-base: | ||
+ | gcc-5-multilib | ||
+ | gcc-5.4-uofc-cs | ||
+ | gcc-6-base: | ||
+ | gcc-6-base: | ||
+ | gcc-6.3-uofc-cs | ||
+ | gcc-7.1-uofc-cs | ||
+ | </ | ||
+ | |||
+ | We are now taking more advantage of environment modules. This means depending on when you read this you could load the version of GCC you want to use. | ||
+ | |||
+ | < | ||
+ | kauffman3@green: | ||
+ | / | ||
+ | cmake/3.1.1 | ||
+ | cmake/3.8.0 | ||
+ | gcc/4.7.4 | ||
+ | gcc/4.9.3 | ||
+ | gcc/5.4.0 | ||
+ | gcc/6.3.0 | ||
+ | gcc/7.1.0 | ||
+ | |||
+ | |||
+ | kauffman3@green: | ||
+ | |||
+ | kauffman3@green: | ||
+ | / | ||
+ | | / | ||
+ | / | ||
+ | |||
+ | kauffman3@green: | ||
+ | gcc (GCC) 4.7.4 | ||
+ | |||
+ | kauffman3@green: | ||
+ | |||
+ | kauffman3@green: | ||
+ | gcc (Ubuntu 4.9.4-2ubuntu1~14.04.1) 4.9.4 | ||
+ | </ | ||
+ | |||
+ | |||
===== Building GCC in your home directory ===== | ===== Building GCC in your home directory ===== | ||
https:// | https:// | ||
Line 36: | Line 86: | ||
--enable-threads=posix | --enable-threads=posix | ||
make -j4 | make -j4 | ||
- | # Build a debian package: checkinstall --strip=no --stripso=no --umask=022 make install | ||
make install | make install | ||
Line 50: | Line 99: | ||
echo " | echo " | ||
echo " | echo " | ||
+ | </ | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | ==== ' | ||
+ | To resolve you may have to do the following: | ||
+ | < | ||
+ | source / | ||
</ | </ |
/var/lib/dokuwiki/data/pages/nix/gcc.txt · Last modified: 2021/01/20 12:25 by kauffman