{"id":5295,"date":"2024-04-17T12:32:55","date_gmt":"2024-04-17T11:32:55","guid":{"rendered":"http:\/\/roboblog.fatal-fury.de\/?p=5295"},"modified":"2025-03-06T12:19:58","modified_gmt":"2025-03-06T11:19:58","slug":"installing-gcc-g-and-gfortran-13-from-source","status":"publish","type":"post","link":"http:\/\/roboblog.fatal-fury.de\/?p=5295","title":{"rendered":"Installing gcc, g++ and gfortran 13 from source"},"content":{"rendered":"<p>GCC 13.2<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nwget https:\/\/ftp.gwdg.de\/pub\/misc\/gcc\/releases\/gcc-13.2.0\/gcc-13.2.0.tar.gz\r\ntar xzf gcc-13.2.0.tar.gz \r\ncd gcc-13.2.0\/\r\n.\/contrib\/download_prerequisites \r\nmkdir build\r\ncd build\/\r\n### --disable-nls       disable Native Language Support (NLS)\r\n### --disable-multilib  build a 64-bit-only compile\r\n..\/configure --prefix=\/home\/thomas\/opt\/gcc-13.2 --enable-threads --enable-languages=c,c++,fortran --disable-nls --disable-multilib \r\nmake -j 8 # took 50min\r\nmake install\r\n<\/pre>\n<p>OpenMPI 4.1 with PBS<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nwget https:\/\/download.open-mpi.org\/release\/open-mpi\/v4.1\/openmpi-4.1.6.tar.bz2\r\ntar xjf openmpi-4.1.6.tar.bz2 \r\ncd openmpi-4.1.6\/\r\n.\/configure CC=~\/opt\/gcc-13.2\/bin\/gcc CXX=~\/opt\/gcc-13.2\/bin\/g++ F77=~\/opt\/gcc-13.2\/bin\/gfortran FC=~\/opt\/gcc-13.2\/bin\/gfortran --prefix ~\/opt\/openmpi-4.1.6_gcc-13 --with-tm=\/appli\/pbs\/default\r\n\r\nOpen MPI configuration:\r\n-----------------------\r\nVersion: 4.1.6\r\nBuild MPI C bindings: yes\r\nBuild MPI Fortran bindings: mpif.h, use mpi, use mpi_f08\r\n\r\nDebug build: no\r\n\r\nMiscellaneous\r\n-----------------------\r\nHWLOC support: internal (external hlwoc version is less than internal version 2.0)\r\nLibevent support: internal\r\nPMIx support: Internal\r\n \r\nTransports\r\n-----------------------\r\nOpenFabrics Verbs: yes\r\nShared memory\/copy in+copy out: yes\r\nShared memory\/Linux CMA: yes\r\nTCP: yes\r\n \r\nResource Managers\r\n-----------------------\r\nssh\/rsh: yes\r\n \r\nOMPIO File Systems\r\n-----------------------\r\nGeneric Unix FS: yes\r\n\r\nmake\r\nmake install\r\n<\/pre>\n<p>missing libcrypto.so is installed by libssl-dev<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GCC 13.2 wget https:\/\/ftp.gwdg.de\/pub\/misc\/gcc\/releases\/gcc-13.2.0\/gcc-13.2.0.tar.gz tar xzf gcc-13.2.0.tar.gz cd gcc-13.2.0\/ .\/contrib\/download_prerequisites mkdir build cd build\/ ### --disable-nls disable Native Language Support (NLS) ### --disable-multilib build a 64-bit-only compile ..\/configure --prefix=\/home\/thomas\/opt\/gcc-13.2 --enable-threads --enable-languages=c,c++,fortran --disable-nls --disable-multilib make -j 8 # took 50min make install OpenMPI 4.1 with PBS wget https:\/\/download.open-mpi.org\/release\/open-mpi\/v4.1\/openmpi-4.1.6.tar.bz2 tar xjf openmpi-4.1.6.tar.bz2 cd openmpi-4.1.6\/ .\/configure CC=~\/opt\/gcc-13.2\/bin\/gcc CXX=~\/opt\/gcc-13.2\/bin\/g++ [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-5295","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/5295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5295"}],"version-history":[{"count":8,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/5295\/revisions"}],"predecessor-version":[{"id":5338,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/5295\/revisions\/5338"}],"wp:attachment":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5295"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}