[FLASH-BUGS] Re: [HACKERS] Trouble with postprocessing files (fwd)
JB Gallagher
jbgallag at flash.uchicago.edu
Mon Jul 19 18:41:23 CDT 2004
Vijay,
Vijay, it seems something is weird with h5_wrappers.so, in your original
message I could see that the idl is running in 64-bit mode, so you would
need a 64-bit h5_wrappers.so , I think on AIX that cc without arguments
will default to 64-bit I think, however the -q32 and -q64 will force
this. If you are stuck with the 32-bit hdf5 I suggest the following,
edit the h5_wrappers.so Makefile and put "-q32" after the cc directive.
Then see how idl is invoked on your system, it will be either aliased or
linked under /usr/local/bin, if linked under /usr/local/bin just type
"idl -32" , if aliased, then type "unalias idl" and then 'alias idl
"/path-to-idl-installation/bin/idl -32" ' , the main thing is that the
h5_wrapper.so and idl need to be running in the same bit mode they both
have to be either 32 or 64-bit, if the hdf5 you link to to make
h5_wrappers.so in 32-bit this will definitely cause a problem, and I
would thnk it wouldn't even build. Anyway try what I suggest above and
let us know what happens.
--Brad
Alan Calder wrote:
>Guys and gals-
>
>Anyone have any thoughts on this problem? Has anyone run
>xflash on Frost?
>
>ac
>
>
>---------- Forwarded message ----------
>Date: Mon, 19 Jul 2004 15:36:02 -0700
>From: Vijay Sonnad <sonnad1 at llnl.gov>
>To: calder at flash.uchicago.edu
>Subject: Trouble with postprocessing files
>
>Alan,
> Thank you very much for your mail message; following your
>suggestion, I went
>back to fidler2 and ensured that the paths in Makefile.aix were set to
>the IDL and HDF5
>directories that are accessed when I call IDL. The error message
>surprisingly is still the
>same (surprising because I have now explicitly requested a 32 bit version
>of HDF5. The
>error message is shown below and the makefile that I have used is shown
>after that.
>Please let me know if you have any thoughts. Incidentally, does anyone in
>the FLASH center have an account on the frost machine? That would make it
>very straightforward to reproduce the error. Thanks,
> Vijay
>
>Here is the sequence with the IDL :
>
>IDL> xflash
>% Compiled module: XFLASH.
>initializing xflash
>... IDL version = 6.0.3
>... PNG graphics will be used
>... xflash directory is/g/g14/sonnad/JASON/FLASH2.3/RUN/tools/fidlr2/
>% Compiled module: XFLASH_DEFAULTS.
>% Compiled module: VAR_INDEX.
>% Compiled module: COLOR_INDEX.
>% Compiled module: CW_FIELD.
>% Compiled module: CW_BGROUP.
>% Compiled module: XMANAGER.
>% Compiled module: DETERMINE_FILE_TYPE.
>% Compiled module: GET_XFLASH_PATH.
>% Loaded DLM: HDF.
>% XMANAGER: Caught unexpected error from client application. Message follows...
>% CALL_EXTERNAL: Error loading sharable executable.
> Symbol: hdf5_check_file_exist, File =
> /g/g14/sonnad/JASON/FLASH2.3/RUN/tools/fidlr2/h5_wrappers.so
> 0509-022 Cannot load module
>i
>/g/g14/sonnad/JASON/FLASH2.3/RUN/tools/fidlr2/h5_wrappers.so
> l .
> 0509-124 The program is a discontinued 64-bit
>object file.
>% Execution halted at: DETERMINE_FILE_TYPE 29
>/g/g14/sonnad/JASON/FLASH2.3/RUN/tools/fidlr2/determine_file_type.pro
>% XFLASH_EVENT 77
>/g/g14/sonnad/JASON/FLASH2.3/RUN/tools/fidlr2/xflash.pro
>% XMANAGER_EVLOOP_STANDARD 478
>/usr/global/tools/RSI/idl/lib/xmanager.pro
>% XMANAGER 708
>/usr/global/tools/RSI/idl/lib/xmanager.pro
>% XFLASH 1719
>/g/g14/sonnad/JASON/FLASH2.3/RUN/tools/fidlr2/xflash.pro
>% $MAIN$
>IDL> exit
>
>
>Here is the makefile:
>
>"Makefile.aix" 25 lines, 560 characters
># Makefile to build a shared library interface to the serial HDF5 IO
># routines so they can be read into IDL
>
># for IBM SP with AIX 5.1 (spa.rzg.mpg.de)
>
>HDF5path = /usr/local/hdf5/hdf5-1.6.0/serial/32
>IDLpath = /usr/global/tools/RSI/idl/external
>
>CCFLAGS = -I $(HDF5path)/include -I $(IDLpath) -I/usr/include
>LDFLAGS = -qmkshrobj -lm
>LIB = -L ${HDF5path}/lib -lhdf5
>
># objects
>
>OBJS = h5_read.o h5_file_interface.o h5_wrappers.o
>
># compilation
>
>.c.o :
> cc ${CCFLAGS} -c $<
>
># static linking
>
>h5_wrappers.so: ${OBJS}
>
>
>and here is the file that I "source" to set environment variables:
>
>frost067{sonnad}36: cat setidl
>#!/bin/csh
> setenv XFLASH_DIR "$PWD/tools/fidlr2"
> setenv IDL_PATH
>"$XFLASH_DIR":/usr/global/tools/RSI/idl/:/usr/global/tools/RSI/idl/lib
>
>
--
Brad Gallagher
ASCI Flash Center
jbgallag at flash.uchicago.edu
More information about the flash-bugs
mailing list