I ran dune clean
followed by:
sudo dtruss dune build hello.exe
when hello.ml
is just print_string "Hello world!\n"
I got a very very long log I ctrl-c’d after a couple of seconds, when it started outputting things about my conda env… hope this helps:
(base) adamhaber-s-macbookpro1:~ adamhaber$ sudo dtruss dune build hello.exe
dtrace: system integrity protection is on, some features will not be available
SYSCALL(args) = return
dtrace: 141192 dynamic variable drops with non-empty dirty list
open("/dev/dtracehelper\0", 0x2, 0xFFFFFFFFE4EC4100) = 3 0
ioctl(0x3, 0x80086804, 0x7FFEE4EC3F10) = 0 0
close(0x3) = 0 0
madvise(0x10B0FD000, 0x12000, 0x5) = 0 0
access("/AppleInternal/XBS/.isChrooted\0", 0x0, 0x0) = -1 Err#2
bsdthread_register(0x7FFF5F86D418, 0x7FFF5F86D408, 0x2000) = 1073742047 0
sysctlbyname(kern.bootargs, 0xD, 0x7FFEE4EC3360, 0x7FFEE4EC3358, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
ioctl(0x2, 0x4004667A, 0x7FFEE4EC2B74) = 0 0
mprotect(0x10B2B4000, 0x1000, 0x0) = 0 0
mprotect(0x10B2BB000, 0x1000, 0x0) = 0 0
mprotect(0x10B2BC000, 0x1000, 0x0) = 0 0
mprotect(0x10B2C3000, 0x1000, 0x0) = 0 0
mprotect(0x10B2B2000, 0x90, 0x1) = 0 0
mprotect(0x10B2C4000, 0x1000, 0x1) = 0 0
mprotect(0x10B2B2000, 0x90, 0x3) = 0 0
mprotect(0x10B2B2000, 0x90, 0x1) = 0 0
getpid(0x0, 0x0, 0x0) = 27235 0
stat64("/AppleInternal\0", 0x7FFEE4EC37D0, 0x0) = -1 Err#2
csops(0x6A63, 0x7, 0x7FFEE4EC3300) = -1 Err#22
proc_info(0x2, 0x6A63, 0xD) = 64 0
csops(0x6A63, 0x7, 0x7FFEE4EC2B50) = -1 Err#22
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
sigaltstack(0x7FFEE4EC4AB8, 0x0, 0x0) = 0 0
sigaction(0xB, 0x7FFEE4EC4A88, 0x0) = 0 0
lseek(0x0, 0x0, 0x1) = 5514 0
lseek(0x1, 0x0, 0x1) = 5514 0
lseek(0x2, 0x0, 0x1) = 5514 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
open_nocancel(".\0", 0x0, 0x1) = 3 0
fstat64(0x3, 0x7FFEE4EC3790, 0x0) = 0 0
fcntl_nocancel(0x3, 0x32, 0x7FFEE4EC3990) = 0 0
close_nocancel(0x3) = 0 0
stat64("/Users/adamhaber\0", 0x7FFEE4EC3700, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
sigaction(0x1A, 0x7FFEE4EC4928, 0x7FFEE4EC4950) = 0 0
open_nocancel(".\0", 0x0, 0x1) = 3 0
fstat64(0x3, 0x7FFEE4EC3840, 0x0) = 0 0
fcntl_nocancel(0x3, 0x32, 0x7FFEE4EC3A40) = 0 0
close_nocancel(0x3) = 0 0
stat64("/Users/adamhaber\0", 0x7FFEE4EC37B0, 0x0) = 0 0
ioctl(0x2, 0x4004667A, 0x7FFEE4EC4984) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
open_nocancel(".\0", 0x0, 0x1) = 3 0
fstat64(0x3, 0x7FFEE4EC3570, 0x0) = 0 0
fcntl_nocancel(0x3, 0x32, 0x7FFEE4EC3770) = 0 0
close_nocancel(0x3) = 0 0
stat64("/Users/adamhaber\0", 0x7FFEE4EC34E0, 0x0) = 0 0
open_nocancel("/Users/adamhaber\0", 0x1100004, 0x0) = 3 0
dtrace: error on enabled probe ID 2198 (ID 557: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 28
fstatfs64(0x3, 0x7FFEE4EC3D58, 0x0) = 0 0
getdirentries64(0x3, 0x7FEACD800000, 0x1000) = 4072 0
getdirentries64(0x3, 0x7FEACD800000, 0x1000) = 104 0
getdirentries64(0x3, 0x7FEACD800000, 0x1000) = 0 0
close_nocancel(0x3) = 0 0
open_nocancel("/Users\0", 0x1100004, 0x0) = 3 0
fstatfs64(0x3, 0x7FFEE4EC3D58, 0x0) = 0 0
getdirentries64(0x3, 0x7FEACD800000, 0x1000) = 208 0
getdirentries64(0x3, 0x7FEACD800000, 0x1000) = 0 0
close_nocancel(0x3) = 0 0
open_nocancel("/\0", 0x1100004, 0x0) = 3 0
fstatfs64(0x3, 0x7FFEE4EC3D58, 0x0) = 0 0
getdirentries64(0x3, 0x7FEACD800000, 0x1000) = 1192 0
getdirentries64(0x3, 0x7FEACD800000, 0x1000) = 0 0
close_nocancel(0x3) = 0 0
stat64("/Users/adamhaber/.config/dune/config\0", 0x7FFEE4EC46C0, 0x0) = -1 Err#2
chdir("/Users/adamhaber\0", 0x0, 0x0) = 0 0
open_nocancel(".\0", 0x0, 0x1) = 3 0
fstat64(0x3, 0x7FFEE4EC36F0, 0x0) = 0 0
fcntl_nocancel(0x3, 0x32, 0x7FFEE4EC38F0) = 0 0
close_nocancel(0x3) = 0 0
stat64("/Users/adamhaber\0", 0x7FFEE4EC3660, 0x0) = 0 0
mkdir("_build\0", 0x1FF, 0x0) = 0 0
open("_build/log\0", 0x1000601, 0x1B6) = 3 0
lseek(0x3, 0x0, 0x1) = 0 0
dtrace: error on enabled probe ID 2172 (ID 161: syscall::write:return): invalid kernel access in action #12 at DIF offset 68
sigprocmask(0x1, 0x7FFEE4EC484C, 0x7FFEE4EC483C) = 0x0 0
bsdthread_create(0x10AEC5DA0, 0x7FEACC600050, 0x70000ABD9000) = 180195328 0
thread_selfid(0x0, 0x0, 0x0) = 652535 0
bsdthread_create(0x10AEC5E20, 0x0, 0x70000AC5C000) = 180731904 0
thread_selfid(0x0, 0x0, 0x0) = 652536 0
bsdthread_create(0x10AEC5DA0, 0x7FEACC600140, 0x70000ACDF000) = 181268480 0
thread_selfid(0x0, 0x0, 0x0) = 652537 0
__pthread_sigmask(0x1, 0x70000AC5BF04, 0x0) = 0 0
open_nocancel(".\0", 0x0, 0x1) = 4 0
fstat64(0x4, 0x7FFEE4EC3700, 0x0) = 0 0
fcntl_nocancel(0x4, 0x32, 0x7FFEE4EC3900) = 0 0
close_nocancel(0x4) = 0 0
stat64("/Users/adamhaber\0", 0x7FFEE4EC3670, 0x0) = 0 0
psynch_cvsignal(0x10B0CBD00, 0x200, 0x0) = 256 0
psynch_cvwait(0x10B0CBD00, 0x100000100, 0x0) = 0 0
stat64("/Users/adamhaber/.opam/4.07.0/bin/nproc.opt\0", 0x7FFEE4EC4608, 0x0) = -1 Err#2
psynch_cvsignal(0x10B0CBD00, 0x10000000200, 0x100) = 257 0
psynch_cvwait(0x10B0CBD00, 0x200, 0x0) = 0 0
psynch_cvsignal(0x10B0CBD00, 0x20000000300, 0x200) = 257 0
psynch_cvwait(0x10B0CBD00, 0x20100000300, 0x200) = 0 0
stat64("/Users/adamhaber/.opam/4.07.0/bin/nproc\0", 0x7FFEE4EC4608, 0x0) = -1 Err#2
stat64("/Users/adamhaber/miniconda3/bin/nproc.opt\0", 0x7FFEE4EC4608, 0x0) = -1 Err#2
stat64("/Users/adamhaber/miniconda3/bin/nproc\0", 0x7FFEE4EC4608, 0x0) = -1 Err#2
stat64("/Users/adamhaber/miniconda3/condabin/nproc.opt\0", 0x7FFEE4EC4608, 0x0) = -1 Err#2
I can append longer outputs if it helps…