[LLVMbugs] [Bug 16998] New: clang fails to compile code with LTO: gold complains: “atomic store operand must be power-of-two byte-sized integer”

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 25 17:10:03 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16998

            Bug ID: 16998
           Summary: clang fails to compile code with LTO: gold complains:
                    “atomic store operand must be power-of-two byte-sized
                    integer”
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: florian.weber at sfz-bw.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11096
  --> http://llvm.org/bugs/attachment.cgi?id=11096&action=edit
the code that makes gold abort

At first I want to apologize for the huge minimal-example with
boost-dependency, but I have not been able to reduce it any further. Removing
any line I tried resulted in the bug disappearing.


If I try to compile the attached code, clang (or to be precise: gold) aborts
with the following error-message during linking:

atomic store operand must be power-of-two byte-sized integer
  store atomic i1 true, i1* @_ZL11debug_level.0 seq_cst, align 1
 i1Broken module found, compilation aborted!
Stack dump:
0.      Running pass 'Function Pass Manager' on module 'ld-temp.o'.
1.      Running pass 'Module Verifier' on function '@main'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: linker command failed due to signal (use -v to see invocation)
make: *** [a.out] Fehler 254

This could be produced on two completely independent systems (Archlinux x86_64
and Fedora).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130826/d0bd8163/attachment.html>


More information about the llvm-bugs mailing list