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がインストールされています。