ページ 11

公式Whitespaceのビルド

Posted: 2014年2月10日(月) 15:05
by みけCAT
Windows Vista Home Premium SP2 32ビット
Intel(R) Core(TM)2Duo T8100 @2.10GHz 2.10GHz
RAM 4.00GB
Haskell Platform 2013.2.0.0
The Glorious Glasgow Haskell Compilation System, version 7.6.3

Download Whitespace
ここからVersion0.3のHaskell Sourceをダウンロードして解凍、makeしようとしたのですが、

コード:

YUKI.N>make
ghc -c -O -fvia-C Tokens.hs -o Tokens.o

on the commandline: Warning:
    The -fvia-C flag does nothing; it will be removed in a future GHC release
ghc -c -O -fvia-C VM.hs -o VM.o

on the commandline: Warning:
    The -fvia-C flag does nothing; it will be removed in a future GHC release

VM.hs:3:1:
    Failed to load interface for `IO'
    It is a member of the hidden package `haskell98-2.0.0.2'.
    Use -v to see a list of the files searched for.
Makefile:24: recipe for target 'VM.o' failed
mingw32-make.exe: *** [VM.o] Error 1

YUKI.N>
というエラーが出てしまいます。(YUKI.N>はプロンプト)

どのようにすれば無事ビルドすることができるでしょうか?
それともこの環境では無理でしょうか?
よろしくお願いします。

Re: 公式Whitespaceのビルド

Posted: 2014年2月10日(月) 19:45
by みょん
Makefileの6行目を以下のように書き換えてください。
こちらの環境ではこれで上手く行きます。

コード:

- OPTS = -O -fvia-C
+ OPTS = -O -fvia-C -package haskell98 -hide-package base

Re: 公式Whitespaceのビルド

Posted: 2014年2月10日(月) 20:23
by みけCAT

コード:

on the commandline: Warning:
    The -fvia-C flag does nothing; it will be removed in a future GHC release
というメッセージは出ましたが、無事ビルドできました。
ありがとうございます。