Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails: Error: Procedure 'fun_set_str_int' in generic interface 'fmpfr' at (1) is neither function nor subroutine; did you mean 'fun_set_str_long'? #8

Open
barracuda156 opened this issue Jun 6, 2024 · 1 comment

Comments

@barracuda156
Copy link

Something does not work here:

Making all in src
make[1]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_FMPFR/FMPFR/work/FMPFR-0.1.0/src'
/opt/local/bin/gfortran-mp-13 -c -pipe -Os -m32 fmpfr_kinds.f90
/opt/local/bin/gfortran-mp-13 -c -pipe -Os -m32 fmpfr_kinds.f90
/usr/bin/gcc-4.2 -DPACKAGE_NAME=\"Fortran\ MPFR\ biding\" -DPACKAGE_TARNAME=\"libfmpfr\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"Fortran\ MPFR\ biding\ 0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libfmpfr\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBMPFR=1 -DHAVE_LIBGMP=1 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I.   -I/opt/local/include  -pipe -Os -arch ppc -DUSE_LONG_DOUBLE=1 -MT fmpfr_glue.o -MD -MP -MF .deps/fmpfr_glue.Tpo -c -o fmpfr_glue.o fmpfr_glue.c
/opt/local/bin/gfortran-mp-13 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DUSE_DERIVED_IO=1 -DUSE_LONG_DOUBLE=1 -pipe -Os -m32 -c fmpfr_c.F90
/opt/local/bin/gfortran-mp-13 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DUSE_DERIVED_IO=1 -DUSE_LONG_DOUBLE=1 -pipe -Os -m32 -c fmpfr_c.F90
mv -f .deps/fmpfr_glue.Tpo .deps/fmpfr_glue.Po
/opt/local/bin/gfortran-mp-13 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DUSE_DERIVED_IO=1 -DUSE_LONG_DOUBLE=1 -pipe -Os -m32 -c fmpfr_oper.F90
fmpfr_oper.F90:443:21:

  443 |     module procedure fun_set_str_int
      |                     1
Error: Procedure 'fun_set_str_int' in generic interface 'fmpfr' at (1) is neither function nor subroutine; did you mean 'fun_set_str_long'?
fmpfr_oper.F90:456:21:

  456 |     module procedure get_str_int
      |                     1
Error: Procedure 'get_str_int' in generic interface 'get_str' at (1) is neither function nor subroutine; did you mean 'get_str_rnd'?
fmpfr_oper.F90:515:21:

  515 |     module procedure set_default_prec_int
      |                     1
Error: Procedure 'set_default_prec_int' in generic interface 'set_default_prec' at (1) is neither function nor subroutine; did you mean 'mpfr_set_default_prec'?
make[1]: *** [fmpfr_oper.o] Error 1
@barracuda156
Copy link
Author

Same with autoreconf:

--->  Configuring FMPFR
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_FMPFR/FMPFR/work/FMPFR-0.1.0" && autoreconf --install --verbose 
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /opt/local/bin/aclocal 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /opt/local/bin/autoconf
configure.ac:12: warning: The macro 'AC_LANG_C' is obsolete.
configure.ac:12: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
configure.ac:12: the top level
autoreconf: configure.ac: not using Autoheader
autoreconf: running: /opt/local/bin/automake --add-missing --copy --no-force
autoreconf: Leaving directory '.'
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_FMPFR/FMPFR/work/FMPFR-0.1.0" && ./configure --prefix=/opt/local --disable-silent-rules 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... /opt/local/bin/gcc-mp-13
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /opt/local/bin/gcc-mp-13 accepts -g... yes
checking for /opt/local/bin/gcc-mp-13 option to enable C11 features... none needed
checking whether /opt/local/bin/gcc-mp-13 understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of /opt/local/bin/gcc-mp-13... gcc3
checking whether the compiler supports GNU Fortran... yes
checking whether /opt/local/bin/gfortran-mp-13 accepts -g... yes
checking for ar... ar
checking for ranlib... ranlib
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for mpfr.h... yes
checking for mpfr_add in -lmpfr... yes
checking for gmp.h... yes
checking for __gmpz_init in -lgmp... yes
checking for mp_limb_t... c_long
checking for mpfr_prec_t... c_long
checking for mpfr_exp_t... c_long
checking size of int... 4
checking size of long... 4
checking for Fortran flag to compile preprocessed .F90 files... none
checking for Fortran flag to compile preprocessed .F files... none
checking how to define symbols for preprocessed Fortran... -D
checking if __float128 is supported... no
checking if derived-type I/O is supported... yes
checking if the Fortran compiler supports finalization... yes
checking if the Fortran compiler supports -I... yes
checking if Fortran supports ERROR STOP... yes
checking if Fortran supports IEEE 128-bit... no
checking if c_long_double is useful... yes
checking flags to pass for Fortran files to be preprocessed... -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DUSE_DERIVED_IO=1 -DUSE_LONG_DOUBLE=1
configure: Default preicision is 113
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/fmpfr_kinds.f90
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: executing depfiles commands
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  foo: found in FMPFR-0.1.0/config.log
--->  Building FMPFR
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_FMPFR/FMPFR/work/FMPFR-0.1.0" && /usr/bin/make -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_FMPFR/FMPFR/work/FMPFR-0.1.0'
Making all in src
make[1]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_FMPFR/FMPFR/work/FMPFR-0.1.0/src'
/opt/local/bin/gfortran-mp-13 -c -pipe -Os -m32 fmpfr_kinds.f90
/opt/local/bin/gfortran-mp-13 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DUSE_DERIVED_IO=1 -DUSE_LONG_DOUBLE=1 -pipe -Os -m32 -c fmpfr_c.F90
/opt/local/bin/gfortran-mp-13 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DUSE_DERIVED_IO=1 -DUSE_LONG_DOUBLE=1 -pipe -Os -m32 -c fmpfr_oper.F90
fmpfr_oper.F90:443:21:

  443 |     module procedure fun_set_str_int
      |                     1
Error: Procedure 'fun_set_str_int' in generic interface 'fmpfr' at (1) is neither function nor subroutine; did you mean 'fun_set_str_long'?
fmpfr_oper.F90:456:21:

  456 |     module procedure get_str_int
      |                     1
Error: Procedure 'get_str_int' in generic interface 'get_str' at (1) is neither function nor subroutine; did you mean 'get_str_rnd'?
fmpfr_oper.F90:515:21:

  515 |     module procedure set_default_prec_int
      |                     1
Error: Procedure 'set_default_prec_int' in generic interface 'set_default_prec' at (1) is neither function nor subroutine; did you mean 'mpfr_set_default_prec'?
make[1]: *** [fmpfr_oper.o] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_FMPFR/FMPFR/work/FMPFR-0.1.0/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_FMPFR/FMPFR/work/FMPFR-0.1.0'
Command failed:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_FMPFR/FMPFR/work/FMPFR-0.1.0" && /usr/bin/make -w all 
Exit code: 2
Error: Failed to build FMPFR: command execution failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant