Author Topic: FEAPPV installation compiler error  (Read 13081 times)

M. Kurdi

  • Full Member
  • ***
  • Posts: 149
FEAPPV installation compiler error
« on: December 09, 2012, 03:21:05 PM »
Hello,
I am installing FEAPPV on Linux. I set the makefile.in to g77 fortran and the environment variable for FEAPPVHOME3_1. The compilation starts but there are few errors related to memory:
setmem.f:83:
             adr(n) = malloc(length*ipa)
                      ^
Invalid declaration of or reference to symbol `malloc' at (^) [initially seen at (^)]
make[2]: *** [/gpfs/home/mhk13/ver31/Feappv_gnu.a(setmem.o)] Error 1
make[2]: Leaving directory `/gpfs/home/mhk13/ver31/program'
......
a - seteq.o
a - sethis.o
a - setmac.o
--->/gpfs/home/mhk13/ver31/program objects now up-to-date<---
make[1]: *** [archive] Error 1
make[1]: Leaving directory `/gpfs/home/mhk13/ver31/program'
make: *** [archive] Error 2

Is there a setting I need to specify in the setmem.f file? Thanks.
Mohammad

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: FEAPPV installation compiler error
« Reply #1 on: December 09, 2012, 05:15:45 PM »
g77 does not have malloc.  You need to use gfortran.  If you have access to the Intel compilers they are also good choices.

M. Kurdi

  • Full Member
  • ***
  • Posts: 149
Re: FEAPPV installation compiler error
« Reply #2 on: December 10, 2012, 12:32:28 PM »
Thanks. Is there a gfortran linking option I need to use? The malloc error is resolved by I'm getting other errors now. See attached file.

Thanks.

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: FEAPPV installation compiler error
« Reply #3 on: December 10, 2012, 04:13:32 PM »
Something is wrong with your compiler.  You should not get such 'undefined reference'  messages when just building *.o files.

What does your makefile.in look like?

M. Kurdi

  • Full Member
  • ***
  • Posts: 149
Re: FEAPPV installation compiler error
« Reply #4 on: December 10, 2012, 06:01:18 PM »
The makefile.in is the standard one with FEAPPV with the gfortran specified. See attached. Thanks.

M. Kurdi

  • Full Member
  • ***
  • Posts: 149
Re: FEAPPV installation compiler error
« Reply #5 on: December 11, 2012, 12:50:37 PM »
The makefile.in is the standard one with FEAPPV with the gfortran specified. See attached. Thanks.

Any chance someone know the source of this compilation error; it would be appreciated.

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2648
Re: FEAPPV installation compiler error
« Reply #6 on: December 12, 2012, 08:25:40 AM »
What error are you getting?  Nothing is attached to show us what is going wrong.

M. Kurdi

  • Full Member
  • ***
  • Posts: 149
Re: FEAPPV installation compiler error
« Reply #7 on: December 12, 2012, 12:14:29 PM »
Module load gcc resolves the gfortran error.
« Last Edit: December 13, 2012, 05:20:50 PM by M. Kurdi »