[Met_help] MET2.0 compilation errors

John Halley Gotway johnhg at rap.ucar.edu
Tue Aug 25 12:00:49 MDT 2009


Maciek,

Great.  Glad that did the trick!

Do be sure to run the test scripts in the scripts sub-directory.  In particular, make sure the "test_pb2nc.sh" script runs without error.  That's the one that's most likely to have runtime issues.

Just let us know if more questions arise in your use of MET.

Thanks,
John

Maciek Kryza wrote:
> John,
> *** Finished Making the Model Evaluation Tools Project ***
> 
> Thank you very much for help - it works with g++. Also I had to recompile
> libbufr with –fno-range-check for gfortran.
> 
> Best wishes,
> 
> Maciek
> 
> 
>> Maciek,
>>
>> It looks like you're trying to use the "gcc" compiler with MET.  You
>> should be using the GNU g++ compiler.  Perhaps that's the reason why
>> you're having problems with standard includes and libraries.  Sorry I
>> didn't notice this in your first email.
>>
>> Please try changing gcc to g++ in the top-level MET Makefile, and then
>> rebuild MET.  And please let me know how it goes.
>>
>> Thanks,
>> John
>>
>>> John,
>>> I'm sorry to disturbing you again, but I have more problems with MET2.0
>>> compilation.
>>> gen_poly_mask grid_stat mode and pcp_combine seems to be compiled
>>> properly. Then the process stops with the error message. Colud you
>>> please
>>> help me with this? It's already my fourt day with MET compilation :-)
>>> Attached is the make.log file.
>>> Best regards,
>>> Maciek
>>>
>>>
>>>> Maciek,
>>>>
>>>> Great.  I'm glad that did the trick.  We run Debian Linux here, and I
>>>> don't have access to a Fedora machine, so I can't check.  But that's
>>>> interesting.
>>>>
>>>> Just let us know if any more questions come up in your use of MET.
>>>>
>>>> Thanks,
>>>> John
>>>>
>>>> Maciek Kryza wrote:
>>>>> John,
>>>>> Thank you very much for reply.
>>>>> I installed glibc-static and this solved the problem. libm.a is not
>>>>> available on Fedora, only libm.so* - but I'm not sure if this is
>>>>> always
>>>>> the case or only problem with my computer.
>>>>> best wishes,
>>>>> Maciek Kryza
>>>>>
>>>>>> Maciek,
>>>>>>
>>>>>> The error message you're seeing about not finding -lm on your system
>>>>>> means
>>>>>> that the linker can't find the math library file named "libm.a".
>>>>>> That
>>>>>> math library is a standard library and should exist in
>>>>>> a standard location on your machine.  Meaning we really shouldn't
>>>>>> have
>>>>>> to
>>>>>> tell the linker where to find it.  For example, on my machine it can
>>>>>> be
>>>>>> found in /usr/lib/libm.a.  If it's not in a place that
>>>>>> the linker can find it, there may be problems with the installation
>>>>>> of
>>>>>> your compilers.
>>>>>>
>>>>>> Here's what I'd suggest trying:
>>>>>> (1) Try locate the file "libm.a" using the following command:
>>>>>> find /usr -name "libm.a"
>>>>>> This says to recursively look in /usr for that file.
>>>>>>
>>>>>> (2) Assuming you find it, modify the MET Makefile to tell the linker
>>>>>> where
>>>>>> to find it.  Use the following setting:
>>>>>> CXX_LIBS = /path/to/library/directory
>>>>>> Where the you set the path to the directory containing the file
>>>>>> "libma.".
>>>>>>
>>>>>> (3) Try rebuilding MET.
>>>>>>
>>>>>> Hopefully that helps, and good luck.
>>>>>>
>>>>>> John Halley Gotway
>>>>>> johnhg at ucar.edu
>>>>>>
>>>>>> Maciek Kryza wrote:
>>>>>>> Hi,
>>>>>>> I'm trying to compile MET2.0 on Fedora 11 64 bit machine.
>>>>>>> Compilation
>>>>>>> stops at pcp_combine and the message: ld cannot find -lm
>>>>>>> I do have math.h in /usr/iclude and all compiling messages are
>>>>>>> attached.
>>>>>>> Could you please help me with this issue?
>>>>>>> Best regards,
>>>>>>> Maciek Kryza
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> **********************************************************
>>>>>>> Maciek Kryza
>>>>>>>
>>>>>>> Zaklad Meteorologii i Klimatologii, Uniwersytet Wroclawski
>>>>>>> ul. Kosiby 6/8, 51-670 Wroclaw
>>>>>>>
>>>>>>> email: kryzam at meteo.uni.wroc.pl
>>>>>>> **********************************************************
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Met_help mailing list
>>>>>>> Met_help at mailman.ucar.edu
>>>>>>> http://mailman.ucar.edu/mailman/listinfo/met_help
>>>>>
>>>>> **********************************************************
>>>>> Maciek Kryza
>>>>>
>>>>> Zaklad Meteorologii i Klimatologii, Uniwersytet Wroclawski
>>>>> ul. Kosiby 6/8, 51-670 Wroclaw
>>>>>
>>>>> email: kryzam at meteo.uni.wroc.pl
>>>>> **********************************************************
>>>
>>> **********************************************************
>>> Maciek Kryza
>>>
>>> Zaklad Meteorologii i Klimatologii, Uniwersytet Wroclawski
>>> ul. Kosiby 6/8, 51-670 Wroclaw
>>>
>>> email: kryzam at meteo.uni.wroc.pl
>>> **********************************************************
>>>
>>> **********************************************************
>>> Maciek Kryza
>>>
>>> Zaklad Meteorologii i Klimatologii, Uniwersytet Wroclawski
>>> ul. Kosiby 6/8, 51-670 Wroclaw
>>>
>>> email: kryzam at meteo.uni.wroc.pl
>>> **********************************************************
>>
>>
> 
> 
> **********************************************************
> Maciek Kryza
> 
> Zaklad Meteorologii i Klimatologii, Uniwersytet Wroclawski
> ul. Kosiby 6/8, 51-670 Wroclaw
> 
> email: kryzam at meteo.uni.wroc.pl
> **********************************************************


More information about the Met_help mailing list