Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

gcc USE=fortran ... how many ebuilds needs fortran nowadays?

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
14 posts • Page 1 of 1
Author
Message
eccerr0r
Watchman
Watchman
Posts: 10245
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

gcc USE=fortran ... how many ebuilds needs fortran nowadays?

  • Quote

Post by eccerr0r » Tue Dec 11, 2012 1:40 am

I was looking at my Geode GX1 machine and while it was taking days on end to rebuild gcc, I noticed it was building gfortran...

Fortran on an embedded box?

I ended up having to set USE=-fortran and hope that it will save come compile time.

But here I wonder, how often is gfortran used? Is there a way to tell all the packages that require gcc with USE=fortran enabled? Is it enough to have the default USE=fortran?
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10905
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Tue Dec 11, 2012 2:22 am

Depends on your profession. It's used (to me) a surprising amount for scientific computing still. I doubt there's a single ebuild that depends on the fortran USE flag other than gcc itself. But embedded? Nothing for sure.

- John
I can confirm that I have received between 0 and 499 National Security Letters.
Top
Hypnos
Advocate
Advocate
User avatar
Posts: 2889
Joined: Thu Jul 18, 2002 5:12 pm
Location: Omnipresent

  • Quote

Post by Hypnos » Tue Dec 11, 2012 2:55 am

Mostly scientific apps, compilers and supporting tools.

Code: Select all

# grep -r fortran /usr/portage/ | grep IUSE | cut -d ':' -f 1 | grep 'ebuild$' | cut -d\/ -f 4,5 | uniq | sort

dev-lang/path64
dev-perl/PDL
sci-astronomy/wcslib
sci-libs/acml
sci-libs/amd
sci-libs/arprec
sci-libs/cfitsio
sci-libs/fftw
sci-libs/getdata
sci-libs/gpp4
sci-libs/grib_api
sci-libs/hdf
sci-libs/hdf5
sci-libs/hypre
sci-libs/lis
sci-libs/mkl
sci-libs/netcdf
sci-libs/plplot
sci-libs/qd
sci-visualization/grace
sys-cluster/mpe2
sys-cluster/mpich2
sys-cluster/mvapich2
sys-cluster/openmpi
sys-devel/gcc
sys-devel/gcc-apple
virtual/mpi
There may be deps in some eclasses, too.
Personal overlay | Simple backup scheme
Top
eccerr0r
Watchman
Watchman
Posts: 10245
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Tue Dec 11, 2012 7:01 am

I only wonder because somehow USE=fortran is default somehow, and most systems really don't ever use gfortran... so why is it a default USE? I suppose it's good to have if you do need it but most people don't?
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
Hypnos
Advocate
Advocate
User avatar
Posts: 2889
Joined: Thu Jul 18, 2002 5:12 pm
Location: Omnipresent

  • Quote

Post by Hypnos » Tue Dec 11, 2012 7:16 am

I think it's a remnant of the drobbins days, when everything was turned on by default.

Until recently, 'gnustep' was enabled by default.
Personal overlay | Simple backup scheme
Top
gringo
Advocate
Advocate
User avatar
Posts: 3793
Joined: Sun Apr 27, 2003 10:25 am

  • Quote

Post by gringo » Tue Dec 11, 2012 10:56 am

i have been disabling gccs fortran use for many years now but, as others mentioned already, its really up to your usage.
I for example have no sci-* packages installed apart from those depending on libreoffice, and those do not requiere fortran.

cheers
Top
aCOSwt
Bodhisattva
Bodhisattva
Posts: 2537
Joined: Fri Oct 19, 2007 1:48 pm
Location: Hilbert space

  • Quote

Post by aCOSwt » Tue Dec 11, 2012 11:12 am

Pardon me eccerr0r... I just cannot resist trolling :

"Real Programmers do List Processing in Fortran.
Real Programmers do String Manipulation in Fortran.
Real Programmers do Accounting (if they do it at all) in Fortran.
Real Programmers do Artificial Intelligence programs in Fortran.

If you can't do it in Fortran, do it in assembly language. If you can't do it in assembly language, it isn't worth doing.
"

1983 !... A great moment in the history of programming indeed.
Well... that was when JRG was young of course... :wink:
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10905
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Tue Dec 11, 2012 11:53 am

LOL. True (the crack about my age, I mean.)

My father-in-law is a scientist: a mathematician and theoretical ecologist. I help him from time to time with his Fortran code but I haven't written it for my own benefit in over 30 years. :wink:

- John
I can confirm that I have received between 0 and 499 National Security Letters.
Top
LiamOS
n00b
n00b
User avatar
Posts: 67
Joined: Wed Jun 06, 2012 2:42 pm
Location: Ireland

  • Quote

Post by LiamOS » Tue Dec 11, 2012 2:34 pm

I'm studying physics at the moment and Fortran is occasionally used, particularly in weather simulations for some reason. It doesn't concern me too much, and I set USE="-fortran" when feasible.

The first time I ever saw Fortran code I actually thought it was some kind of joke. :oops:
CFLAGS=" -O999999"
Top
aCOSwt
Bodhisattva
Bodhisattva
Posts: 2537
Joined: Fri Oct 19, 2007 1:48 pm
Location: Hilbert space

  • Quote

Post by aCOSwt » Tue Dec 11, 2012 2:40 pm

LiamOS wrote:The first time I ever saw Fortran code I actually thought it was some kind of joke. :oops:
----------
CFLAGS=" -O999999"
F(C)FLAGS=${CFLAGS}
This is... *not* a joke ! :D
Top
eccerr0r
Watchman
Watchman
Posts: 10245
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Tue Dec 11, 2012 3:26 pm

Well I hope the default is changed. While I'm not saying that Fortran's value as a language is diminished by this, it's installing something that most people would not use.

I have the same comment about the LUA interpreter that sometimes gets installed as well as TCL but there are some programs that use them once in a while then go away...

Hmm...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10905
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Tue Dec 11, 2012 3:35 pm

Well, I agree with you. I had fortran off for ages until I had to work with my father-in-law. You probably know this but all you have to do is

Code: Select all

USE="-fortran" emerge -uDNvp --with-bdeps=y world
to see if you would be affected. If only the compilers are shown to rebuild, then you're safe.

- John
I can confirm that I have received between 0 and 499 National Security Letters.
Top
Etal
Veteran
Veteran
User avatar
Posts: 1932
Joined: Fri Jul 15, 2005 3:01 pm

  • Quote

Post by Etal » Tue Dec 11, 2012 4:50 pm

Last time I tried it, turning off fortran did not decrease the compile time in any noticeable way, so I just leave it on.
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Top
eccerr0r
Watchman
Watchman
Posts: 10245
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Tue Dec 11, 2012 9:46 pm

Yeah I don't think the total build time would be that much lower, but it would be slightly lower and use slightly less disk space...

Not that much space but if you have a < 2GB disk, every MB counts...

-rw-r--r-- 1 root root 1481482 Dec 7 14:31 libgfortran.a
-rwxr-xr-x 1 root root 781368 Dec 7 14:30 libgfortran.so.3.0.0*
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
Post Reply
  • Print view

14 posts • Page 1 of 1

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy