Skip to Content.
Sympa Menu

svadev - Re: [svadev] Poolalloc Build Fails.

svadev AT lists.siebelschool.illinois.edu

Subject: Svadev mailing list

List archive

Re: [svadev] Poolalloc Build Fails.


Chronological Thread 
  • From: Arushi Aggarwal <arushi987 AT gmail.com>
  • To: John Criswell <criswell AT illinois.edu>
  • Cc: "svadev AT cs.uiuc.edu" <svadev AT cs.uiuc.edu>
  • Subject: Re: [svadev] Poolalloc Build Fails.
  • Date: Tue, 15 Mar 2011 18:30:42 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev>
  • List-id: <svadev.cs.uiuc.edu>

That worked!

Thanks a ton!

Arushi

On Tue, Mar 15, 2011 at 9:23 AM, John Criswell <criswell AT illinois.edu> wrote:
On 3/14/11 10:49 PM, Arushi Aggarwal wrote:
I fixed that. Am now running into the following compile time error. 

Any pointers?

Weird.  It looks like it can't find the C++ standard header files.

Did you compile your own llvm-g++?  If so, did you make sure to delete the libstdc++ directory?  If not, perhaps that is the cause of the problem.

-- John T.



Arushi

make[2]: Nothing to be done for `all'.
llvm[2]: Compiling PageManager.cpp for Debug build (bytecode)
In file included from /Users/aggarwa4/llvm27/llvm-2.7/projects/safecode/runtime/BitmapPoolAllocator/PageManager.cpp:14:
/Users/aggarwa4/llvm27/llvm-obj/projects/safecode/../../../llvm-2.7/projects/safecode/include/safecode/Runtime/PageManager.h:22:18: error: vector: No such file or directory
In file included from /Users/aggarwa4/llvm27/llvm-2.7/projects/safecode/runtime/BitmapPoolAllocator/PageManager.cpp:18:
/Users/aggarwa4/llvm27/llvm-2.7/projects/poolalloc/include/poolalloc/Support/MallocAllocator.h:23:19: error: cstdlib: No such file or directory
/Users/aggarwa4/llvm27/llvm-2.7/projects/poolalloc/include/poolalloc/Support/MallocAllocator.h:24:18: error: memory: No such file or directory
In file included from /Users/aggarwa4/llvm27/llvm-2.7/projects/safecode/runtime/BitmapPoolAllocator/PageManager.cpp:19:
/Users/aggarwa4/llvm27/llvm-2.7/projects/poolalloc/include/poolalloc/MMAPSupport.h:17:19: error: cassert: No such file or directory
/Users/aggarwa4/llvm27/llvm-2.7/projects/safecode/runtime/BitmapPoolAllocator/PageManager.cpp:24:18: error: cstdio: No such file or directory
/Users/aggarwa4/llvm27/llvm-2.7/projects/safecode/runtime/BitmapPoolAllocator/PageManager.cpp:25:20: error: iostream: No such file or directory
/Users/aggarwa4/llvm27/llvm-2.7/projects/safecode/runtime/BitmapPoolAllocator/PageManager.cpp:27:15: error: map: No such file or directory
/Users/aggarwa4/llvm27/llvm-2.7/projects/safecode/runtime/BitmapPoolAllocator/PageManager.cpp:28:19: error: utility: No such file or directory
/Users/aggarwa4/llvm27/llvm-2.7/projects/safecode/runtime/BitmapPoolAllocator/PageManager.cpp:29:19: error: cstring: No such file or directory
In file included from /Users/aggarwa4/llvm27/llvm-2.7/projects/safecode/runtime/BitmapPoolAllocator/PageManager.cpp:14:
/Users/aggarwa4/llvm27/llvm-obj/projects/safecode/../../../llvm-2.7/projects/safecode/include/safecode/Runtime/PageManager.h:100: error: expected initializer before '<' token
/Users/aggarwa4/llvm27/llvm-obj/projects/safecode/../../../llvm-2.7/projects/safecode/include/safecode/Runtime/PageManager.h:101: error: 'FreePagesListType' does not name a type
In file included from /Users/aggarwa4/llvm27/llvm-2.7/projects/safecode/runtime/BitmapPoolAllocator/PageManager.cpp:18:
/Users/aggarwa4/llvm27/llvm-2.7/projects/poolalloc/include/poolalloc/Support/MallocAllocator.h:30: error: 'size_t' does not name a type
/Users/aggarwa4/llvm27/llvm-2.7/projects/poolalloc/include/poolalloc/Support/MallocAllocator.h:31: error: 'ptrdiff_t' does not name a type
/Users/aggarwa4/llvm27/llvm-2.7/projects/poolalloc/include/poolalloc/Support/MallocAllocator.h:47: error: 'size_type' does not name a type
/Users/aggarwa4/llvm27/llvm-2.7/projects/poolalloc/include/poolalloc/Support/MallocAllocator.h:49: error: 'size_t' has not been declared
/Users/aggarwa4/llvm27/llvm-2.7/projects/poolalloc/include/poolalloc/Support/MallocAllocator.h:53: error: 'size_t' has not been declared
/Users/aggarwa4/llvm27/llvm-2.7/projects/poolalloc/include/poolalloc/Support/MallocAllocator.h: In static member function 'static T* llvm::MallocAllocator<T>::allocate(int, void*)':
/Users/aggarwa4/llvm27/llvm-2.7/projects/poolalloc/include/poolalloc/Support/MallocAllocator.h:50: error: there are no arguments to 'malloc' that depend on a template parameter, so a declaration of 'malloc' must be available


On Mon, Mar 14, 2011 at 9:45 PM, John Criswell <criswell AT illinois.edu> wrote:
On 3/14/11 6:27 PM, Arushi Aggarwal wrote:
I get the following build error, when building poolalloc on Mac OS

/Users/aggarwa4/llvm27/llvmgcc-obj/install/ is my llvm-gcc install directory.

Check LLVM's Makefile.config and see if llvm-gcc and llvm-g++ is configured correctly.  It looks like the pathnames are missing the bin parts of the pathnames (llvm-gcc-obj/install/bin).

-- John T.



make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
llvm[2]: Compiling qsort.c for Debug build (bytecode)
/bin/sh: /Users/aggarwa4/llvm27/llvmgcc-obj/install/: is a directory
rm: /Users/aggarwa4/llvm27/llvm-obj/projects/poolalloc/runtime/PreRT/Debug/qsort.bc.d.tmp: No such file or directory
make[2]: *** [/Users/aggarwa4/llvm27/llvm-obj/projects/poolalloc/runtime/PreRT/Debug/qsort.ll] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1

I configured poolalloc as,
../../../llvm-2.7/projects/poolalloc/configure --with-llvmsrc=/Users/aggarwa4/llvm27/llvm-2.7/ --with-llvmobj=/Users/aggarwa4/llvm27/llvm-obj/


Any pointers?

Thanks!
Arushi








Archive powered by MHonArc 2.6.16.

Top of Page