Skip to content

Instantly share code, notes, and snippets.

@atamis
Created September 5, 2011 17:45
Show Gist options
  • Save atamis/1195545 to your computer and use it in GitHub Desktop.
Save atamis/1195545 to your computer and use it in GitHub Desktop.
Errors faced when attempting to compile https://github.com/FalconNL/mc2obj
$ ghc mc2obj.hs
mc2obj.hs:10:0:
Failed to load interface for `ObjExport':
Use -v to see a list of the files searched for.
$ ghc ObjExport.hs
ObjExport.hs:63:17:
Couldn't match expected type `BC.ByteString'
against inferred type `bytestring-0.9.1.7:Data.ByteString.Internal.ByteString'
In the expression: getArray $ navigate ["Level", "Blocks"] nbt
In the expression:
(getArray $ navigate ["Level", "Blocks"] nbt,
getArray $ navigate ["Level", "Data"] nbt)
In the definition of `chunkData':
chunkData nbt
= (getArray $ navigate ["Level", "Blocks"] nbt,
getArray $ navigate ["Level", "Data"] nbt)
where
getArray ~(Just (TAG_Byte_Array a)) = a
$ ghc Region.hs
Region.hs:53:66:
Couldn't match expected type `bytestring-0.9.1.7:Data.ByteString.Lazy.Internal.ByteString'
against inferred type `BL.ByteString'
In the second argument of `(.)', namely `BL.fromChunks . return'
In the second argument of `(.)', namely
`decompress . BL.fromChunks . return'
In the second argument of `(.)', namely
`BL.toChunks . decompress . BL.fromChunks . return'
@indi ➜ mc2obj rvm:(-.rvm-) git:(master) ✗ ghc BlockDefs.hs
compilation IS NOT required
BlockDefs.o: In function `rlv_info':
(.text+0x25b4): undefined reference to `containerszm0zi3zi0zi0_DataziIntSet_fromAscList_closure'
BlockDefs.o: In function `s4ao_info':
(.text+0x266c): undefined reference to `containerszm0zi3zi0zi0_DataziIntSet_member_closure'
BlockDefs.o: In function `se3L_info':
(.text+0x395a6): undefined reference to `containerszm0zi3zi0zi0_DataziIntMap_fromList_closure'
BlockDefs.o: In function `se3L_info':
(.text+0x395e7): undefined reference to `__stginit_containerszm0zi3zi0zi0_DataziIntMap_'
BlockDefs.o: In function `se3L_info':
(.text+0x395f3): undefined reference to `__stginit_containerszm0zi3zi0zi0_DataziIntSet_'
BlockDefs.o: In function `rlv_srt':
(.data+0x888): undefined reference to `containerszm0zi3zi0zi0_DataziIntSet_fromAscList_closure'
BlockDefs.o: In function `rlt_srt':
(.data+0x8c8): undefined reference to `containerszm0zi3zi0zi0_DataziIntSet_member_closure'
BlockDefs.o: In function `se4c_closure':
(.data+0x45f0): undefined reference to `containerszm0zi3zi0zi0_DataziIntMap_fromList_closure'
/usr/lib/ghc-6.12.3/libHSrtsmain.a(Main.o): In function `main':
(.text+0x1): undefined reference to `ZCMain_main_closure'
/usr/lib/ghc-6.12.3/libHSrtsmain.a(Main.o): In function `main':
(.text+0x6): undefined reference to `__stginit_ZCMain'
collect2: ld returned 1 exit status
@indi ➜ mc2obj rvm:(-.rvm-) git:(master) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment