building Dirac on a Mac

Skip to first unread message

Peterson, Kirk

Jul 3, 2022, 1:38:36 PMJul 3

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.






Andre Gomes

Jul 4, 2022, 4:32:07 AMJul 4
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.



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
To view this discussion on the web visit
Reply all
Reply to author
0 new messages