Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Trying to compile on Arch Linux with no luck... #15

Open
k8ieone opened this issue Sep 15, 2019 · 6 comments
Open

Trying to compile on Arch Linux with no luck... #15

k8ieone opened this issue Sep 15, 2019 · 6 comments

Comments

@k8ieone
Copy link

k8ieone commented Sep 15, 2019

I keep hitting an error:
/usr/bin/ld: CMakeFiles/gbeinterp.dir/gbe_bin_interpreter.cpp.o:(.data.rel+0x0): undefined reference to `llvm::DisableABIBreakingChecks'
collect2: error: ld returned 1 exit status
make[2]: *** [backend/src/CMakeFiles/gbeinterp.dir/build.make:84: backend/src/libgbeinterp.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:148: backend/src/CMakeFiles/gbeinterp.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

@k8ieone
Copy link
Author

k8ieone commented Sep 17, 2019

Ok, I found a patch for LLVM 8, but I keep getting segmentation faults in hashcat.

@ruiling
Copy link

ruiling commented Sep 19, 2019

new LLVM version may not work. you can either try old llvm version suggested by Beignet or try intel-compute-runtime (https://github.com/intel/compute-runtime)

@k8ieone
Copy link
Author

k8ieone commented Sep 23, 2019

Thanks, I will try to use an older version. Also thanks for recommending compute-runtime, but my product is not compatible.

@michaellass
Copy link

@satcom886 I revived the beignet-git package in the Arch User Repository. You may use that to build beignet from source. There are two things to note:

  1. I decided to build with LLVM 7 instead of LLVM 9 because otherwise I get failing utests. This means however that you need to also build LLVM and Clang (llvm70 and clang70 packages in the AUR) which can take quite some time even on newer machines.
  2. I included a patch for testing that solves segfaults in certain situations for me. You can enable it by uncommenting the line that applies GBE-let-GenRegister-reg-never-return-uninitialized-m.patch. This could also help you with hashcat.

With GBE-let-GenRegister-reg-never-return-uninitialized-m.patch applied and built against LLVM 7, beignet passes all utests on my IvyBridge system and hashcat -b at least works until it approaches SHA-512.

@k8ieone
Copy link
Author

k8ieone commented Dec 3, 2019

@michaellass Thanks! I will try to do that.

@k8ieone
Copy link
Author

k8ieone commented Dec 7, 2019

@michaellass OK, it compiled without any problems! And it seems Hashcat works (at least the benchmark does until it gets to hashmode 1700 (SHA2-512), I haven't tried anything else)! Since you own the AUR package now, can I ask you to remove the conflict between beignet-git and intel-opencl-runtime? intel-opencl-runtime is a CPU only implementation and it seems the ICD files are named differently, so there shouldn't be any conflict.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants