[LLVMbugs] [Bug 4525] New: llvm-gcc does not compile

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 9 14:04:23 PDT 2009


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

           Summary: llvm-gcc does not compile
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: pramach2 at uiuc.edu
                CC: llvmbugs at cs.uiuc.edu


Hi,
I am trying to compile a version of llvm-gcc that I just checked out of the svn
repository, with --enable-llvm pointing to the latest llvm version checked out
from the repository, and I am having problems. I get the following error

c++ -c -g -DIN_GCC -W -Wall -Wwrite-strings -pedantic -Wno-long-long
-Wno-variadic-macros -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H
-Wno-unused -DTARGET_NAME=\"sparc-sun-solaris2.11\" -I. -I.
-I../../llvm-gcc-4.2/gcc -I../../llvm-gcc-4.2/gcc/.
-I../../llvm-gcc-4.2/gcc/../include -I../../llvm-gcc-4.2/gcc/../libcpp/include 
-I../../llvm-gcc-4.2/gcc/../libdecnumber -I../libdecnumber
-I/home/pramach2/research/llvm-solaris/obj/include
-I/home/pramach2/research/llvm-solaris/src/include -DENABLE_LLVM
-I/home/pramach2/research/llvm-solaris/obj/../src/include  -D_DEBUG  -include
llvm/System/Solaris.h -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS   -I. -I. -I../../llvm-gcc-4.2/gcc
-I../../llvm-gcc-4.2/gcc/. -I../../llvm-gcc-4.2/gcc/../include
-I../../llvm-gcc-4.2/gcc/../libcpp/include 
-I../../llvm-gcc-4.2/gcc/../libdecnumber -I../libdecnumber
-I/home/pramach2/research/llvm-solaris/obj/include
-I/home/pramach2/research/llvm-solaris/src/include
../../llvm-gcc-4.2/gcc/llvm-backend.cpp -o llvm-backend.o
../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void
writeLLVMValues()’:
../../llvm-gcc-4.2/gcc/llvm-backend.cpp:292: error: no matching function for
call to ‘llvm::GlobalVariable::GlobalVariable(llvm::Module&, const
llvm::Type*, bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*&, const
char [16])’
/home/pramach2/research/llvm-solaris/src/include/llvm/GlobalVariable.h:61:
note: candidates are: llvm::GlobalVariable::GlobalVariable(const llvm::Type*,
bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*, const std::string&,
llvm::GlobalVariable*, bool, unsigned int)
/home/pramach2/research/llvm-solaris/src/include/llvm/GlobalVariable.h:55:
note:                 llvm::GlobalVariable::GlobalVariable(const llvm::Type*,
bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*, const std::string&,
llvm::Module*, bool, unsigned int)
/home/pramach2/research/llvm-solaris/src/include/llvm/GlobalVariable.h:38:
note:                 llvm::GlobalVariable::GlobalVariable(const
llvm::GlobalVariable&)

I have gcc version 4.1.2 on a i386 machine running Linux. I have configured
llvm for Debug build, with the --enable-checking flag.

I have also tried doing the same under sparc/Solaris (I have gcc 4.2.2 and the
latest version of llvm compiled on Sparc/solaris) and I run in to the same
problem, but the following error also occurs in Sparc.

../../llvm-gcc-4.2/gcc/llvm-backend.cpp:333:2: error: #error LLVM_TARGET_NAME
macro not specified by GCC backend

Could someone help me sort this problem out?

Thanks,
pradeep.


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