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

Installation error MPB #165

Open
varshavk opened this issue Jun 29, 2024 · 3 comments
Open

Installation error MPB #165

varshavk opened this issue Jun 29, 2024 · 3 comments

Comments

@varshavk
Copy link

varshavk commented Jun 29, 2024

Error with field-smob.c. I have guile 3.0.10 installed and also used the updated my-smob.h file. Is there something else wrong with my installation?

checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-apple-darwin23.3.0
checking host system type... x86_64-apple-darwin23.3.0
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert x86_64-apple-darwin23.3.0 file names to x86_64-apple-darwin23.3.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin23.3.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... ld: warning: -single_module is obsolete
no
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin23.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fno-common
checking if gfortran PIC flag -fno-common works... yes
checking if gfortran static flag -static works... no
checking if gfortran supports -c -o file.o... yes
checking if gfortran supports -c -o file.o... (cached) yes
checking whether the gfortran linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin23.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking for perl... /usr/bin/perl
checking for vendor cc to be used instead of gcc...
checking for cc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for sqrt in -lm... yes
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran... -L/usr/local/Cellar/gcc/14.1.0_1/bin/../lib/gcc/current/gcc/x86_64-apple-darwin23/14 -L/usr/local/Cellar/gcc/14.1.0_1/bin/../lib/gcc/current/gcc -L/usr/local/Cellar/gcc/14.1.0_1/bin/../lib/gcc/current/gcc/x86_64-apple-darwin23/14/../../.. -lemutls_w -lheapt_w -lgfortran -lquadmath
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
checking for fftw_execute in -lfftw3... yes
checking if sgemm_ is being linked in already... no
checking for sgemm_ in -lopenblas... no
checking for ATL_xerbla in -latlas... no
checking for sgemm_ in -lblas... yes
checking for dgemm_ in -ldgemm... no
checking for sgemm_ in -lmkl... no
checking for sgemm_ in -framework vecLib... no
checking for sgemm_ in -lcxml... no
checking for sgemm_ in -ldxml... no
checking for sgemm_ in -lscs... no
checking for sgemm_ in -lcomplib.sgimath... no
checking for sgemm_ in -lblas... (cached) yes
checking for sgemm_ in -lessl... no
checking for sgemm_ in -lblas... (cached) yes
checking for cheev_... no
checking for cheev_ in -llapack... yes
checking for deflate in -lz... yes
checking for H5Pcreate in -lhdf5... yes
checking hdf5.h usability... yes
checking hdf5.h presence... yes
checking for hdf5.h... yes
checking for guile... yes
checking for guile-config... guile-config
checking if linking to guile works... yes
checking libguile.h usability... yes
checking libguile.h presence... yes
checking for libguile.h... yes
checking guile/gh.h usability... no
checking guile/gh.h presence... no
checking for guile/gh.h... no
checking for scm_make_smob_type... yes
checking for scm_array_get_handle... yes
checking for scm_is_array... yes
checking for SCM_SMOB_PREDICATE... no
checking for SCM_SMOB_DATA... no
checking for SCM_NEWSMOB... no
checking how to activate readline in Guile... ice-9 readline
checking for libctl dir... /usr/local/share/libctl
checking for gen-ctl-io... gen-ctl-io
checking for ctl_get_vector3 in -lctl... yes
checking ctl.h usability... yes
checking ctl.h presence... yes
checking for ctl.h... yes
checking whether libctl version is at least 4.0.0... ok
checking for libctl_quiet feature... yes
checking for vector3_dot in -lctlgeom... yes
checking ctlgeom.h usability... yes
checking ctlgeom.h presence... yes
checking for ctlgeom.h... yes
checking nlopt.h usability... no
checking nlopt.h presence... no
checking for nlopt.h... no
checking for nlopt_minimize in -lnlopt... no
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for nlopt.h... (cached) no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for getopt... yes
checking for strncmp... yes
checking whether calling BLAS zdotc works... no
checking for bash... /bin/bash
checking for feenableexcept... no
checking whether feenableexcept declaration is usable... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating src/Makefile
config.status: creating src/util/Makefile
config.status: creating src/matrices/Makefile
config.status: creating src/matrixio/Makefile
config.status: creating src/maxwell/Makefile
config.status: creating mpb/Makefile
config.status: creating mpb/mpb.scm
config.status: creating mpb/mpb-split-preinstall
config.status: creating utils/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: creating src/mpbconf.h
config.status: src/mpbconf.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
varsha@rover-229-253 mpb-1.11.1 % make
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in src
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in util
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in matrices make[4]: Nothing to be done for all'.
Making all in matrixio
make[4]: Nothing to be done for all'. Making all in maxwell make[4]: Nothing to be done for all'.
Making all in tests
make[2]: Nothing to be done for `all'.
Making all in mpb
gen-ctl-io --header -o ctl-io.h mpb.scm /usr/local/share/libctl
gen-ctl-io --code -o ctl-io.c mpb.scm /usr/local/share/libctl
/Library/Developer/CommandLineTools/usr/bin/make all-am
CC mpb-medium.o
In file included from medium.c:23:
In file included from ../src/util/mpiglue.h:40:
In file included from ../src/util/check.h:27:
../src/util/mpi_utils.h:34:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
extern int my_global_rank();
^
void
In file included from medium.c:75:
./epsilon.c:434:16: warning: variable 'last_dim' set but not used [-Wunused-but-set-variable]
int i, N, last_dim, last_dim_stored, nx, nz, local_y_start;
^
./epsilon.c:434:26: warning: variable 'last_dim_stored' set but not used [-Wunused-but-set-variable]
int i, N, last_dim, last_dim_stored, nx, nz, local_y_start;
^
./epsilon.c:434:43: warning: variable 'nx' set but not used [-Wunused-but-set-variable]
int i, N, last_dim, last_dim_stored, nx, nz, local_y_start;
^
./epsilon.c:434:47: warning: variable 'nz' set but not used [-Wunused-but-set-variable]
int i, N, last_dim, last_dim_stored, nx, nz, local_y_start;
^
./epsilon.c:434:51: warning: variable 'local_y_start' set but not used [-Wunused-but-set-variable]
int i, N, last_dim, last_dim_stored, nx, nz, local_y_start;
^
./epsilon.c:571:9: warning: cast from 'char *' to 'real *' (aka 'double *') increases required alignment from 1 to 8 [-Wcast-align]
*((real *) (((char *) &mdata->eps_inv[i]) + offset));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./epsilon.c:576:24: warning: cast from 'char *' to 'real *' (aka 'double *') increases required alignment from 1 to 8 [-Wcast-align]
epsilon[i] = *((real *) (((char *) &eps) + offset));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from medium.c:76:
./mu.c:434:16: warning: variable 'last_dim' set but not used [-Wunused-but-set-variable]
int i, N, last_dim, last_dim_stored, nx, nz, local_y_start;
^
./mu.c:434:26: warning: variable 'last_dim_stored' set but not used [-Wunused-but-set-variable]
int i, N, last_dim, last_dim_stored, nx, nz, local_y_start;
^
./mu.c:434:43: warning: variable 'nx' set but not used [-Wunused-but-set-variable]
int i, N, last_dim, last_dim_stored, nx, nz, local_y_start;
^
./mu.c:434:47: warning: variable 'nz' set but not used [-Wunused-but-set-variable]
int i, N, last_dim, last_dim_stored, nx, nz, local_y_start;
^
./mu.c:434:51: warning: variable 'local_y_start' set but not used [-Wunused-but-set-variable]
int i, N, last_dim, last_dim_stored, nx, nz, local_y_start;
^
./mu.c:571:9: warning: cast from 'char *' to 'real *' (aka 'double *') increases required alignment from 1 to 8 [-Wcast-align]
*((real *) (((char *) &mdata->mu_inv[i]) + offset));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./mu.c:576:19: warning: cast from 'char *' to 'real *' (aka 'double *') increases required alignment from 1 to 8 [-Wcast-align]
mu[i] = *((real *) (((char *) &eps) + offset));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 warnings generated.
CC mpb-epsilon_file.o
In file included from epsilon_file.c:33:
In file included from ../src/util/check.h:27:
../src/util/mpi_utils.h:34:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
extern int my_global_rank();
^
void
1 warning generated.
CC mpb-field-smob.o
In file included from field-smob.c:23:
In file included from ../src/util/check.h:27:
../src/util/mpi_utils.h:34:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
extern int my_global_rank();
^
void
field-smob.c:102:6: error: call to undeclared function 'SCM_NEWCELL'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
NEWCELL_SMOB(obj, field_smob, pf);
^
../my-smob.h:45:6: note: expanded from macro 'NEWCELL_SMOB'
SCM_NEWCELL((ANSWER));
^
field-smob.c:102:6: error: incompatible integer to pointer conversion assigning to 'SCM' (aka 'struct scm_unused_struct *') from 'long' [-Wint-conversion]
NEWCELL_SMOB(obj, field_smob, pf);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../my-smob.h:46:6: note: expanded from macro 'NEWCELL_SMOB'
SCM_SETCAR((ANSWER),scm_tc16_smob_ ## T);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/guile/3.0.10/include/guile/3.0/libguile/pairs.h:73:49: note: expanded from macro 'SCM_SETCAR'
#define SCM_SETCAR(x, v) (SCM_VALIDATE_PAIR (x, SCM_SET_CELL_OBJECT_0 ((x), (v))))
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/guile/3.0.10/include/guile/3.0/libguile/gc.h:74:37: note: expanded from macro 'SCM_SET_CELL_OBJECT_0'
#define SCM_SET_CELL_OBJECT_0(x, v) SCM_SET_CELL_OBJECT ((x), 0, (v))
^
/usr/local/Cellar/guile/3.0.10/include/guile/3.0/libguile/gc.h:73:38: note: expanded from macro 'SCM_SET_CELL_OBJECT'
#define SCM_SET_CELL_OBJECT(x, n, v) SCM_GC_SET_CELL_OBJECT ((x), (n), (v))
^
/usr/local/Cellar/guile/3.0.10/include/guile/3.0/libguile/gc.h:49:69: note: expanded from macro 'SCM_GC_SET_CELL_OBJECT'
#define SCM_GC_SET_CELL_OBJECT(x, n, v) ((((SCM *)SCM2PTR (x)) [n]) = (v))
^
/usr/local/Cellar/guile/3.0.10/include/guile/3.0/libguile/pairs.h:123:41: note: expanded from macro 'SCM_VALIDATE_PAIR'

define SCM_VALIDATE_PAIR(cell, expr) (expr)

                                    ^~~~

field-smob.c:407:31: warning: variable 'n_other' set but not used [-Wunused-but-set-variable]
int i, j, k, n1, n2, n3, n_other, n_last, rank, last_dim;
^
field-smob.c:407:40: warning: variable 'n_last' set but not used [-Wunused-but-set-variable]
int i, j, k, n1, n2, n3, n_other, n_last, rank, last_dim;
^
field-smob.c:407:48: warning: variable 'rank' set but not used [-Wunused-but-set-variable]
int i, j, k, n1, n2, n3, n_other, n_last, rank, last_dim;
^
field-smob.c:407:54: warning: variable 'last_dim' set but not used [-Wunused-but-set-variable]
int i, j, k, n1, n2, n3, n_other, n_last, rank, last_dim;
^
5 warnings and 2 errors generated.
make[3]: *** [mpb-field-smob.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@stevengj
Copy link
Collaborator

Should be fixed by 4645a3b

@oskooi, we should do a new release with this fix.

Note that if you just want to use MPB via the Python interface, you should be able to configure MPB --without-libctl to work around this issue.

@lupus-mvl
Copy link

I am having the same issue as @varshavk even after updating the files from 4645a3b.

@601t
Copy link

601t commented Jul 13, 2024

@lupus-mvl
Try this commit. 7dc932d
You should be able to perform the installation.

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

4 participants