[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 13:41:10 CST 2010


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

           Summary: compile error - syntax error when compiling
                    Allocator.h
           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)':
/home/freddyb/download/tar/llvm-2.8/include/llvm/Support/Allocator.h:215:
syntax
   error before `;' token
/home/freddyb/download/tar/llvm-2.8/include/llvm/Support/Allocator.h:216:
warning: no
   return statement in function returning non-void
In file included from
/home/freddyb/download/tar/llvm-2.8/lib/System/Host.cpp:20:
/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
   in.)
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.

Regards,

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 LLVMbugs mailing list