FEAP User Forum

FEAP => FEAPpv => Topic started by: M. Kurdi on December 09, 2012, 03:21:05 PM

Title: FEAPPV installation compiler error
Post by: M. Kurdi 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
Title: Re: FEAPPV installation compiler error
Post by: FEAP_Admin 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.
Title: Re: FEAPPV installation compiler error
Post by: M. Kurdi 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.
Title: Re: FEAPPV installation compiler error
Post by: FEAP_Admin 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?
Title: Re: FEAPPV installation compiler error
Post by: M. Kurdi on December 10, 2012, 06:01:18 PM
The makefile.in is the standard one with FEAPPV with the gfortran specified. See attached. Thanks.
Title: Re: FEAPPV installation compiler error
Post by: M. Kurdi 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.
Title: Re: FEAPPV installation compiler error
Post by: Prof. R.L. Taylor on December 12, 2012, 08:25:40 AM
What error are you getting?  Nothing is attached to show us what is going wrong.
Title: Re: FEAPPV installation compiler error
Post by: M. Kurdi on December 12, 2012, 12:14:29 PM
Module load gcc resolves the gfortran error.