Your error file points to two problems:
custom_postgui.hal:5: Warning: File contains DOS-style line endings.
custom_postgui.hal:16: Pin 'halui.mdi-command-00' does not exist
For the first problem use the utility dos2unix. It's done on the command line. To find out the options for using that utility, type man dos2unix
For the second error, you need to addf the halui.mdi-command-00 to your custom_postgui.hal file.
Mark