GHC support for aarch64
Hi GHC_Community,
We are trying to compile GHC for aarch64 natively.
We followed the below steps:
- Cross compiled aarch64 GHC in x64 machine and generated bootstrap.
- In aarch64 machine installed bootstrap in standard path /usr/lib and /usr/bin.
- Natively compiled GHC using bootstrap and its working as expected.
Now coming to the issue.
- In aarch64 machine installed bootstrap in local path </home/GHC_Bootstrap>
- Exported binary, library and headerfile path using environment variable "PATH, LD_LIBRARY_PATH, CPPFLAGS"
- Started compiling GHC using local path bootstrap and getting the following error:
ghc: ghcversion.h missing; tried: /usr/lib/ghc-8.8.3/process-1.6.8.0/include/ghcversion.h, /usr/lib/ghc-8.8.3/unix-2.7.2.2/include/ghcversion.h, /usr/lib/ghc-8.8.3/time-1.9.3/include/ghcversion.h, /usr/lib/ghc-8.8.3/bytestring-0.10.10.0/include/ghcversion.h, /usr/lib/ghc-8.8.3/base-4.13.0.0/include/ghcversion.h, /usr/lib/ghc-8.8.3/integer-gmp-1.0.2.0/include/ghcversion.h, /usr/lib/ghc-8.8.3/include/ghcversion.h
utils/genprimopcode/ghc.mk:19: utils/genprimopcode/dist/package-data.mk: No such file or directory
make[1]: *** [utils/ghc-cabal/ghc.mk:56: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Error 1
make: *** [Makefile:124: all] Error 2
- GHC is not able to find out the header file in non-standard path even though I have set CPPFLAGS environment variable.
I have also tried giving flag with configuration but no luck.
Did I have miss something here? Is there any flag in configure or some mk file which can be used for setting non standard path for header files which can be picked by GHC during build?
Your valuable comment will be really helpful.
Thanks in advance