Hello,

I have recently joined the effort to work on apache/daffodil. I am trying to 
work an open issue; however, I am running into compilation errors on a clone of 
apache/daffodil that I have made no changes to. I am working on a Windows 
computer and the steps I have followed are listed below:

Steps:

  1.  Fork apache/daffodil
  2.  Clone the forked repository to local machine
  3.  Follow the instructions in the BUILD.md file (all steps below were done 
in a MSYS2 window)
     *   Run "pacman -S clang diffutils gcc git make pkgconf"                   
                  -- Succeeded
     *   Run "export CC=clang AR=llvm-ar"                                       
                                -- Succeeded
     *   Run "git clone -b v3.3 https://github.com/michaelrsweet/mxml.git

               unset CC AR

               cd mxml

               ./configure --prefix=/usr --disable-shared --disable-threads

               make

               make install

"                                                                               
                                                      --Succeeded

     *   Run "export MSYS2_PATH_TYPE=inherit"                                   
                         --Succeeded

Error(s):

  1.  Powershell/IDE Compiling
When I run "sbt compile" within an IDE that has the daffodil directory open, 
the error I receive is:
"(daffodil-runtime2 / Compile / cCompile) java.io.IOException: Cannot run 
program "cc": CreateProcess error=2, The system cannot find the file specified"

I had set my environment variable "CC" to  "clang" and "AR" to "llvm-ar", 
however I receive the same error as before but the "cc" is changed to "clang" 
in the error message.

I have downloaded LLVM-11.0.0-win64 in an attempt to have clang downloaded but 
I do not think I have done this correctly since "clang" is not a recognized 
command in Powershell.


  1.  MSYS2 Compiling
When I run "sbt compile" from the MSYS2 window, I receive a "sbt command not 
found". As such, I had added sbt to the PATH variable and received these errors:
/c/Program Files (x86)/sbt/bin/sbt: line 453: java: command not found

copying runtime jar...

mkdir: cannot create directory '': No such file or directory

/c/Program Files (x86)/sbt/bin/sbt: line 460: java: command not found

/c/Program Files (x86)/sbt/bin/sbt: line 220: java: command not found

Has anyone ran into similar issues? I appreciate any help and apologize for any 
novice mistakes I have made.

Thanks!

Best,
Varun

Reply via email to