pkgsrc-Users archive

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

Re: [2022Q3] mpich-3.4.3 compilation failure



Am Sat, 1 Oct 2022 16:23:09 +0200
schrieb Havard Eidnes <he%NetBSD.org@localhost>:

> > 	OK, I have found information on several web pages and I have added to
> > option.mk:
> >
> > CONFIGURE_ARGS+=   FFLAGS=-m64 FCFLAGS=-m64
> >
> > 	In /etc/mk.conf, I have added:
> >
> > PKG_OPTIONS.mpich=f90  
> 
> Hmm.  The package's options.mk already has
>
> PKG_SUGGESTED_OPTIONS=  f90
> 
> so that option should be "default on".

-m64 being necessary? Do you have totally empty flags otherwise? I
build on Linux/x86-64, but also usually with something set in -march.

> Conditionalize use of AI_V4MAPPED (not present on NetBSD).

Are we talking about NetBSD on the initial report? I welcome patches
for potability (of course also presented upstream). I worked on the MPI
packages, but need other people to do this testing on NetBSD. I
remember feedback on that before the branch, though.

> % diff -u PLIST PLIST.new
> --- PLIST       2022-10-01 15:58:10.306641807 +0200
> +++ PLIST.new   2022-10-01 16:01:48.523812366 +0200
> @@ -1,4 +1,4 @@
> -@comment $NetBSD: PLIST,v 1.25 2022/08/25 21:46:53 thor Exp $
> +@comment $NetBSD$
>  bin/hydra_nameserver
>  bin/hydra_persist
>  bin/hydra_pmi_proxy
> @@ -18,23 +18,12 @@
>  include/mpi.h
>  ${PLIST.f90}include/mpi.mod
>  ${PLIST.f90}include/mpi_base.mod
> -${PLIST.f90}include/mpi_c_interface_cdesc.mod
> -${PLIST.f90}include/mpi_c_interface_glue.mod
> -${PLIST.f90}include/mpi_c_interface.mod
> -${PLIST.f90}include/mpi_c_interface_nobuf.mod
> -${PLIST.f90}include/mpi_c_interface_types.mod
>  ${PLIST.f90}include/mpi_constants.mod
>  ${PLIST.f90}include/mpi_sizeofs.mod
> -${PLIST.f90}include/mpi_f08_callbacks.mod
> -${PLIST.f90}include/mpi_f08_compile_constants.mod
> -${PLIST.f90}include/mpi_f08_link_constants.mod
> -${PLIST.f90}include/mpi_f08.mod
> -${PLIST.f90}include/mpi_f08_types.mod
>  include/mpicxx.h
>  ${PLIST.f90}include/mpif.h
>  include/mpio.h
>  include/mpiof.h
> -${PLIST.f90}include/pmpi_f08.mod
>  ${PLIST.f90}lib/libfmpich.so
>  lib/libmpi.la
>  lib/libmpich.so

It seems, though, that we don't deal with NetBSD specifics here, but a
compiler that does f90 without f08 support. I presumed that people
would use a compiler that supports Fortran 2008 at least.

What's your compiler version? Maybe we need a minimal requirement … or
add more complicated logic that finds Fortran 2008 support. There's no
f08 language define for pkgsrc, or is there?


Alrighty then,

Thomas

-- 
Dr. Thomas Orgis
HPC @ Universität Hamburg


Home | Main Index | Thread Index | Old Index