-
Notifications
You must be signed in to change notification settings - Fork 27
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
Comments
Try adding #include <math.h> to global_defs.h in lib/ |
================ Configuration Summary ================ justin@Justins-Macbook CitcomS-3.3.1 2 % make Thank you. It worked the previous errors, but new may be coming? And why my “-e with-hdf5: no”? |
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! |
Actually, Ubuntu is the same as the Mac OS. Maybe there are new bug related to the new version CitcomS-3.3.1…. |
Like said. It looks like you should have the binaries in bin/ - did you check that? You don’t need the opendx stuff |
Sorry, not sure then. Maybe there’s issues on Mac OS. |
Possibly. Thank you Dr. thwbecker very much. |
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? |
Hi Justin,
All active developers of CitcomS use it on Linux. It is better to find a
linux machine and install CitcomS on it.
…On Thu, Jul 6, 2023 at 9:25 PM zbc1508 ***@***.***> wrote:
***@***.*** 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?
—
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABWQQWAN53Y5SBOLXUVAG3XO24F7ANCNFSM6AAAAAAQBSJEBY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
It also looks like somehow math.h is not including, even though BC_util.c
sources global_defs.h which has #include <math.h> in it
Maybe just add #include <math.h> to the routine in question for good
measure, and set LDFLAGS = -lm to make sure libraries are loaded.
Thorsten Becker - UT Austin
…On Fri, Jul 7, 2023 at 7:50 AM Eh Tan ***@***.***> wrote:
Hi Justin,
All active developers of CitcomS use it on Linux. It is better to find a
linux machine and install CitcomS on it.
On Thu, Jul 6, 2023 at 9:25 PM zbc1508 ***@***.***> wrote:
> ***@***.*** 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?
>
> —
> Reply to this email directly, view it on GitHub
> <#9 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AABWQQWAN53Y5SBOLXUVAG3XO24F7ANCNFSM6AAAAAAQBSJEBY>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLL4YZV2HFEDTVLY6GF42DXO6PSBANCNFSM6AAAAAAQBSJEBY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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.cBC_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
The text was updated successfully, but these errors were encountered: