[Met_help] [rt.rap.ucar.edu #68124] History for Errors with Compiling METv4.1 Due to GSL Issues

John Halley Gotway via RT met_help at ucar.edu
Thu Jul 10 09:28:22 MDT 2014


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Greetings,

I am trying to compile METv4.1, but I'm not sure what the settings for
GSL_BASE, GSL_INCS and GSL_LIBS should be.  I downloaded GSL_BASE into
/home/gempak/gsl-1.16 (and did what appears to be a successful
installation), but that doesn't have the include or lib directories.  It
appears new files were placed in /usr/local/include and /usr/local/lib when
installing GSL, so I tried these settings in user_defs_gnu.mk:

GSL_BASE = /home/gempak/gsl-1.16
GSL_INCS = -I$/usr/local/include
GSL_LIBS = -L$/usr/local/lib

However, when I do the "make > & make_met.log &" command, I get a lot of
error messages like this:

/usr/local/lib/libgsl.a(psi.o): In function `psi_complex_rhp':
/home/gempak/gsl-1.16/specfunc/psi.c:524: undefined reference to `ceil'

The same thing happens if I set GSL_INCS = -I$/usr/local/include/gsl

Any ideas (or files I should send you)?

Thanks,
Brandt


----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: Errors with Compiling METv4.1 Due to GSL Issues
From: John Halley Gotway
Time: Wed Jul 09 12:43:53 2014

Brandt,

I see that you're having problems compiling METv4.1.  I haven't seen
this
GSL error in the past, but I have a guess as to what might be going
on.
The "ceil" function isn't defined in GSL, instead it should be in the
standard math library.  The linker is complaining because it can't
find a
version of "ceil" for linking.

I notice that you're including a version of GSL from "/home/gempak".
Is it
possible that that version of GSL was compiled with a different set of
compilers you're using for compiling MET?  If so, that might explain
this
behavior.

You could try downloading/compiling a local version of GSL to ensure
that
it's compiled with the same family of compilers.  And then try
rebuilding
MET.  Here's what you'd do:

wget http://mirror.thecodefactory.org/gnu/gsl/gsl-1.16.tar.gz
tar -xvzf gsl-1.16.tar.gz
cd gsl-1.16
setenv CC ***/path/to/c/compiler/used/for/met***
./configure --prefix=`pwd`
make
make install

Then edit user_def.mk to point to this newly built version of GSL.

Please let me know how it goes.  If you continue to have problems,
please
send me your user_defs.mk file.  Also, do a "make clean" and then
"make >&
make_met.log".  And send me that "make_met.log" file as well.

Thanks,
John Halley Gotway
met_help at ucar.edu


On Tue, Jul 8, 2014 at 7:12 PM, Brandt Maxwell - NOAA Federal via RT <
met_help at ucar.edu> wrote:

>
> Tue Jul 08 19:12:28 2014: Request 68124 was acted upon.
> Transaction: Ticket created by brandt.maxwell at noaa.gov
>        Queue: met_help
>      Subject: Errors with Compiling METv4.1 Due to GSL Issues
>        Owner: Nobody
>   Requestors: brandt.maxwell at noaa.gov
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=68124 >
>
>
> Greetings,
>
> I am trying to compile METv4.1, but I'm not sure what the settings
for
> GSL_BASE, GSL_INCS and GSL_LIBS should be.  I downloaded GSL_BASE
into
> /home/gempak/gsl-1.16 (and did what appears to be a successful
> installation), but that doesn't have the include or lib directories.
It
> appears new files were placed in /usr/local/include and
/usr/local/lib when
> installing GSL, so I tried these settings in user_defs_gnu.mk:
>
> GSL_BASE = /home/gempak/gsl-1.16
> GSL_INCS = -I$/usr/local/include
> GSL_LIBS = -L$/usr/local/lib
>
> However, when I do the "make > & make_met.log &" command, I get a
lot of
> error messages like this:
>
> /usr/local/lib/libgsl.a(psi.o): In function `psi_complex_rhp':
> /home/gempak/gsl-1.16/specfunc/psi.c:524: undefined reference to
`ceil'
>
> The same thing happens if I set GSL_INCS = -I$/usr/local/include/gsl
>
> Any ideas (or files I should send you)?
>
> Thanks,
> Brandt
>
>

------------------------------------------------
Subject: Errors with Compiling METv4.1 Due to GSL Issues
From: Brandt Maxwell - NOAA Federal
Time: Wed Jul 09 16:29:12 2014

Thanks, John.  I downloaded and compiled the GSL 1.16 from your
source, and
the compilation created the include and lib directories under
/home/gempak/gsl-1.16.

I think the big error I made was that I forgot to copy
user_defs_gnu.mk to
user_defs.mk.  After I did that (and made the appropriate entries for
the
GSL), it appears to have compiled correctly, and I have 17 executables
in
the METv4.1/bin directory.

Thanks,
Brandt


On Wed, Jul 9, 2014 at 11:43 AM, John Halley Gotway via RT <
met_help at ucar.edu> wrote:

> Brandt,
>
> I see that you're having problems compiling METv4.1.  I haven't seen
this
> GSL error in the past, but I have a guess as to what might be going
on.
> The "ceil" function isn't defined in GSL, instead it should be in
the
> standard math library.  The linker is complaining because it can't
find a
> version of "ceil" for linking.
>
> I notice that you're including a version of GSL from "/home/gempak".
Is it
> possible that that version of GSL was compiled with a different set
of
> compilers you're using for compiling MET?  If so, that might explain
this
> behavior.
>
> You could try downloading/compiling a local version of GSL to ensure
that
> it's compiled with the same family of compilers.  And then try
rebuilding
> MET.  Here's what you'd do:
>
> wget http://mirror.thecodefactory.org/gnu/gsl/gsl-1.16.tar.gz
> tar -xvzf gsl-1.16.tar.gz
> cd gsl-1.16
> setenv CC ***/path/to/c/compiler/used/for/met***
> ./configure --prefix=`pwd`
> make
> make install
>
> Then edit user_def.mk to point to this newly built version of GSL.
>
> Please let me know how it goes.  If you continue to have problems,
please
> send me your user_defs.mk file.  Also, do a "make clean" and then
"make >&
> make_met.log".  And send me that "make_met.log" file as well.
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
>
> On Tue, Jul 8, 2014 at 7:12 PM, Brandt Maxwell - NOAA Federal via RT
<
> met_help at ucar.edu> wrote:
>
> >
> > Tue Jul 08 19:12:28 2014: Request 68124 was acted upon.
> > Transaction: Ticket created by brandt.maxwell at noaa.gov
> >        Queue: met_help
> >      Subject: Errors with Compiling METv4.1 Due to GSL Issues
> >        Owner: Nobody
> >   Requestors: brandt.maxwell at noaa.gov
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=68124 >
> >
> >
> > Greetings,
> >
> > I am trying to compile METv4.1, but I'm not sure what the settings
for
> > GSL_BASE, GSL_INCS and GSL_LIBS should be.  I downloaded GSL_BASE
into
> > /home/gempak/gsl-1.16 (and did what appears to be a successful
> > installation), but that doesn't have the include or lib
directories.  It
> > appears new files were placed in /usr/local/include and
/usr/local/lib
> when
> > installing GSL, so I tried these settings in user_defs_gnu.mk:
> >
> > GSL_BASE = /home/gempak/gsl-1.16
> > GSL_INCS = -I$/usr/local/include
> > GSL_LIBS = -L$/usr/local/lib
> >
> > However, when I do the "make > & make_met.log &" command, I get a
lot of
> > error messages like this:
> >
> > /usr/local/lib/libgsl.a(psi.o): In function `psi_complex_rhp':
> > /home/gempak/gsl-1.16/specfunc/psi.c:524: undefined reference to
`ceil'
> >
> > The same thing happens if I set GSL_INCS =
-I$/usr/local/include/gsl
> >
> > Any ideas (or files I should send you)?
> >
> > Thanks,
> > Brandt
> >
> >
>
>

------------------------------------------------


More information about the Met_help mailing list