[ncl-install] problem with AIX precompiled NCL binaries
Mary Haley
haley at ucar.edu
Thu Apr 16 10:53:46 MDT 2009
On Thu, 16 Apr 2009, Selin, Rebecca D CTR USAF AFWA 2 WXG/WEA wrote:
> Here it is:
>
> [adamsr_GTDEV3-8:NCL64] ng4ex xy01c -n
>
> NCAR Graphics High Level Utility C Example <xy01c>
>
> Copying xy01c.c
> Copying xy01.res
> [adamsr_GTDEV3-8:NCL64] nhlcc xy01c.c -lpng plz
> xlc -DSYSV -D_POSIX_SOURCE -DRS6000 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -DNGLONG2XINT -DNeedFuncProto -q64 -O3 -qstrict xy01c.c -lpng plz -L/sphome/adamsr/WRFLIB/NCL64/lib -I/sphome/adamsr/WRFLIB/NCL64/include -lhlu -lncarg -lncarg_gks -lncarg_c -lX11 -lpng -lz -lm -lxlf90 -lxlopt
> xlc: 1501-228 input file plz not found
> [adamsr_GTDEV3-8:NCL64] ./a.out
> /usr/bin/ksh: ./a.out: not found.
> [adamsr_GTDEV3-8:NCL64] a.out
> /usr/bin/ksh: a.out: not found.
> [adamsr_GTDEV3-8:NCL64] ls
> bin include ncl_ncarg-5.1.0 xy01n.ncl
> core lib xy01.res
> gsun01n.ncl ncl_5.0.0 xy01c.c
> [adamsr_GTDEV3-8:NCL64] /usr/sbin/lsconf | grep POWER
> Processor Type: PowerPC_POWER4
> [adamsr_GTDEV3-8:NCL64]
Becky,
I think this is the problem, you have a Power4 system, and these
binaries were built for a Power6 system.
The administrators for these AIX systems always tell me that I need to
build binaries for a particular architecture, and that it's not a good
idea to use binaries compiled on other architectures.
I will try to build a "vanilla" version of NCL on this system, but
I can't make any guarantees that it will work. I'll let you know
when/if it's ready.
--Mary
> Becky Adams Selin
> UCAR Visiting Scientist
> Air Force Weather Agency 2 WXG/WEA
> COMM: (402) 294-5273 DSN: 271-5273
>
>
> -----Original Message-----
> From: Mary Haley [mailto:haley at ucar.edu]
> Sent: Thursday, April 16, 2009 11:24 AM
> To: Selin, Rebecca D CTR USAF AFWA 2 WXG/WEA
> Subject: RE: [ncl-install] problem with AIX precompiled NCL binaries
>
> Thanks. Can you try this:
>
> ng4ex xy01c -n
> nhlcc xy01c.c -lpng plz
> ./a.out
>
> Also, what does the following report:
>
> /usr/sbin/lsconf | grep POWER
>
> I think there might be an incompatibility.
>
> --Mary
>
> On Thu, 16 Apr 2009, Selin, Rebecca D CTR USAF AFWA 2 WXG/WEA wrote:
>
>> Mary,
>>
>> I've attached a text file with the output from those commands. The "ng4ex
>> gsun01n" command does not work now. The "ng4ex ap01n" command does. At
>> least I assume it does - it produced the typical X11 window with "NCAR
>> Graphics" written in it in yellow.
>>
>> Thanks.
>>
>> Becky Adams Selin
>> UCAR Visiting Scientist
>> Air Force Weather Agency 2 WXG/WEA
>> COMM: (402) 294-5273 DSN: 271-5273
>>
>>
>> -----Original Message-----
>> From: Mary Haley [mailto:haley at ucar.edu]
>> Sent: Thursday, April 16, 2009 11:05 AM
>> To: Selin, Rebecca D CTR USAF AFWA 2 WXG/WEA
>> Cc: ncl-install at ucar.edu
>> Subject: RE: [ncl-install] problem with AIX precompiled NCL binaries
>>
>>
>> Can you send me the full output from the following commands:
>>
>> uname -a
>> env | grep NCARG
>> type ncl
>> ncl -V
>> ng4ex xy01c -clean
>> ng4ex xy01n -clean
>> ng4ex gsun01n -clean
>> ng4ex ap01n -clean
>>
>> --Mary
>>
>> On Thu, 16 Apr 2009, Selin, Rebecca D CTR USAF AFWA 2 WXG/WEA wrote:
>>
>>> May,
>>>
>>> Sorry, I did indeed mean "ng4ex". Yes, it makes no sense to me either why
>> "ng4ex gsun01n.ncl" would work and "ncl gsun01n.ncl" would not.
>>>
>>> When I tried running "ng4ex xy01n -clean" I got the "Illegal instruction
>> (core dumped)" error again.
>>>
>>> Interestingly, I am able to get both "ng4ex ap01n" and "ncl ap01n.ncl" to
>> work.
>>>
>>> Thanks again.
>>>
>>> Becky Adams Selin
>>> UCAR Visiting Scientist
>>> Air Force Weather Agency 2 WXG/WEA
>>> COMM: (402) 294-5273 DSN: 271-5273
>>>
>>>
>>> -----Original Message-----
>>> From: Mary Haley [mailto:haley at ucar.edu]
>>> Sent: Thursday, April 16, 2009 10:46 AM
>>> To: Selin, Rebecca D CTR USAF AFWA 2 WXG/WEA
>>> Cc: ncl-install at ucar.edu
>>> Subject: Re: [ncl-install] problem with AIX precompiled NCL binaries
>>>
>>>
>>> On Wed, 15 Apr 2009, Selin, Rebecca D CTR USAF AFWA 2 WXG/WEA wrote:
>>>
>>>> Hello,
>>>>
>>>> I am attempting to use the precompiled NCL 5.1.0 binaries for an AIX 5.3
>>>> PowerPC 6 system. Last year, I was able to download the NCL 5.0.0
>>>> binaries for an AIX 5.3 PowerPC 5 system, and they still work fine.
>>>> However, the 5.1.0 binaries didn't work. When testing my installation,
>>>> the following would occur:
>>>>
>>>> nc4ex gsun01n : runs successfully, produces images
>>>>
>>>> ncl gsun01n.ncl : exits before plotting anything with the error Illegal
>>>> instruction(coredump)
>>>
>>> Becky,
>>>
>>> I'm not sure I understand the above. By "nc4ex" did you mean "ng4ex"?
>>> If "ng4ex gsun01n.ncl" works, then I don't understand why "ncl
>>> gsun01n.ncl" wouldn't work, since "ng4ex" is doing this internally.
>>>
>>> Are you able to run:
>>>
>>> ng4ex xy01n -clean
>>>
>>> ?
>>>
>>>> ncargex cpex08 :
>>>>
>>>> NCAR Graphics Fortran Example <cpex08>
>>>>
>>>> Copying cpex08.f
>>>>
>>>> Copying cpexcc.f
>>>>
>>>
>>> For this problem, it looks like you may be using an old "ncargf77",
>>> because the new one should be including "-lpng -lz" on the compile
>>> line.
>>>
>>> You can try the compilation yourself with:
>>>
>>> ncargex cpex08 -n
>>> ncargf77 cpex08.c cpexcc.c -lpng -lz
>>> ./a.out
>>>
>>> If you don't get any errors, then you should now have a "gmeta"
>>> file which you can view with "ctrans":
>>>
>>> ctrans -d X11 gmeta
>>>
>>> --Mary
>>>
>>>>
>>>> Compiling and linking...
>>>>
>>>> xlf_r -q64 -O3 -qstrict -o cpex08 cpexcc.f cpex08.f
>>>> -L/sphome/adamsr/WRFLIB/NCL64/lib -lncarg -lncarg_gks -lncarg_c -lX11
>>>>
>>>> cpexcc.f:
>>>>
>>>> ** gendat === End of Compilation 1 ===
>>>>
>>>> ** fran === End of Compilation 2 ===
>>>>
>>>> ** capsap === End of Compilation 3 ===
>>>>
>>>> ** labtop === End of Compilation 4 ===
>>>>
>>>> ** bndary === End of Compilation 5 ===
>>>>
>>>> ** dfclrs === End of Compilation 6 ===
>>>>
>>>> 1501-510 Compilation successful for file cpexcc.f.
>>>>
>>>> cpex08.f:
>>>>
>>>> ** cpex08 === End of Compilation 1 ===
>>>>
>>>> ** colram === End of Compilation 2 ===
>>>>
>>>> ** colrcl === End of Compilation 3 ===
>>>>
>>>> ** colrll === End of Compilation 4 ===
>>>>
>>>> ** colra2 === End of Compilation 5 ===
>>>>
>>>> ** colrc2 === End of Compilation 6 ===
>>>>
>>>> ** colrl2 === End of Compilation 7 ===
>>>>
>>>> 1501-510 Compilation successful for file cpex08.f.
>>>>
>>>> ld: 0711-317 ERROR: Undefined symbol: .png_create_write_struct
>>>>
>>>> ld: 0711-317 ERROR: Undefined symbol: .png_create_info_struct
>>>>
>>>> ld: 0711-317 ERROR: Undefined symbol: .png_destroy_write_struct
>>>>
>>>> ld: 0711-317 ERROR: Undefined symbol: .png_init_io
>>>>
>>>> ld: 0711-317 ERROR: Undefined symbol: .png_malloc
>>>>
>>>> ld: 0711-317 ERROR: Undefined symbol: .png_set_rows
>>>>
>>>> ld: 0711-317 ERROR: Undefined symbol: .png_set_IHDR
>>>>
>>>> ld: 0711-317 ERROR: Undefined symbol: .png_write_png
>>>>
>>>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
>>>> information.
>>>>
>>>>
>>>>
>>>> The compile and link failed.
>>>>
>>>>
>>>>
>>>> Of course, this last error makes me suspect that my libpng library is
>>>> not linking in correctly - it is not in the "normal" place. But what is
>>>> the name of the environmental variable I need to set to define this?
>>>> I've tried PNG and LIBPNG. And I have no idea what could be the problem
>>>> with regular NCL.
>>>>
>>>>
>>>>
>>>> Thanks in advance for your help.
>>>>
>>>>
>>>>
>>>> Becky Adams Selin
>>>>
>>>> UCAR Visiting Scientist
>>>>
>>>> Air Force Weather Agency 2 WXG/WEA
>>>>
>>>> COMM: (402) 294-5273 DSN: 271-5273
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
More information about the ncl-install
mailing list