FreeBSD 10.3을 실행하는 컴퓨터에서 GHC 마스터 소스 코드를 컴파일하려했지만 컴파일 오류가 발생했습니다.GHC 소스 코드를 컴파일 할 때 이러한 컴파일 오류를 해결하는 방법
1. $ git clone --recursive git://git.haskell.org/ghc.git
2. $ ./boot
3. $ ./configure --prefix=$HOME
4. $ gmake -j2
을 그리고 컴파일 오류 : 나는 단계를 수행 않았다 내가 먼저 내 CC
환경 값으로 GCC를 사용
Common.hsc: In function 'main':
Common.hsc:225:16: error: 'OFDEL' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:225:16: note: each undeclared identifier is reported only once for each function it appears in
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:226:16: error: 'OFILL' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:227:16: error: 'NL0' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:228:16: error: 'NL1' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:229:16: error: 'CR0' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:230:16: error: 'CR1' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:231:16: error: 'CR2' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:232:16: error: 'CR3' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:234:16: error: 'TAB1' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:235:16: error: 'TAB2' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:237:16: error: 'BS0' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:238:16: error: 'BS1' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:239:16: error: 'VT0' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:240:16: error: 'VT1' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:241:16: error: 'FF0' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
^
Common.hsc:242:16: error: 'FF1' undeclared (first use in this function)
/root/test/ghc/inplace/lib/template-hsc.h:38:10: note: in definition of macro 'hsc_const'
if ((x) < 0) \
, 다음 clang
로 전환뿐만 아니라 실패했습니다. ghc8.0, alex, happy 등의 전제 조건이 모두 설치되어 있고 최신 gcc가 설치되어 있습니다.