I ran the pkg_comp auto command on macOS Sierra 10.12.5:
and the pbulk build failed on the very first package (cwrappers):
Resolving...
Building...
Initialisation complete.
[1/417] Starting build of cwrappers-20170611
[1/417] Failed to build cwrappers-20170611
Building pkg_summary...
Building SHA512...
Build reports...
Sending report mail...
Uploading report...
Uploading packages...
pkg_comp: I: Destroying sandbox
The pbulk log shows that it built the package successfully, but the problem was in installing it; the following appears in bulklog/cwrappers-20170611/package.log:
=> Creating binary package /pkg_comp/work/pkg/pkgtools/cwrappers/work/.packages/cwrappers-20170611.tgz
pkg_add: A different version of cwrappers-20170611 is already installed: cwrappers-20170112
pkg_add: 1 package addition failed