6 ms·
Compiling GCC 5 on OS X
- marvel_boy 12y agoFrom the article: >Clang, the default compiler for OS X, supports only C, C++ and >Objective-C. If you are interested in a modern Fortran >compiler,... Mmm, no we are not interested
- coherentpony 12y agoBLAS and LAPACK?
- microtherion 12y agoC versions of those ship pre-built on OS X.
- tobinfricke 12y agoAre you sure that's not just a C interface to the Fortran library? http://www.netlib.org/lapack/ http://www.netlib.org/lapack/ : "LAPACK is written in Fortran 90 and provides routines for solving systems of simultaneous linear equations, least-squares solutions of linear systems of equations, eigenvalue problems, and singular value problems." http://www.netlib.org/lapack/lapacke.html http://www.netlib.org/lapack/lapacke.html : "The LAPACKE C Interface to LAPACK"
- microtherion 12y agoYou might be right, at least for parts of LAPACK. I think Apple's libraries are based on ATLAS, where the BLAS part and some of LAPACK is written in C.
- coliveira 12y agoThere is a reason why these things are still written in FORTRAN: they run much faster than C-based versions. Some people say that C++ with templates can get closer to FORTRAN, but even if that is true, creating libraries for non-C++ languages from C++ template-based code is very complicated.
- saboot 12y agoLike it or not, there still exist many important and frequently used programs which are only written in fortran. People absolutely should be interested in maintaining a fortran compiler.
- wtallis 12y agoYeah, there's little reason to write new code in Fortran, but there's definitely a need for current binaries of all those existing mature and well-designed Fortran libraries.
- csl 12y agoI work with reservoir modelling, and it continues to amaze me that everyone coming from non-CS fields seem to have programmed solely in Fortran. Besides, I believe the Intel Fortran compiler is extremely fast. I wouldn't say there's no reason to write new programs in Fortran.
- aeroevan 12y agoI find it's much easier to write code that uses multidimensional arrays in Fortan than almost any other language. Sure, i/o isn't as nice and don't try to do anything fancy with strings, but for numbers it's hard to beat.
- ifdefdebug 12y agoWould have been interesting to see if it can compile itself.
- stefantalpalaru 12y agoIt does, during the build process. Twice.
- stefantalpalaru 12y agoCompiling GCC 5 on Gentoo Linux: echo "sys-devel/gcc:5.1 **" >> /etc/portage/package.keywords emerge -n gcc:4.9 emerge -1 gcc
- comex 12y agoJust as a PSA: GCC 5.1.0 is available in Homebrew as the gcc5 package.
- cornstalks 12y agoDo you (or anyone) know why the gcc package isn't GCC 5.1 yet?I'm not sure why Homebrew hasn't updated the gcc package itself, and instead requires you to use the versions/gcc5 one.
- D4AHNGM 12y agoCertain things are still being tested/rebuilt to work with the latest GCC. https://github.com/Homebrew/homebrew/pull/36926 https://github.com/Homebrew/homebrew/pull/36926
- jedisct1 12y ago$ brew install gcc5 Done.
- hackeyed90 12y agoIf you're going to put gmp etc in the same spot as gcc just let gcc download and configure the prereqs: tar xf gcc... cd gcc... contrib/download_prerequisites ./configure ... make make install