At 8:52 AM +0300 5/1/10, Török Edwin wrote:
On 05/01/2010 01:17 AM, Tom Shaw wrote:
I have the following configure problem:
$ cd obj && ../llvm/configure --enable-optimized
--enable-targets=host-only --disable-bindings --prefix=/usr/local/clamav
configure: WARNING: Unknown project (clamdriver) won't be configured
automatically
configure: WARNING: Unknown project (ifacegen) won't be configured
automatically
checking build system type... i386-apple-darwin9.8.0
checking host system type... i386-apple-darwin9.8.0
checking target system type... i386-apple-darwin9.8.0
Any ideas?
You can ignore those warnings, they are harmless (clamdriver and
ifacegen don't need to be configured, they use the makefiles from
toplevel llvm).
Did configure succeed?
Yes but make didn't :-(
CC="/usr/bin/gcc-4.2" CXX="/usr/bin/g++-4.2"
../llvm/configure --enable-optimized
--enable-targets=host-only --disable-bindings
--prefix=/usr/local/clamav
(ulimit -t 3600 -v 512000 && make clambc-only -j4)
ClamBCModule.cpp errors and gets me
llvm[3]: Compiling ClamBCOptimizers.cpp for Release build
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCModule.cpp:
In member function 'virtual bool
ClamBCModule::runOnModule(llvm::Module&)':
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCModule.cpp:183:
error: 'class std::vector<llvm::Value*,
std::allocator<llvm::Value*> >' has no member
named 'data'
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCCommon.h:
At global scope:
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCCommon.h:50:
warning: 'clamav::apicall_begin' defined but not
used
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCCommon.h:51:
warning: 'clamav::apicall_end' defined but not
used
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCCommon.h:52:
warning: 'clamav::globals_begin' defined but not
used
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCCommon.h:53:
warning: 'clamav::globals_end' defined but not
used
make[3]: ***
[/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/obj/lib/Target/ClamBC/Release/ClamBCModule.o]
Error 1
make[3]: *** Waiting for unfinished jobs....
llvm[2]: Building Release Archive Library libLLVMTarget.a
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCCommon.h:29:
warning: 'unsigned int
clamav::initTypeIDs(llvm::DenseMap<const
llvm::Type*, unsigned int,
llvm::DenseMapInfo<const llvm::Type*>,
llvm::DenseMapInfo<unsigned int> >&,
llvm::LLVMContext&)' defined but not used
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCCommon.h:50:
warning: 'clamav::apicall_begin' defined but not
used
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCCommon.h:51:
warning: 'clamav::apicall_end' defined but not
used
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCCommon.h:52:
warning: 'clamav::globals_begin' defined but not
used
/Users/tshaw/Sites/clamav/clamav-bytecode-compiler/clamav-bytecode-compiler/llvm/lib/Target/ClamBC/ClamBCCommon.h:53:
warning: 'clamav::globals_end' defined but not
used
make[2]: *** [ClamBC/.makeall] Error 2
make[1]: *** [all] Error 1
make: *** [clambc-only] Error 2
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml