The build is successful in my Mac, but fails when it is done on Ubuntu 20.04. The error message is like this.
ghc-pkg: "the input" (line 1, column 1):
unexpected character in input '\NUL'
expecting field or section name
damlc: callProcess: /home/ubuntu/.daml/sdk/1.17.1/damlc/lib/resources/ghc-pkg "recache" "--global-package-db=.daml/package-database/1.14/package.conf.d" "--expand-pkgroot" (exit 1): failed
Are you getting this on a clean project? I suspect the issue may come from generating some files before, perhaps on your Mac. Saw similar errors when tried to build files having UTF-16 encoding by accident instead of the UTF-8 that was expected
Very likely. We clone the da-marketplace and add some new templates for testing. We code this in Mac and it works well in Mac, but fails in using this in Ubuntu (with daml build). Any suggestion that we can get it through? Thanks again.
Hi @cocreature Thanks for this. I also did the same and found no problems. Now I narrow this down to the Mac we are using vs. Ubuntu, as Mate has suggested whether it is on the UTF encoding problem.
Will let the team know once we identify it’s the UTF encoding problem.