FEAP User Forum
FEAP => FEAPpv => Topic started 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
-
g77 does not have malloc. You need to use gfortran. If you have access to the Intel compilers they are also good choices.
-
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.
-
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?
-
The makefile.in is the standard one with FEAPPV with the gfortran specified. See attached. Thanks.
-
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.
-
What error are you getting? Nothing is attached to show us what is going wrong.
-
Module load gcc resolves the gfortran error.