[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Coinstallability of Fortran libraries built with different compilers



Le samedi 22 octobre 2011 à 16:24 -0700, Steve Langasek a écrit : 
> > One point to think of is how this works with multiarch, which is
> > being introduced
> > in Debian. Instead of 'ifort' should we use the architecture triplet, eg.
> > i386-linux-intel instead ?
> > Then the libraries go in i386-linux-intel rather than i386-linux-gnu
> > for gfortran;
> > ditto for the .mod files in /usr/include/i386-linux-intel
> 
> I'm not familiar with this i386-linux-intel triplet.  Is this a triplet
> targeted by the toolchain?  Does software built for this target not use GNU
> libc?  (I guess I can't presume that it uses any libc at all, since we're
> speaking specifically of fortran here.)

It uses the same libc, but it uses a different Fortran library.

Because of that library, you can link Fortran libraries and programs
only against other Fortran libraries built with the same compiler. The
architecture triplet would be the same, but it would need an addition
for the Fortran library.

IIRC the problem used to be the same with C++ until the libstdc++ ABI
was standardized.

-- 
 .''`.      Josselin Mouette
: :' :
`. `'
  `-

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: