Cannot compile sample file with corebuild installed with asdf

I think it is related to this issue (suggested solutions in the linked comment): ANN: dune (jbuilder) 1.0+beta18