I am trying to cross compile llvm from windows using cygwin to a linux like x86 architecture. I am using cmake of windows from cygwin becuase I had some issues with path while using cygwin cmake. I am facing the following error,
make[3]: *** No rule to make target 'NATIVE/bin/llvm-min-tblgen.exe', needed by 'include/llvm/TargetParser/RISCVTargetParserDef.inc'. Stop.
make[2]: *** [CMakeFiles/Makefile2:6501: include/llvm/TargetParser/CMakeFiles/RISCVTargetParserTableGen.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:15989: tools/llc/CMakeFiles/llc.dir/rule] Error 2
make: *** [Makefile:4648: llc] Error 2
Can you suggest some ways to solve this?
while cross compiling NATIVE/bin/llvm-min-tblgen.exe is generated natively using the compilers of the host system and in my case it was using cross compilers itself and hence it was generating NATIVE/bin/llvm-min-tblgen which cause the search for .exe to fail. so my workaround was to use vs code to generate native components and then add them in appropriate directories.