I tried to change the 'make' used :
I also removed all packages already compiled in PACKAGE ( in my case /srv/data/packages). Now it fails even sooner :
[1/10] Starting build of cwrappers-20180325
[1/10] Successfully built cwrappers-20180325
[2/10] Starting build of libfetch-2.38
[2/10] Successfully built libfetch-2.38
[3/10] Starting build of digest-20160304
[3/10] Successfully built digest-20160304
[4/10] Starting build of fetch-1.8nb3
[4/10] Failed to build fetch-1.8nb3
fetch is a prerequisite in my mk.conf ( FETCH_USING=fetch).
Interesting fact : When I compile, for instance, libfetch within pkgsrc ( whitout pbulk : cd /srv/pkgsrc/; /usr/pkg/bin/bmake pacakge or make package ), it does work.
nbqc1-osparc6# head -2 /root/nohup.out
===> Installing dependencies for libfetch-2.38
nbqc1-osparc6# tail -2 /root/nohup.out
===> Building binary package for libfetch-2.38
=> Creating binary package /srv/data/packages/All/libfetch-2.38.tgz
I guess it must be something in my pbulk.conf. If it were in my mk.conf I wouldn't be able to compile it outside of bulkbuild.