-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems encountered in compiling and installing NCL under macOS #130
Comments
Hi,
If you can share the file with me, I will take a look. If its not too
large, feel free to email it directly to me. Otherwise, and option is to
upload it to our FTP site:
http://ncl.ucar.edu/ftp_files.shtml
Rick
…On Sun, May 3, 2020 at 1:44 AM Yiwei2020 ***@***.***> wrote:
*Describe the bug*
Hello there,
I encountered some problems when compiling and installing NCL under macOS
10.15. When I finished the compilation, I tried to read a GRIB2 file
through NCL and encountered a "Segmentation fault: 11" error. I checked the
relevant information and found that this error was caused by a pointer
variable being directly passed into the function without allocating memory.
I have no way to solve this problem, can you help me?
In addition, my GCC version is 9.3. Other dependencies all install the NCL
recommended version.
*Provide the following:*
a=addfile("fnl_20190312_18_00.grib2","r")
fnl_20190312_18_00.grib2 from rda.ucar.edu
*Computing environment*
- OS: Mac
- OS version:MacOS 10.15.4
- NCL Version: 6.6.2
- Installation method:built from source
*Additional context*
Add any other context about the problem here.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#130>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLWOXU3DX3S2NP56GDPRMDRPUOGHANCNFSM4MYAPMPQ>
.
|
Hello, I think this is not a problem with the grib2 file. This error occurs when I open any grib2 file. But the same file will not go wrong in the Linux environment.
I already upload it in ftp.cgd.ucar.edu/incoming/fnl_20190312_18_00.grib2
------------------ Original ------------------
From: "Rick Brownrigg"<notifications@github.com>;
Date: Mon, May 4, 2020 00:14 AM
To: "NCAR/ncl"<ncl@noreply.github.com>;
Cc: "Yiwei2020"<i@nui.st>; "Author"<author@noreply.github.com>;
Subject: Re: [NCAR/ncl] Problems encountered in compiling and installing NCL under macOS (#130)
Hi,
If you can share the file with me, I will take a look. If its not too
large, feel free to email it directly to me. Otherwise, and option is to
upload it to our FTP site:
http://ncl.ucar.edu/ftp_files.shtml
Rick
On Sun, May 3, 2020 at 1:44 AM Yiwei2020 <notifications@github.com> wrote:
> *Describe the bug*
> Hello there,
> I encountered some problems when compiling and installing NCL under macOS
> 10.15. When I finished the compilation, I tried to read a GRIB2 file
> through NCL and encountered a "Segmentation fault: 11" error. I checked the
> relevant information and found that this error was caused by a pointer
> variable being directly passed into the function without allocating memory.
> I have no way to solve this problem, can you help me?
> In addition, my GCC version is 9.3. Other dependencies all install the NCL
> recommended version.
>
> *Provide the following:*
> a=addfile("fnl_20190312_18_00.grib2","r")
> fnl_20190312_18_00.grib2 from rda.ucar.edu
>
> *Computing environment*
>
> - OS: Mac
> - OS version:MacOS 10.15.4
> - NCL Version: 6.6.2
> - Installation method:built from source
>
> *Additional context*
> Add any other context about the problem here.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#130>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADLWOXU3DX3S2NP56GDPRMDRPUOGHANCNFSM4MYAPMPQ>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi,
I was able to open that file just fine on my Mac, using NCL6.6.2.
Similarly, I had built it with gcc 9.2. I presume you followed the
directions for building grib support:
http://ncl.ucar.edu/Download/build_from_src.shtml#GRIB2
specifically, you downloaded our patch to the grib library:
wget http://www.ncl.ucar.edu/Download/files/g2clib-1.6.0-patch.tar.gz
I had problems getting the supporting jasper library to compile, and I
had to make minor modifications the source code:
./src/libjasper/jpg/jpg_dummy.c, and replace function signatures for
jpg_encode/jpg_decode with
"const char*" args rather than "char*" args.
Is there a reason you need/want to build from source, rather than do
an install from conda? That might save you some grief.
Rick
…On Sun, May 3, 2020 at 12:24 PM Yiwei2020 ***@***.***> wrote:
Hello, I think this is not a problem with the grib2 file. This error
occurs when I open any grib2 file. But the same file will not go wrong in
the Linux environment.
I already upload it in
ftp.cgd.ucar.edu/incoming/fnl_20190312_18_00.grib2
------------------ Original ------------------
From: "Rick ***@***.***>;
Date: Mon, May 4, 2020 00:14 AM
To: ***@***.***>;
Cc: ***@***.***>; ***@***.***>;
Subject: Re: [NCAR/ncl] Problems encountered in compiling and
installing NCL under macOS (#130)
Hi,
If you can share the file with me, I will take a look. If its not too
large, feel free to email it directly to me. Otherwise, and option is to
upload it to our FTP site:
http://ncl.ucar.edu/ftp_files.shtml
Rick
On Sun, May 3, 2020 at 1:44 AM Yiwei2020 ***@***.***>
wrote:
> *Describe the bug*
> Hello there,
> I encountered some problems when compiling and installing NCL under
macOS
> 10.15. When I finished the compilation, I tried to read a GRIB2 file
> through NCL and encountered a "Segmentation fault: 11" error. I
checked the
> relevant information and found that this error was caused by a
pointer
> variable being directly passed into the function without allocating
memory.
> I have no way to solve this problem, can you help me?
> In addition, my GCC version is 9.3. Other dependencies all install
the NCL
> recommended version.
>
> *Provide the following:*
> a=addfile("fnl_20190312_18_00.grib2","r")
> fnl_20190312_18_00.grib2 from rda.ucar.edu
>
> *Computing environment*
>
> - OS: Mac
> - OS version:MacOS 10.15.4
> - NCL Version: 6.6.2
> - Installation method:built from source
>
> *Additional context*
> Add any other context about the problem here.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#130>, or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ADLWOXU3DX3S2NP56GDPRMDRPUOGHANCNFSM4MYAPMPQ>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#130 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLWOXTHAJHILH5XLYRCLI3RPWZGXANCNFSM4MYAPMPQ>
.
|
hello
can you shell your environment variable like CFLAGS and FFLAGS?
thanks your help
发自我的iPhone
… 在 2020年5月4日,23:36,Rick Brownrigg ***@***.***> 写道:
Hi,
I was able to open that file just fine on my Mac, using NCL6.6.2.
Similarly, I had built it with gcc 9.2. I presume you followed the
directions for building grib support:
http://ncl.ucar.edu/Download/build_from_src.shtml#GRIB2
specifically, you downloaded our patch to the grib library:
wget http://www.ncl.ucar.edu/Download/files/g2clib-1.6.0-patch.tar.gz
I had problems getting the supporting jasper library to compile, and I
had to make minor modifications the source code:
./src/libjasper/jpg/jpg_dummy.c, and replace function signatures for
jpg_encode/jpg_decode with
"const char*" args rather than "char*" args.
Is there a reason you need/want to build from source, rather than do
an install from conda? That might save you some grief.
Rick
On Sun, May 3, 2020 at 12:24 PM Yiwei2020 ***@***.***> wrote:
> Hello, I think this is not a problem with the grib2 file. This error
> occurs when I open any grib2 file. But the same file will not go wrong in
> the Linux environment.
> I already upload it in
> ftp.cgd.ucar.edu/incoming/fnl_20190312_18_00.grib2
>
>
> ------------------ Original ------------------
> From: "Rick ***@***.***>;
> Date: Mon, May 4, 2020 00:14 AM
> To: ***@***.***>;
> Cc: ***@***.***>; ***@***.***>;
>
> Subject: Re: [NCAR/ncl] Problems encountered in compiling and
> installing NCL under macOS (#130)
>
>
>
>
>
> Hi,
>
> If you can share the file with me, I will take a look. If its not too
> large, feel free to email it directly to me. Otherwise, and option is to
> upload it to our FTP site:
>
> http://ncl.ucar.edu/ftp_files.shtml
>
> Rick
>
>
> On Sun, May 3, 2020 at 1:44 AM Yiwei2020 ***@***.***>
> wrote:
>
> > *Describe the bug*
> > Hello there,
> > I encountered some problems when compiling and installing NCL under
> macOS
> > 10.15. When I finished the compilation, I tried to read a GRIB2 file
> > through NCL and encountered a "Segmentation fault: 11" error. I
> checked the
> > relevant information and found that this error was caused by a
> pointer
> > variable being directly passed into the function without allocating
> memory.
> > I have no way to solve this problem, can you help me?
> > In addition, my GCC version is 9.3. Other dependencies all install
> the NCL
> > recommended version.
> >
> > *Provide the following:*
> > a=addfile("fnl_20190312_18_00.grib2","r")
> > fnl_20190312_18_00.grib2 from rda.ucar.edu
> >
> > *Computing environment*
> >
> > - OS: Mac
> > - OS version:MacOS 10.15.4
> > - NCL Version: 6.6.2
> > - Installation method:built from source
> >
> > *Additional context*
> > Add any other context about the problem here.
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub
> > <#130>, or unsubscribe
> > <
> https://github.com/notifications/unsubscribe-auth/ADLWOXU3DX3S2NP56GDPRMDRPUOGHANCNFSM4MYAPMPQ>
>
> > .
> >
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#130 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADLWOXTHAJHILH5XLYRCLI3RPWZGXANCNFSM4MYAPMPQ>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
These are from the file $NRC_SRC_ROOT/config/Darwin:
#define HdfDefines -DDARWIN
#define StdDefines -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE
#define Cstatic
#define Cdynamic
#define CppCommand '/usr/bin/cpp -traditional'
#define CCompiler gcc
#define FCompiler gfortran
#define CtoFLibraries -lgfortran -lm
#define CtoFLibrariesUser -lgfortran -lm
#define CcOptions -fPIC -ansi -fopenmp
#define FcOptions -fPIC -fopenmp
#define XToolLibrary -lXt -lSM -lICE
#define BuildShared NO
#define XLibrary -lXpm -lX11 -lXext
#define LibSearchUser -L/usr/X11R6/lib -L/sw/lib
#define IncSearchUser -I/usr/X11R6/include -I/sw/include
#define ArchRecLibSearch -L/usr/X11R6/lib -L/sw/lib
#define ArchRecIncSearch -I/usr/X11R6/include -I/sw/include
…On Mon, May 4, 2020 at 12:37 PM Yiwei2020 ***@***.***> wrote:
hello
can you shell your environment variable like CFLAGS and FFLAGS?
thanks your help
发自我的iPhone
> 在 2020年5月4日,23:36,Rick Brownrigg ***@***.***> 写道:
>
>
> Hi,
>
> I was able to open that file just fine on my Mac, using NCL6.6.2.
> Similarly, I had built it with gcc 9.2. I presume you followed the
> directions for building grib support:
>
> http://ncl.ucar.edu/Download/build_from_src.shtml#GRIB2
>
> specifically, you downloaded our patch to the grib library:
>
> wget http://www.ncl.ucar.edu/Download/files/g2clib-1.6.0-patch.tar.gz
>
> I had problems getting the supporting jasper library to compile, and I
> had to make minor modifications the source code:
>
> ./src/libjasper/jpg/jpg_dummy.c, and replace function signatures for
> jpg_encode/jpg_decode with
> "const char*" args rather than "char*" args.
>
> Is there a reason you need/want to build from source, rather than do
> an install from conda? That might save you some grief.
>
> Rick
>
>
> On Sun, May 3, 2020 at 12:24 PM Yiwei2020 ***@***.***>
wrote:
>
> > Hello, I think this is not a problem with the grib2 file. This error
> > occurs when I open any grib2 file. But the same file will not go wrong
in
> > the Linux environment.
> > I already upload it in
> > ftp.cgd.ucar.edu/incoming/fnl_20190312_18_00.grib2
> >
> >
> > ------------------ Original ------------------
> > From: "Rick ***@***.***>;
> > Date: Mon, May 4, 2020 00:14 AM
> > To: ***@***.***>;
> > Cc: ***@***.***>; ***@***.***
>;
> >
> > Subject: Re: [NCAR/ncl] Problems encountered in compiling and
> > installing NCL under macOS (#130)
> >
> >
> >
> >
> >
> > Hi,
> >
> > If you can share the file with me, I will take a look. If its not too
> > large, feel free to email it directly to me. Otherwise, and option is
to
> > upload it to our FTP site:
> >
> > http://ncl.ucar.edu/ftp_files.shtml
> >
> > Rick
> >
> >
> > On Sun, May 3, 2020 at 1:44 AM Yiwei2020 ***@***.***>
> > wrote:
> >
> > > *Describe the bug*
> > > Hello there,
> > > I encountered some problems when compiling and installing NCL
under
> > macOS
> > > 10.15. When I finished the compilation, I tried to read a GRIB2
file
> > > through NCL and encountered a "Segmentation fault: 11" error. I
> > checked the
> > > relevant information and found that this error was caused by a
> > pointer
> > > variable being directly passed into the function without
allocating
> > memory.
> > > I have no way to solve this problem, can you help me?
> > > In addition, my GCC version is 9.3. Other dependencies all install
> > the NCL
> > > recommended version.
> > >
> > > *Provide the following:*
> > > a=addfile("fnl_20190312_18_00.grib2","r")
> > > fnl_20190312_18_00.grib2 from rda.ucar.edu
> > >
> > > *Computing environment*
> > >
> > > - OS: Mac
> > > - OS version:MacOS 10.15.4
> > > - NCL Version: 6.6.2
> > > - Installation method:built from source
> > >
> > > *Additional context*
> > > Add any other context about the problem here.
> > >
> > > —
> > > You are receiving this because you are subscribed to this thread.
> > > Reply to this email directly, view it on GitHub
> > > <#130>, or unsubscribe
> > > <
> >
https://github.com/notifications/unsubscribe-auth/ADLWOXU3DX3S2NP56GDPRMDRPUOGHANCNFSM4MYAPMPQ>
;
> >
> > > .
> > >
> >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub, or unsubscribe.
> >
> > —
> > You are receiving this because you commented.
> > Reply to this email directly, view it on GitHub
> > <#130 (comment)>, or
> > unsubscribe
> > <
https://github.com/notifications/unsubscribe-auth/ADLWOXTHAJHILH5XLYRCLI3RPWZGXANCNFSM4MYAPMPQ
>
> > .
> >
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#130 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLWOXWYUA4BC3V7TG64E7LRP4DN5ANCNFSM4MYAPMPQ>
.
|
Thank You |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hello there,
I encountered some problems when compiling and installing NCL under macOS 10.15. When I finished the compilation, I tried to read a GRIB2 file through NCL and encountered a "Segmentation fault: 11" error. I checked the relevant information and found that this error was caused by a pointer variable being directly passed into the function without allocating memory. I have no way to solve this problem, can you help me?
In addition, my GCC version is 9.3. Other dependencies all install the NCL recommended version.
Provide the following:
a=addfile("fnl_20190312_18_00.grib2","r")
fnl_20190312_18_00.grib2 from rda.ucar.edu
Computing environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: