This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
howto:compiling_gcc [2012/09/17 10:17] adymond [Compiling GCC 4.7.1 from Source] |
howto:compiling_gcc [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 22: | Line 22: | ||
| Note on the lib folder naming conventions, | Note on the lib folder naming conventions, | ||
| - | libraries 64 bit by default, and some 32 bit libraries as well. So on Ubuntu | + | libraries 64 bit by default, and some 32 bit libraries as well. In Ubuntu |
| - | 12.04, the following library folder name convention is used | + | 12.04 for example, the following library folder name convention is used |
| / | / | ||
| However, on the login node which is little older, its the other way round. The | However, on the login node which is little older, its the other way round. The | ||
| - | lib folder refers to 32 libraries by default, while the lib64 is for 64 bit | + | lib folder refers to 32 bit libraries by default, while the lib64 is for 64 bit |
| - | folders. ie its has the following naming convention | + | libraries. ie its the chpc nodes have the following naming convention |
| / | / | ||
| Line 348: | Line 348: | ||
| $ cp -v $HOME/ | $ cp -v $HOME/ | ||
| - | ==== GDB : the GNU debugger (optional) ==== | ||
| - | |||
| - | $ download_and_install_from_source.sh \ | ||
| - | http:// | ||
| - | / | ||
| - | |||
| - | Testing took 20 minutes | ||
| - | Got quite a lot of failures here... | ||
| Line 386: | Line 378: | ||
| $ mkdir BUILD | $ mkdir BUILD | ||
| $ cd BUILD | $ cd BUILD | ||
| - | $ ../ | ||
| - | | ||
| - | The following languages will be built: c, | ||
| - | *** This configuration is not supported in the following subdirectories: | ||
| - | | ||
| - | (Any other directories should still work fine.) | ||
| - | |||
| - | $ ../ | ||
| - | | ||
| - | | ||
| - | |||
| - | If this fails going to try | ||
| $ ../ | $ ../ | ||
| | | ||
| Line 405: | Line 385: | ||
| | | ||
| | | ||
| - | + | The following languages will be built: c, | |
| + | *** This configuration is not supported in the following subdirectories: | ||
| + | | ||
| + | (Any other directories should still work fine.) | ||
| ===== Compiling GCC ===== | ===== Compiling GCC ===== | ||
| Line 439: | Line 421: | ||
| ie. // | ie. // | ||
| file. A big help here is to add the -v flag to the xgcc compiler. | file. A big help here is to add the -v flag to the xgcc compiler. | ||
| - | |||
| - | === could not read symbols: Invalid operation === | ||
| - | |||
| - | This error occured when, no setting with gmp path and and with .... | ||
| - | |||
| - | === Bad symbol types === | ||
| - | Linking 32 bit libraries against 64 bit libraries... | ||
| ===== Testing ===== | ===== Testing ===== | ||
| Line 536: | Line 511: | ||
| folder is selected before your newer version. So to be safe, when you install new | folder is selected before your newer version. So to be safe, when you install new | ||
| software, use the following options | software, use the following options | ||
| - | --prefix=$HOME/ | + | |
| size of install | size of install | ||