Error when i am using command make -j4 command in cygwin to compile safecode

llvm[4]: Compiling PoolAllocate.cpp for Release+Asserts build
/home/NIKHILREDDY/WORK/LLVM_SRC/projects/poolalloc/lib/PoolAllocate/PoolAllocate.cpp: In member function ‘virtual bool llvm::PoolAllocate::runOnModule(llvm::Module&)’:
/home/NIKHILREDDY/WORK/LLVM_SRC/projects/poolalloc/lib/PoolAllocate/PoolAllocate.cpp:403:16: error: ‘class llvm::Constant’ has no member named ‘replaceUsesOfWithOnConstant’
C->replaceUsesOfWithOnConstant(F, CEnew, ReplaceWorklist[index]);
^
llvm[4]: Compiling PoolOptimize.cpp for Release+Asserts build
llvm[4]: Compiling RunTimeAssociate.cpp for Release+Asserts build
/usr/bin/rm: cannot remove ‘/home/NIKHILREDDY/WORK/LLVM_OBJ/projects/poolalloc/lib/PoolAllocate/Release+Asserts/PoolAllocate.d.tmp’: No such file or directory
/home/NIKHILREDDY/WORK/LLVM_SRC/Makefile.rules:1521: recipe for target ‘/home/NIKHILREDDY/WORK/LLVM_OBJ/projects/poolalloc/lib/PoolAllocate/Release+Asserts/PoolAllocate.o’ failed
make[4]: *** [/home/NIKHILREDDY/WORK/LLVM_OBJ/projects/poolalloc/lib/PoolAllocate/Release+Asserts/PoolAllocate.o] Error 1
make[4]: *** Waiting for unfinished jobs…
make[4]: Leaving directory ‘/home/NIKHILREDDY/WORK/LLVM_OBJ/projects/poolalloc/lib/PoolAllocate’
/home/NIKHILREDDY/WORK/LLVM_SRC/Makefile.rules:880: recipe for target ‘all’ failed
make[3]: *** [all] Error 1
make[3]: Leaving directory ‘/home/NIKHILREDDY/WORK/LLVM_OBJ/projects/poolalloc/lib’
/home/NIKHILREDDY/WORK/LLVM_SRC/Makefile.rules:880: recipe for target ‘all’ failed
make[2]: *** [all] Error 1
make[2]: Leaving directory ‘/home/NIKHILREDDY/WORK/LLVM_OBJ/projects/poolalloc’
/home/NIKHILREDDY/WORK/LLVM_SRC/Makefile.rules:880: recipe for target ‘all’ failed
make[1]: *** [all] Error 1
make[1]: Leaving directory ‘/home/NIKHILREDDY/WORK/LLVM_OBJ/projects’
/home/NIKHILREDDY/WORK/LLVM_SRC/Makefile.rules:965: recipe for target ‘all’ failed
make: *** [all] Error 1

NIKHILREDDY@NikhilReddyK ~/WORK/LLVM_OBJ

for your reference i will also send the configurlog file and also maketools and makelog files

Thank You,

Kind Regards,

Nikhil Reddy Kothapally

+4917672147229

Master Student

Technische Universität Chemnitz,(Germany)

Automotive Software Engineering.

maketoolslogobj.txt (98.9 KB)

config.log (155 KB)

onlymakelog.txt (25.9 KB)

Dear Nikhil,

The lib/PoolAllocate code doesn't compile with LLVM mainline, and you don't need it for SAFECode. You can remove PoolAllocate from the list of directories to compile in poolalloc/lib/Makefile.

Also, are you using the code from Peter's Github repository? I think Peter made this change in his code already.

Regards,

John Criswell