[LLVMbugs] [Bug 2846] New: LLVM does not build (Linux AMD64 GCC 3.4.6)

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Oct 1 07:09:11 PDT 2008


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

           Summary: LLVM does not build (Linux AMD64 GCC 3.4.6)
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: Axel.Naumann at cern.ch
                CC: llvmbugs at cs.uiuc.edu


I tried to build LLVM with GCC 3.4.6 on a Linux 64bit installation, today's
trunk. Relevant cmake flags of the out-of-source-build:
CMAKE_BUILD_TYPE: RelWithDebInfo
LLVM_TARGETS_TO_BUILD: CBackend;CppBackend;X86

Here are the issues I encountered:

/build/axel/build/llvm/src/llvm_svn/lib/VMCore/AsmWriter.cpp: In member
function `int <unnamed>::SlotTracker::getGlobalSlot(const llvm::GlobalValue*)':
/build/axel/build/llvm/src/llvm_svn/lib/VMCore/AsmWriter.cpp:388: warning:
converting of negative value `-0x00000000000000001' to `unsigned int'
/build/axel/build/llvm/src/llvm_svn/lib/VMCore/AsmWriter.cpp: In member
function `int <unnamed>::SlotTracker::getLocalSlot(const llvm::Value*)':
/build/axel/build/llvm/src/llvm_svn/lib/VMCore/AsmWriter.cpp:400: warning:
converting of negative value `-0x00000000000000001' to `unsigned int'

/build/axel/build/llvm/src/llvm_svn/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:
In function `llvm::SDValue getMemcpyLoadsAndStores(llvm::SelectionDAG&,
llvm::SDValue, llvm::SDValue, llvm::SDValue, uint64_t, unsigned int, bool,
const llvm::Value*, uint64_t, const llvm::Value*, uint64_t)':
/build/axel/build/llvm/src/llvm_svn/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:2929:
warning: converting of negative value `-0x00000000000000001' to `uint64_t'
/build/axel/build/llvm/src/llvm_svn/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:
In function `llvm::SDValue getMemmoveLoadsAndStores(llvm::SelectionDAG&,
llvm::SDValue, llvm::SDValue, llvm::SDValue, uint64_t, unsigned int, bool,
const llvm::Value*, uint64_t, const llvm::Value*, uint64_t)':
/build/axel/build/llvm/src/llvm_svn/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:2987:
warning: converting of negative value `-0x00000000000000001' to `uint64_t'

/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp: In
constructor `llvm::X86InstrInfo::X86InstrInfo(llvm::X86TargetMachine&)':
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:212:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:216:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:303:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:310:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:431:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:436:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:638:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:642:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp: In member
function `llvm::MachineInstr*
llvm::X86InstrInfo::foldMemoryOperand(llvm::MachineFunction&,
llvm::MachineInstr*, unsigned int, llvm::SmallVector<llvm::MachineOperand,
4u>&) const':
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:1989:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp: In member
function `virtual bool
llvm::X86InstrInfo::canFoldMemoryOperand(llvm::MachineInstr*,
llvm::SmallVectorImpl<unsigned int>&) const':
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:2156:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp: In member
function `virtual bool
llvm::X86InstrInfo::unfoldMemoryOperand(llvm::MachineFunction&,
llvm::MachineInstr*, unsigned int, bool, bool,
llvm::SmallVectorImpl<llvm::MachineInstr*>&) const':
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:2167:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp: In member
function `virtual bool
llvm::X86InstrInfo::unfoldMemoryOperand(llvm::SelectionDAG&, llvm::SDNode*,
llvm::SmallVectorImpl<llvm::SDNode*>&) const':
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:2273:
warning: cast to pointer from integer of different size
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp: In member
function `virtual unsigned int
llvm::X86InstrInfo::getOpcodeAfterMemoryUnfold(unsigned int, bool, bool)
const':
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86InstrInfo.cpp:2351:
warning: cast to pointer from integer of different size

/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86TargetAsmInfo.cpp:41:
error: duplicate explicit instantiation of `bool
llvm::X86TargetAsmInfo<BaseTAI>::ExpandInlineAsm(llvm::CallInst*) const [with
BaseTAI = llvm::TargetAsmInfo]'
/build/axel/build/llvm/src/llvm_svn/lib/Target/X86/X86TargetAsmInfo.cpp:43:
error: duplicate explicit instantiation of `bool
llvm::X86TargetAsmInfo<BaseTAI>::LowerToBSwap(llvm::CallInst*) const [with
BaseTAI = llvm::TargetAsmInfo]'
gmake[2]: ***
[lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetAsmInfo.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....

Could the compilation warnings and especially the error be fixed? Thanks!

Cheers, Axel.


-- 
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