building Dirac on a Mac

16 views
Skip to first unread message

Peterson, Kirk

unread,
Jul 3, 2022, 1:38:36 PM7/3/22
to dirac...@googlegroups.com

Dear Dirac experts,

 

I'm attempting to build Dirac on my MacBook Pro (running 11.6.7) but I get an odd error in cfun/general.c :

 

/Users/kipeters/Dirac/src/cfun/general.c:608:5: error: implicitly declaring library function 'vsnprintf' with type 'int (char *, unsigned long, const char *, struct __va_list_tag *)' [-Werror,-Wimplicit-function-declaration]

    vsnprintf(line, sizeof(line), format, a);

    ^

/Users/kipeters/Dirac/src/cfun/general.c:608:5: note: include the header <stdio.h> or explicitly provide a declaration for 'vsnprintf'

 

I've checked this file and <stdio.h> is already included.  Any ideas?  I'm using the default gcc (clang 13.0.0) with openmpi.4.1.0.

 

regards,

 

-Kirk

 

Andre Gomes

unread,
Jul 4, 2022, 4:32:07 AM7/4/22
to dirac...@googlegroups.com
hi kirk,

i'm never using clang.

instead, i tend to install (a) gcc (from macports, gc11 on the latest i tried); and (b) anaconda (via the package installer) for most of the python stuff.

once at least gcc is installed i install mpich or openmpi using these macports compilers.

using brew to install the base compilers also works fine.

for intel macs, you can also install intel's oneapi and use their compilers too.

best,

andre



--
You received this message because you are subscribed to the Google Groups "dirac-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dirac-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dirac-users/B4ED6A6E-6401-43F1-B1AB-6BDFF85D1D90%40wsu.edu.
Reply all
Reply to author
Forward
0 new messages