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 errors: errors after $ make #9

Open
Chensons opened this issue Aug 31, 2022 · 12 comments
Open

Installation errors: errors after $ make #9

Chensons opened this issue Aug 31, 2022 · 12 comments

Comments

@Chensons
Copy link

justin@Justins-Macbook CitcomS-3.3.1 % make
/Volumes/JustinsSN770Disk/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in Py2C
make[2]: Nothing to be done for all'. Making all in etc make[2]: Nothing to be done for all'.
Making all in examples
make[2]: Nothing to be done for all'. Making all in tests make[2]: Nothing to be done for all'.
Making all in visual
Making all in OpenDXMacro
make[3]: Nothing to be done for all'. make[3]: Nothing to be done for all-am'.
Making all in lib
mpicc -DHAVE_CONFIG_H -I. -I.. -DUSE_GZDIR -g -O2 -MT libCitcomS_a-BC_util.o -MD -MP -MF .deps/libCitcomS_a-BC_util.Tpo -c -o libCitcomS_a-BC_util.o test -f 'BC_util.c' || echo './'BC_util.c
BC_util.c:268:48: error: implicitly declaring library function 'pow' with type 'double (double, double)' [-Werror,-Wimplicit-function-declaration]
k = noz + (int)((float)E->mesh.toplayerbc / pow(2.,(float)(E->mesh.gridmax-lv)));
^
BC_util.c:268:48: note: include the header <math.h> or explicitly provide a declaration for 'pow'
1 error generated.
make[2]: *** [libCitcomS_a-BC_util.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@thwbecker
Copy link
Contributor

Try adding

#include <math.h>

to global_defs.h in lib/

@Chensons
Copy link
Author

Try adding

#include <math.h>

to global_defs.h in lib/

================ Configuration Summary ================
-e CC: mpicc
-e CFLAGS: -g -O2
-e CPPFLAGS: -DUSE_GZDIR
-e LDFLAGS:
-e LIBS: -lz
-e with-hdf5: no
-e with-ggrd: no

justin@Justins-Macbook CitcomS-3.3.1 2 % make
/Volumes/JustinsSN770Disk/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in Py2C
mpicxx -DHAVE_CONFIG_H -I. -I.. -DUSE_GZDIR -g -O2 -MT Py2CMain.o -MD -MP -MF .deps/Py2CMain.Tpo -c -o Py2CMain.o Py2CMain.cpp
mv -f .deps/Py2CMain.Tpo .deps/Py2CMain.Po
mpicxx -DHAVE_CONFIG_H -I. -I.. -DUSE_GZDIR -g -O2 -MT Py2C.o -MD -MP -MF .deps/Py2C.Tpo -c -o Py2C.o Py2C.cpp
mv -f .deps/Py2C.Tpo .deps/Py2C.Po
/bin/sh ../libtool --tag=CXX --mode=link mpicxx -g -O2 -o Py2C Py2CMain.o Py2C.o -lz
libtool: link: mpicxx -g -O2 -o Py2C Py2CMain.o Py2C.o -Wl,-bind_at_load -lz
Making all in etc
make[2]: Nothing to be done for all'. Making all in examples make[2]: Nothing to be done for all'.
Making all in tests
make[2]: Nothing to be done for `all'.
Making all in visual
Making all in OpenDXMacro
sed -e s:[@]dxmacrodir[@]:/Users/justin/Downloads/CitcomS-3.3.1 2/visual/OpenDXMacro:g CitcomSFullImport.net.in > CitcomSFullImport.net || (rm -f CitcomSFullImport.net && exit 1)
sed: 1: "s:[@]dxmacrodir[@]:/Use ...": unescaped newline inside substitute pattern
make[3]: *** [CitcomSFullImport.net] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Thank you. It worked the previous errors, but new may be coming? And why my “-e with-hdf5: no”?

@thwbecker
Copy link
Contributor

it looks to me that you were able to compile the main code - I have no idea about the OpenDX tools, and have never used them.

The flags about no dhf5 just mean you won't have those libraries and I/O

@Chensons
Copy link
Author

it looks to me that you were able to compile the main code - I have no idea about the OpenDX tools, and have never used them.

The flags about no dhf5 just mean you won't have those libraries and I/O

Thank you very much!Yes, I can compile the main code, but ‘make’ failed so that I could not runmpi the examples. Mac OS 12 may be unfriendly to the CitcomS installation and running at present. I have installed a Ubuntu virtual machine to try it again. Thanks!

@Chensons
Copy link
Author

Actually, Ubuntu is the same as the Mac OS. Maybe there are new bug related to the new version CitcomS-3.3.1….

@thwbecker
Copy link
Contributor

Like said. It looks like you should have the binaries in bin/ - did you check that? You don’t need the opendx stuff

@Chensons
Copy link
Author

Like said. It looks like you should have the binaries in bin/ - did you check that? You don’t need the opendx stuff

I checked it,but there are no Citcoms.

截屏2022-09-01 05 33 36

@thwbecker
Copy link
Contributor

Sorry, not sure then. Maybe there’s issues on Mac OS.

@Chensons
Copy link
Author

Chensons commented Sep 1, 2022

Sorry, not sure then. Maybe there’s issues on Mac OS.

Possibly. Thank you Dr. thwbecker very much.

@zbc1508
Copy link

zbc1508 commented Jul 6, 2023

justin@Justins-Macbook CitcomS-3.3.1 % make /Volumes/JustinsSN770Disk/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in Py2C make[2]: Nothing to be done for all'. Making all in etc make[2]: Nothing to be done for all'. Making all in examples make[2]: Nothing to be done for all'. Making all in tests make[2]: Nothing to be done for all'. Making all in visual Making all in OpenDXMacro make[3]: Nothing to be done for all'. make[3]: Nothing to be done for all-am'. Making all in lib mpicc -DHAVE_CONFIG_H -I. -I.. -DUSE_GZDIR -g -O2 -MT libCitcomS_a-BC_util.o -MD -MP -MF .deps/libCitcomS_a-BC_util.Tpo -c -o libCitcomS_a-BC_util.o test -f 'BC_util.c' || echo './'BC_util.c BC_util.c:268:48: error: implicitly declaring library function 'pow' with type 'double (double, double)' [-Werror,-Wimplicit-function-declaration] k = noz + (int)((float)E->mesh.toplayerbc / pow(2.,(float)(E->mesh.gridmax-lv))); ^ BC_util.c:268:48: note: include the header <math.h> or explicitly provide a declaration for 'pow' 1 error generated. make[2]: *** [libCitcomS_a-BC_util.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

I have the same errors as yours. My system is Mac OS 13.14. So I am wondering what is the better system for using Citcoms?

@tan2
Copy link
Contributor

tan2 commented Jul 7, 2023 via email

@thwbecker
Copy link
Contributor

thwbecker commented Jul 7, 2023 via email

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