[LLVMbugs] [Bug 8618] New: compile error - syntax error when compiling Allocator.h

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 15 11:41:10 PST 2010


           Summary: compile error - syntax error when compiling
           Product: new-bugs
           Version: 2.8
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: fred.bartholomai at efacec.com
                CC: llvmbugs at cs.uiuc.edu

Platform Red Hat Linux Enterprise 4.2
gcc: 3.2.3
Compiling llvm 2.8

Ran configure as instructed in the help web page
as followings:
configure --prefix=opt

in the "build" directory
ran make
and got the following error:

/home/freddyb/download/tar/llvm-2.8/include/llvm/Support/Allocator.h: In member
   function `T* llvm::SpecificBumpPtrAllocator<T>::Allocate(unsigned int)':
   error before `;' token
warning: no
   return statement in function returning non-void
In file included from
/home/freddyb/download/tar/llvm-2.8/lib/System/Unix/Host.inc: In function
   `std::string llvm::sys::getHostTriple()':
/home/freddyb/download/tar/llvm-2.8/lib/System/Unix/Host.inc:80: `isdigit'
   undeclared (first use this function)
/home/freddyb/download/tar/llvm-2.8/lib/System/Unix/Host.inc:80: (Each
   undeclared identifier is reported only once for each function it appears
make[1]: *** [/home/freddyb/download/tar/llmv_build/lib/System/Release/Host.o]
Error 1
make[1]: Leaving directory `/home/freddyb/download/tar/llmv_build/lib/System'

Please advise. Any help would be appreciated.

I have following the install instructions to the letter.


Fred B.

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