[molpro-user] undefined reference error compiling single proc molpro 2002.10 on opteron

Benj FitzPatrick benjfitz at uchicago.edu
Wed Feb 22 01:03:10 GMT 2006


Kirk,
I removed libmolpro.a and tried re-compiling.  It gives me the
same error.  I will let you know if I figure anything out, but
it seems strange to me that it works with 2002.9 and not 2002.10.
Benj FitzPatrick

---- Original message ----
>Date: Tue, 21 Feb 2006 16:57:55 -0800
>From: Kirk Peterson <kipeters at wsu.edu>  
>Subject: Re: [molpro-user] undefined reference error
compiling single proc molpro 2002.10 on opteron  
>To: Benj FitzPatrick <benjfitz at uchicago.edu>
>
>Benj,
>
>yes, try deleting the library and then do a make.
>Otherwise I'm not quite sure what it could be.
>
>sorry,
>
>-Kirk
>
>On Feb 21, 2006, at 4:53 PM, Benj FitzPatrick wrote:
>
>> Kirk,
>> It does compile gmainv.c (and molpro_mem.f), namely I get an
>> object file.  I will give it a try with just removing
>> libmolpro.a.  The last time I was successful with the single
>> threaded version was 2002_9, so I gave that a shot and it
>> works like a champ.  Any thoughts?
>> Benj FitzPatrick
>>
>> ---- Original message ----
>>> Date: Tue, 21 Feb 2006 16:42:41 -0800
>>> From: Kirk Peterson <kipeters at wsu.edu>
>>> Subject: Re: [molpro-user] undefined reference error
>> compiling single proc molpro 2002.10 on opteron
>>> To: Benj FitzPatrick <benjfitz at uchicago.edu>
>>>
>>> Benj,
>>>
>>> does /ab/molpro-2002_10/tests/2 contain the complete molpro
>> source
>>> tree?
>>>
>>> If so, when you execute make, does the file gmainv.c get
>> compiled?  Of
>>> course when you do a "make clean" I believe this will remove
>> all your
>>> object files,
>>> so did it actually recompile the whole program?
>>>
>>> Perhaps try deleting the molpro archive file
>> (/lib/libmolpro.a) so
>>> that it
>>> is forced to remake it from the object files (do not do a
>> make clean
>>> first)
>>>
>>> -Kirk
>>>
>>> On Feb 21, 2006, at 4:36 PM, Benj FitzPatrick wrote:
>>>
>>>> Kirk,
>>>> Just to make sure I've got this right, here's my setup and
>>>> what I did.
>>>> I have all of my attemps in /ab/molpro-2002_10/tests   and
>>>> this one is 2.  I cd to /ab/molpro-2002_10/tests/2 and then
>>>> (after running make clean) "touch ./src/util/gmainv.c".  Then
>>>> I "make >./make.log".  I am in the same situation as before,
>>>> so I'm guessing I'm not implementing your suggestion
properly.
>>>> Thanks,
>>>> Benj FitzPatrick
>>>>
>>>> ---- Original message ----
>>>>> Date: Tue, 21 Feb 2006 13:20:09 -0800
>>>>> From: Kirk Peterson <kipeters at wsu.edu>
>>>>> Subject: Re: [molpro-user] undefined reference error
>>>> compiling single proc molpro 2002.10 on opteron
>>>>> To: Benj FitzPatrick <benjfitz at uchicago.edu>
>>>>>
>>>>> Benj,
>>>>>
>>>>> in that case I would just touch /src/util/gmainv.c and then
>>>> do a make
>>>>> from the toplevel molpro directory.  At least you'll see
>> there if
>>>>> there are any compilation problems with this routine.
>>>>>
>>>>> -Kirk
>>>>>
>>>>> On Feb 21, 2006, at 1:17 PM, Benj FitzPatrick wrote:
>>>>>
>>>>>> Kirk,
>>>>>> Is there any other output (or a way to get more verbose
>>>>>> output)?  What I included below was all it (make
>./make.log)
>>>>>> gave me for output, up to that point it all looked ok.
>>>>>> Thanks,
>>>>>> Benj FitzPatrick
>>>>>>
>>>>>> ---- Original message ----
>>>>>>> Date: Tue, 21 Feb 2006 13:05:09 -0800
>>>>>>> From: Kirk Peterson <kipeters at wsu.edu>
>>>>>>> Subject: Re: [molpro-user] undefined reference error
>>>>>> compiling single proc molpro 2002.10 on opteron
>>>>>>> To: Benj FitzPatrick <benjfitz at uchicago.edu>
>>>>>>> Cc: molpro-user at molpro.net
>>>>>>>
>>>>>>> Benj,
>>>>>>>
>>>>>>> I would carefully check your make logfile - it looks like
>>>>>> src/util/
>>>>>>> gmainv.c did not compile correctly.
>>>>>>>
>>>>>>> -Kirk
>>>>>>>
>>>>>>> On Feb 21, 2006, at 12:37 PM, Benj FitzPatrick wrote:
>>>>>>>
>>>>>>>> Hello,
>>>>>>>> I managed to get the parallel version compiled using GOTO
>>>> blas
>>>>>>>> and lapack (pathscale 2.3 and patchlevel 518), but when
>> I try
>>>>>>>> to compile the single processor
>>>>>>>> version it fails.  I have tried cleaning out the
>>>> directory and
>>>>>>>> running ./configure again as well as just adapting my mpp
>>>>>>>> CONFIG (attached).  The errors are listed below:
>>>>>>>> Thanks,
>>>>>>>> Benj FitzPatrick
>>>>>>>> University of Chicago
>>>>>>>>
>>>>>>>> molver.f: compiling ... done
>>>>>>>> linking
>> /ab/molpro-2002_10/test/2/bin/molpros_2002_10_i8.exe
>>>>>>>> link failed
>>>>>>>> /opt/pathscale/bin/pathf90-2.3 -i8 -fno-second-underscore
>>>>>>>> -woff -align64 -Wl,-rpath=/ab -Wl,-rpath=/ab
-I./global -O3
>>>>>>>> -OPT:Ofa
>>>>>>>> st -o
/ab/molpro-2002_10/test/2/bin/molpros_2002_10_i8.exe
>>>>>>>> molver.o molpro.o -L/ab/molpro-2002_10/test/2/lib
-lmolpro
>>>>>>>> -lgks0 -
>>>>>>>> L/ab/ -llapack -L/ab/ -lgoto /usr/lib64/libpthread.so -lz
>>>>>>>>
/ab/molpro-2002_10/test/2/lib/libmolpro.a(molpro_mem.o): In
>>>>>>>> function `inicor_':
>>>>>>>> /comp/ab/molpro-2002_10/test/2/src/util/molpro_mem.f:81:
>>>>>>>> undefined reference to `fmain_'
>>>>>>>> /comp/ab/molpro-2002_10/test/2/src/util/molpro_mem.f:103:
>>>>>>>> undefined reference to `fmain_'
>>>>>>>> /comp/ab/molpro-2002_10/test/2/src/util/molpro_mem.f:106:
>>>>>>>> undefined reference to `gmainv_'
>>>>>>>>
/ab/molpro-2002_10/test/2/lib/libmolpro.a(molpro_mem.o): In
>>>>>>>> function `endcor_':
>>>>>>>> /comp/ab/molpro-2002_10/test/2/src/util/molpro_mem.f:346:
>>>>>>>> undefined reference to `fmain_'
>>>>>>>> collect2: ld returned 1 exit status
>>>>>>>> <CONFIG>
>>>>>>>
>>>>>
>>>
>



More information about the Molpro-user mailing list