Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmpxchg Error #10

Closed
JaredCrean2 opened this issue Jan 22, 2017 · 1 comment · Fixed by #36
Closed

cmpxchg Error #10

JaredCrean2 opened this issue Jan 22, 2017 · 1 comment · Fixed by #36

Comments

@JaredCrean2
Copy link

I built sys-plus.bc according to the instructions in the blog post, but when I ran llvm-cbe on it, I got the following error:

jared@jared-r15:~/static_compile/test4$ ~/build/llvm/build/Debug+Asserts/bin/llvm-cbe sys-plus.bc -o sys-plus.cbe.c
C Writer does not know about   %rs.i = cmpxchg i64* %23, i64 0, i64 1 acq_rel acquire, !dbg !760649UNREACHABLE executed at /home/jared/build/llvm/projects/llvm-cbe/lib/Target/CBackend/CBackend.h:242!
0  llvm-cbe        0x00000000023b9459 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 59
1  llvm-cbe        0x00000000023b97b1
2  llvm-cbe        0x00000000023b8144
3  libpthread.so.0 0x00007f764f216390
4  libc.so.6       0x00007f764e3cc428 gsignal + 56
5  libc.so.6       0x00007f764e3ce02a abort + 362
6  llvm-cbe        0x000000000239d3a0
7  llvm-cbe        0x0000000000c4eda4
8  llvm-cbe        0x0000000000c75add
9  llvm-cbe        0x0000000000c708c1
10 llvm-cbe        0x0000000000c6b24d
11 llvm-cbe        0x0000000000c69649
12 llvm-cbe        0x0000000000c555c5
13 llvm-cbe        0x0000000000c556a8
14 llvm-cbe        0x0000000000c557c2
15 llvm-cbe        0x0000000000c665c3
16 llvm-cbe        0x0000000000c70c9d
17 llvm-cbe        0x0000000000c6b4b1
18 llvm-cbe        0x0000000000c69649
19 llvm-cbe        0x0000000000c555c5
20 llvm-cbe        0x0000000000c556a8
21 llvm-cbe        0x0000000000c557c2
22 llvm-cbe        0x0000000000c5f394
23 llvm-cbe        0x0000000000c70473
24 llvm-cbe        0x0000000000c6af95
25 llvm-cbe        0x0000000000c5e752
26 llvm-cbe        0x0000000000c5e40d
27 llvm-cbe        0x0000000000c5e29b
28 llvm-cbe        0x0000000000c4f59e
29 llvm-cbe        0x00000000022ee21e llvm::FPPassManager::runOnFunction(llvm::Function&) + 330
30 llvm-cbe        0x00000000022ee3a1 llvm::FPPassManager::runOnModule(llvm::Module&) + 133
31 llvm-cbe        0x00000000022ee6da
32 llvm-cbe        0x00000000022eed92 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 264
33 llvm-cbe        0x00000000022eef97 llvm::legacy::PassManager::run(llvm::Module&) + 39
34 llvm-cbe        0x0000000000c366ec
35 llvm-cbe        0x0000000000c35858 main + 276
36 libc.so.6       0x00007f764e3b7830 __libc_start_main + 240
37 llvm-cbe        0x0000000000c33309 _start + 41
Stack dump:
0.	Program arguments: /home/jared/build/llvm/build/Debug+Asserts/bin/llvm-cbe sys-plus.bc -o sys-plus.cbe.c 
1.	Running pass 'Function Pass Manager' on module 'sys-plus.bc'.
2.	Running pass 'C backend' on function '@julia_lock_4088'
Aborted (core dumped)

This used LLVM 3.7.1, built according to the readme from this repo. I successfully ran the selectionsort example, so I think llvm-cbe was built correctly.
Julia versioninfo (branch jn/release-0.5-fix-compile-all):

Julia Version 0.5.1-pre+32
Commit 64b4df2* (2016-12-12 19:49 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, broadwell)
@dmikushin
Copy link

Same error here, any luck fixing?

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

Successfully merging a pull request may close this issue.

2 participants