Opened 17 years ago

Closed 15 years ago

Last modified 15 years ago

#12422 closed defect (worksforme)

R build needs a real FORTRAN in the PATH

Reported by: yaseppochi (Stephen J. Turnbull) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: konis@…
Port: R

Description

The R configure script will eventually try to find a FORTRAN compiler named `fc' if no other FORTRAN compiler is available. However, on my Mac OS X 10.4.10 "Tiger" system, there is a script /usr/bin/fc which apparently just invokes the Bourne shell builtin of that name. The configuration fails with

checking how to get verbose linking output from fc... configure: WARNING: compilation failed

checking for Fortran 77 libraries of fc... 
checking how to get verbose linking output from gcc -std=gnu99... -v
checking for C libraries of gcc -std=gnu99...  -L/opt/local/lib -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../.. -lSystemStubs -lSystem
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... configure: error: cannot compile a simple Fortran program
See `config.log' for more details.

I'm not sure what the right solution for MacPorts is, but for me installing the g95 port allowed R to build.

Change History (4)

comment:1 Changed 17 years ago by nox@…

Milestone: Port Bugs
Version: 1.5.0

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Cc: konis@… added

CC maintainer.

comment:3 Changed 15 years ago by blb@…

Port: R added
Resolution: worksforme
Status: newclosed

R currently has gcc42 and gcc43 variants, with gcc43 being the default; these install a fortran compiler, so that should solve this issue. Speak up if that's not the case.

comment:4 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.