# Compilation of fortran interface with lahey compiler version 8.1.0b

**URL:** <https://forum.hdfgroup.org/t/compilation-of-fortran-interface-with-lahey-compiler-version-8-1-0b/2931>\
**Category:** Hdf-forum archives\
**Created:** [June 19, 2013, 9:30am UTC](https://forum.hdfgroup.org/t/compilation-of-fortran-interface-with-lahey-compiler-version-8-1-0b/2931 "2013-06-19T09:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Hierro](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/j/ecccb3/32.png) [@Juan\_Hierro](https://forum.hdfgroup.org/u/Juan_Hierro)\
**Post date:** [June 19, 2013, 9:30am UTC](https://forum.hdfgroup.org/t/compilation-of-fortran-interface-with-lahey-compiler-version-8-1-0b/2931/1 "2013-06-19T09:30:00Z")

</div>

I have been able to compile hdf5-1.8.9 with

CC=gcc  
FC=lfc (lahey/fujitsu version 8.1.0b)

I have had to modify by hand the libtool file. I lack the expertise to modify the configure file so that the right libtool be created during the configuration step.

These are the changes I have had to do. They are expressed as a diff.

10253c10253  
\< pic\_flag="-KPIC"

> **···**
>
> ---
> 
> > pic\_flag=""
> 
> 10256c10256  
> \< wl="-Wl,"  
> ---
> 
> > wl=""
> 
> 10259c10259  
> \< link\_static\_flag="-static"  
> ---
> 
> > link\_static\_flag=""

---

<div class="post-metadata">

**Author:** ![Yngve\_Inntjore\_Levin](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/yngve_inntjore_levin/32/1711_2.png) [@Yngve\_Inntjore\_Levin](https://forum.hdfgroup.org/u/Yngve_Inntjore_Levin)\
**Post date:** [June 20, 2013, 8:13am UTC](https://forum.hdfgroup.org/t/compilation-of-fortran-interface-with-lahey-compiler-version-8-1-0b/2931/2 "2013-06-20T08:13:40Z")

</div>

Hi,

I have been using Lahey a little bit myself, and these changes look  
strange when comparing to our setup.

With this version (lf95, V 6.2), these options which you have removed  
are all valid (-KPIC, -Wl, -static) as far as I can see.

Did you try with FC=lf95? I do not have any binary called lfc in my  
setup, so I don't really know if there is any difference.

Cheers,  
Yngve

> **···**
>
> Den 19. juni 2013 11:30, skrev hierro:
> 
> > I have been able to compile hdf5-1.8.9 with
> > 
> > CC=gcc  
> > FC=lfc (lahey/fujitsu version 8.1.0b)
> > 
> > I have had to modify by hand the libtool file. I lack the expertise to  
> > modify the configure file so that the right libtool be created during  
> > the configuration step.
> > 
> > These are the changes I have had to do. They are expressed as a diff.
> > 
> > 10253c10253  
> > \< pic\_flag="-KPIC"  
> > ---
> > 
> > > pic\_flag=""
> > 
> > 10256c10256  
> > \< wl="-Wl,"  
> > ---
> > 
> > > wl=""
> > 
> > 10259c10259  
> > \< link\_static\_flag="-static"  
> > ---
> > 
> > > link\_static\_flag=""
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)
