patchGNU Autoconf Archive - Patches: patch #7788, macro AX_LIB_HDF5 breaks for...

 
 

patch #7788: macro AX_LIB_HDF5 breaks for cross-compile configure-ations

Submitter:  Sebastian Freundt <hroptatyr>
Submitted:  Thu 31 May 2012 12:51:39 PM UTC
   
 
Priority:  5 - Normal Status:  Works For Me
Assigned to:  simons Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 17 Jun 2012 04:11:39 AM UTC, comment #6: 

Yes, it can be closed.  Closing.

Rhys Ulerich <rhysu>
Group Member
Fri 15 Jun 2012 09:47:22 PM UTC, comment #5: 

Can this bug report be closed?

Peter Simons <simons>
Group administrator
Thu 31 May 2012 02:44:42 PM UTC, comment #4: 

Ah indeed, that's the problem, it uses h5cc instead of i586-unknown-linux-gnu-h5cc (that is "${build}-h5cc").  I've created the latter myself as all cross-tools are prefixed with ${build}.

It just occurred to me that h5cc is just a shell script and hence will work even when building for another target.  I guess I should take my bug report to the hdf people.

Sebastian Freundt <hroptatyr>
Thu 31 May 2012 02:28:26 PM UTC, comment #3: 

Hmm...  There's no "detecting" in this macro in the usual autoconf sense-- it merely looks for the installed h5cc/h5pcc/etc compiler wrappers and scrapes their output.  I could see adding some linking tests at the end of ax_lib_hdf5.m4 to verify that the libraries link correctly on the target (and therefore detect the problem you report), but I'm unsure how to extend the current scraping approach to do what you want (which I agree is the right thing).

I'll admit I'm not familiar with using HDF5 wrappers for cross-compilation. Do you have an h5cc compiler wrapper somewhere which works for your cross-compile when invoked manually?

Rhys Ulerich <rhysu>
Group Member
Thu 31 May 2012 02:18:04 PM UTC, comment #2: 

It detects the x86_64 library:

$> grep -F "HDF" config.log  
configure:16593: checking for HDF5 libraries
configure:16724: checking for matching HDF5 Fortran wrapper
HAVE_HDF5_FALSE='#'
HAVE_HDF5_TRUE=''
HDF5_CFLAGS=' -fmessage-length=0 -O0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g'
HDF5_CPPFLAGS='-I/usr/include  '
HDF5_FFLAGS=''
HDF5_FLIBS=''
HDF5_LDFLAGS='-L/usr/lib64   -lhdf5   -lpthread -lz -lrt -lm '
HDF5_VERSION='1.8.8'
#define HAVE_HDF5 1

Sebastian Freundt <hroptatyr>
Thu 31 May 2012 02:08:49 PM UTC, comment #1: 

What result do you see when you run your reproduction commands?  I'd like to make sure I'm looking at the same problem when I attempt to trouble shoot it.

Rhys Ulerich <rhysu>
Group Member
Thu 31 May 2012 12:51:39 PM UTC, original submission:  

Steps to reproduce:

configure.ac:
...
AX_LIB_HDF5([serial])

then:
shell> configure --build=x86_64-unknown-linux-gnu --host=i586-unknown-linux-gnu

Sebastian Freundt <hroptatyr>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by rhysu (Posted a comment)
  • -email is unavailable- added by hroptatyr (Submitted the item)
  •  

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-06-17 rhysu StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2012-06-15 simons StatusNone Need Info
        Assigned toNone simons

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code