[LLVMbugs] [Bug 12424] New: compile of compiler-rt/lib/atomic.c fails on undeclared identifier __uint128_t

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 30 11:22:03 PDT 2012


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

             Bug #: 12424
           Summary: compile of compiler-rt/lib/atomic.c fails on
                    undeclared identifier __uint128_t
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nolanw_commerce at willnolan.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Straight build from svn trunk as per the instructions on the home page results
in:

/home/wnolan/clang.src/llvm/projects/compiler-rt/lib/atomic.c:149:3: error: use
of undeclared identifier '__uint128_t'
  LOCK_FREE_CASES();
  ^
/home/wnolan/clang.src/llvm/projects/compiler-rt/lib/atomic.c:137:26: note:
expanded from macro 'LOCK_FREE_CASES'
        LOCK_FREE_ACTION(__uint128_t);\
                         ^
/home/wnolan/clang.src/llvm/projects/compiler-rt/lib/atomic.c:147:8: note:
expanded from macro 'LOCK_FREE_ACTION'
    *((type*)dest) = __atomic_load((_Atomic(type)*)src, model);\
       ^

Seems like "configure" should have been able to nip this in the bud early in
the process, but it passed.  Note that "configure" does check for {u}int64_t:

checking for int64_t... yes
checking for uint64_t... yes

As of a few months ago trunk used to build cleanly on the same host.  Sorry I
can't pin down the rev #'s...

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list