pkgsrc-Users archive

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

[2022Q3] mpich-3.4.3 compilation failure



	Hello,

	I have upgraded my tree to 2022Q3 and launched pkg_rolling-replace -suv
as usual.

	Configuration of mpich fails with following message:

checking for Fortran 77 libraries of gfortran...
checking whether gfortran accepts the FLIBS found by autoconf... no
checking for valid entries in FLIBS...
checking whether gcc links with FLIBS found by autoconf... yes
checking whether Fortran 77 and C objects are compatible... no
checking for file... file
configure: error: ****  Incompatible Fortran and C Object File Types!  ****
F77 Object File Type produced by "gfortran -O -fallow-argument-mismatch
" is : : cannot open `' (No such file or directory).
 C  Object File Type produced by "gcc -O2 -fPIC -D_FORTIFY_SOURCE=2
-I/usr/pkg/include -I/usr/include   -O2" is : : ELF 64-bit LSB
relocatable, x86-64, version 1 (SYSV), not stripped.
*** Error code 1

	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

	Now, mpich is configured. But after a few seconds, compilation aborts
with :

  CC       src/sock/mpl_sockaddr.lo
src/sock/mpl_sockaddr.c: In function 'MPL_get_sockaddr':
src/sock/mpl_sockaddr.c:101:24: error: 'AI_V4MAPPED' undeclared (first
use in this function)
     ai_hint.ai_flags = AI_V4MAPPED;
                        ^~~~~~~~~~~
src/sock/mpl_sockaddr.c:101:24: note: each undeclared identifier is
reported only once for each function it appears in
*** [src/sock/mpl_sockaddr.lo] Error code 1

	I have added in file:
#define AI_V4MAPPED 0x10000
to compile object as AI_V4MAPPED is not implemented.

	Same addition in src/sock/mpl_sockaddr.c.

	With these modifications, make create libraries and programs. But make
package fails with :

=> Automatic manual page handling
=> Generating post-install file lists
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_c_interface_cdesc.mod'
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_c_interface_glue.mod'
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_c_interface.mod'
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_c_interface_nobuf.mod'
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_c_interface_types.mod'
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_f08_callbacks.mod'
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_f08_compile_constants.mod'
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_f08_link_constants.mod'
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_f08.mod'
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_f08_types.mod'
pkg_create: can't stat
`/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/pmpi_f08.mod'
=> Checking file-check results for mpich-3.4.3
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg:
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_c_interface.mod
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_c_interface_cdesc.mod
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_c_interface_glue.mod
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_c_interface_nobuf.mod
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_c_interface_types.mod
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_f08.mod
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_f08_callbacks.mod
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_f08_compile_constants.mod
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_f08_link_constants.mod
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/mpi_f08_types.mod
ERROR:
/usr/src/pkgsrc/parallel/mpi-ch/work/.destdir/usr/pkg/include/pmpi_f08.mod
*** Error code 1

Stop.
make[1]: stopped in /usr/src/pkgsrc/parallel/mpi-ch
*** Error code 1

Stop.
make: stopped in /usr/src/pkgsrc/parallel/mpi-ch
legendre#

	How can I build this package ?

	Best regards,

	JB



Home | Main Index | Thread Index | Old Index