mikeizbicki / HLearn

Homomorphic machine learning
Other
1.62k stars 138 forks source link

Build issues. #72

Open agarwalayush opened 8 years ago

agarwalayush commented 8 years ago

Hi, I am trying to build this project (master branch). I am on ghc 7.10. I am using sandbox, and I think there is no issues with installation. While building I get these errors Can anybody please help.

/tmp/ghc28604_0/ghc_6.s: Assembler messages:

/tmp/ghc28604_0/ghc_6.s:117:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getLibDir4_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:163:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getLibDir2_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:183:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getLibDir1_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:203:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getLibDir_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:249:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getDataDir4_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:295:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getDataDir2_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:315:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getDataDir1_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:335:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getDataDir_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:362:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getDataFileName1_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:382:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getDataFileName_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:428:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getLibexecDir4_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:474:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getLibexecDir2_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:494:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getLibexecDir1_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:514:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getLibexecDir_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:560:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getSysconfDir4_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:606:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getSysconfDir2_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:626:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getSysconfDir1_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:646:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getSysconfDir_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:692:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getBinDir4_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:738:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getBinDir2_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:758:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getBinDir1_info$def' {.text section}

/tmp/ghc28604_0/ghc_6.s:778:0:
     Error: can't resolve `.rodata' {.rodata section} - `PathszuHLearn_getBinDir_info$def' {.text section}
mikeizbicki commented 8 years ago

I've seen similar errors before when using a version of llvm that's not compatible with the version of ghc. What version of llvm are you using? You can use the following command to check:

$ opt --version
LLVM (http://llvm.org/):
  LLVM version 3.5.2
  Optimized build with assertions.
  Built Apr 22 2015 (15:50:13).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: penryn