WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: gfortran issue  (Read 2661 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
gfortran issue
« on: December 01, 2011, 05:46:31 AM »
I'm trying to build a program which requires gfortran. On TC 4.1 result is

Quote
# ./configure
checking for a BSD-compatible install... /usr/local/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gfortran... gfortran
checking whether the Fortran 77 compiler works... no
configure: error: in `/tmp/voacapl-0.5.8':
configure: error: Fortran 77 compiler cannot create executables

On CentOS 6 it compiles as expected:

Quote
[root@zero voacapl-0.5.8]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gfortran... gfortran
checking whether the Fortran 77 compiler works... yes
checking for Fortran 77 compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking whether ln -s works... yes
checking for ranlib... ranlib
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/modules/Makefile
config.status: creating src/hfmufesw/Makefile
config.status: creating src/voa_lib/Makefile
config.status: creating src/wp10dwin/Makefile
config.status: creating src/voacapw/Makefile
config.status: creating voacapl/itshfbc/coeffs/Makefile
config.status: creating voacapl/itshfbc/bin/anttyp90/Makefile

config.log attached.

Any idea?

« Last Edit: December 01, 2011, 05:50:56 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14624
Re: gfortran issue
« Reply #1 on: December 01, 2011, 05:50:47 AM »
gcc in tc was compiled to use c and c++, you'll need to compile a fortran extension to compile fortran - I seem to recall somebody did this in tc-3.x..

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gfortran issue
« Reply #2 on: December 01, 2011, 05:54:10 AM »
gcc in tc was compiled to use c and c++, you'll need to compile a fortran extension to compile fortran - I seem to recall somebody did this in tc-3.x..

On CentOS I had to install gcc-gfortran package. Expected gfprtran.tcz is doing the same here on TC.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: gfortran issue
« Reply #3 on: December 01, 2011, 06:16:18 AM »
try cp2fs gfortran

once i had a similar problem because gfortran was searching gcc files at /tmp/tcloop/gfortran/usr/local/lib/i686-pc-linux-gnu/
« Last Edit: December 01, 2011, 06:17:56 AM by Arslan S. »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gfortran issue
« Reply #4 on: December 01, 2011, 08:43:19 AM »
try cp2fs gfortran

once i had a similar problem because gfortran was searching gcc files at /tmp/tcloop/gfortran/usr/local/lib/i686-pc-linux-gnu/

Thanks, it did the trick! Now it compiles and runs fine.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gfortran issue
« Reply #5 on: December 06, 2011, 04:22:35 AM »
Just to confirm, updated gfortran works fine.

Thanks for fixing.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."