Dear all, i would like to use runQ in my code, but get linking errors during the build. I have attached a minimal example. When building (with stack) and using LLVM 8.0.1, GCC 7.4.0 and ld 2.31.1.20180828-lp151.2, i get
Data.Array.Accelerate.LLVM.Native.Plugin: linking module ‘Math’ with:
/user/seeber/.cache/accelerate/accelerate-llvm-1.3.0.0/accelerate-llvm-native-1.3.0.0/llvm-hs-8.0.0/x86_64-unknown-linux-gnu/skylake-avx512/rel/meepcbe253e948d4835571fe7b4a933a1100
5889f64abcddc2704e46f236b607b0a4.o
/usr/bin/ld.bfd: /user/seeber/.cache/accelerate/accelerate-llvm-1.3.0.0/accelerate-llvm-native-1.3.0.0/llvm-hs-8.0.0/x86_64-unknown-linux-gnu/skylake-avx512/rel/meepcbe253e948d483557
1fe7b4a933a11005889f64abcddc2704e46f236b607b0a4.o: in function `foldAllP1_cbe253e948d4835571fe7b4a933a11005889f64abcddc2704e46f236b607b0a4':
:(.text+0x220): multiple definition of `foldAllP1_cbe253e948d4835571fe7b4a933a11005889f64abcddc2704e46f236b607b0a4'; /user/seeber/.cache/accelerate/accelerate-llvm-1.3.0.0/accelerate
-llvm-native-1.3.0.0/llvm-hs-8.0.0/x86_64-unknown-linux-gnu/skylake-avx512/rel/meepcbe253e948d4835571fe7b4a933a11005889f64abcddc2704e46f236b607b0a4.o::(.text+0x220): first defined he
re
(... more linking errors)
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
-- While building package test-0.0.0.1 using:
/data/WiP/Git/LinkingTest/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1/setup/setup --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 build lib:test --ghc-opti
ons " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Could anyone give me a tip what is causing this problem and how to solve it?
Thank you in advance and best wishes
Phillip