From: <cod...@go...> - 2009-02-20 04:37:19
|
Comment #4 on issue 7 by konn.jinro: HOC build errors http://code.google.com/p/hoc/issues/detail?id=7 Hello. In my environment (iBook G4, OSX 10.5.6, GHC 6.10.1), building phase fails in another way. 1. Check out from svn 2. cd hoc-read-only/hoc/ 3. ln -s ../libffi ./libffi-src 4. Modify HOC.Exception (change "import Control.Exception" to "import Control.OldException") 5. ./autogen.sh && ./configure && make Then, it seems to be successful until "[27 of 31] Compiling HOC.Utilities ( HOC/Utilities.hs, build/objects/HOC/Utilities.o )". But when start compiling "HOC.StdArgumentTypes", fails with following messages. [28 of 31] Compiling HOC.StdArgumentTypes ( HOC/StdArgumentTypes.hs, build/objects/HOC/StdArgumentTypes.o ) Loading package ghc-prim ... linking ... done. Loading package integer ... linking ... done. Loading package base ... linking ... done. Loading package unix-2.3.1.0 ... linking ... done. GHCi runtime linker: fatal error: I found a duplicate definition for symbol _ffi_call whilst processing object file ../HOC_cbits/HOC_cbits.o This could be caused by: * Loading two different object files which export the same symbol * Specifying the same object file twice on the GHCi command line * An incorrect `package.conf' entry, causing some object to be loaded twice. GHCi cannot safely continue in this situation. Exiting now. Sorry. make[1]: *** [ghcmake.build-stamp] Error 1 In directory InterfaceGenerator mkdir -p build ghc --make Main.hs \ -fPIC \ -odir build -hidir build \ -package-conf ../inplace.conf \ -o ifgen ../inplace.conf: openBinaryFile: does not exist (No such file or directory) make[1]: *** [ifgen] Error 1 In directory InterfaceGenerator2 mkdir -p build ghc --make Main.hs \ -odir build -hidir build \ -package-conf ../inplace.conf \ -o hoc-ifgen ../inplace.conf: openBinaryFile: does not exist (No such file or directory) make[1]: *** [hoc-ifgen] Error 1 In directory Bindings ../InterfaceGenerator/ifgen make[1]: ../InterfaceGenerator/ifgen: Command not found make[1]: *** [ifgen-output/Foundation.hs] Error 127 In directory Foundation ln -sf ../Bindings/ifgen-output/Foundation.hs . ln -sf ../Bindings/ifgen-output/Foundation . test ! -d ../Bindings/ifgen-output/GNUstepBase || \ ln -sf ../Bindings/ifgen-output/GNUstepBase . test ! -r ../Bindings/ifgen-output/GNUstepBase.hs || \ ln -sf ../Bindings/ifgen-output/GNUstepBase.hs . mkdir -p build/objects mkdir -p build/imports ghc --make Foundation.hs \ -O -fasm \ -odir build/objects \ -package-name Foundation \ -hidir build/imports \ -package-conf ../inplace.conf \ -fglasgow-exts -fth\ -package unix \ on the commandline: Warning: -fth is deprecated: use -XTemplateHaskell or pragma {-# LANGUAGE TemplateHaskell#-} instead ../inplace.conf: openBinaryFile: does not exist (No such file or directory) make[1]: *** [ghcmake.build-stamp] Error 1 In directory AppKit ln -sf ../Bindings/ifgen-output/Cocoa.hs . ln -sf ../Bindings/ifgen-output/AppKit.hs . ln -sf ../Bindings/ifgen-output/AppKit . test ! -d ../Bindings/ifgen-output/GNUstepGUI || \ ln -sf ../Bindings/ifgen-output/GNUstepGUI . test ! -r ../Bindings/ifgen-output/GNUstepGUI.hs || \ ln -sf ../Bindings/ifgen-output/GNUstepGUI.hs . mkdir -p build/objects mkdir -p build/imports ghc --make AppKit.hs \ -O -fasm \ -package-name AppKit \ -odir build/objects \ -hidir build/imports \ -package-conf ../inplace.conf \ -fglasgow-exts -fth \ -package unix \ on the commandline: Warning: -fth is deprecated: use -XTemplateHaskell or pragma {-# LANGUAGE TemplateHaskell#-} instead ../inplace.conf: openBinaryFile: does not exist (No such file or directory) make[1]: *** [ghcmake.build-stamp] Error 1 In directory Tools mkdir -p build/hocwrap ghc --make HOCWrap.hs \ -fglasgow-exts \ -o hocwrap \ -odir build/hocwrap -hidir build/hocwrap \ -package-conf ../inplace.conf ../inplace.conf: openBinaryFile: does not exist (No such file or directory) make[1]: *** [hocwrap] Error 1 In directory docs pod2html \ --index \ --header \ --title="HOC: a Haskell to Objective-C bridge" \ --outfile "HOC.html" \ Introduction.pod Quick_Start.pod Mapping_Types.pod Accessing_Other_Frameworks.pod Creating_an_Objective-C_Class_in_Haskell.pod Tools.pod Appendices.pod -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings |