Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel
Error building clamav 0.97.1 with external llvm 2.9
 

Index | Next | Previous | View Flat


rbgarga at gmail

Jul 4, 2011, 5:32 PM


Views: 521
Permalink
Error building clamav 0.97.1 with external llvm 2.9

Hello,

I can build 20110704 snapshot with external llvm-2.9 on FreeBSD
8.2 without problems, but on 0.97.1 i got the following error:

gmake[3]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.1/libltdl'
gmake[2]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.1/libltdl'
Making all in libclamav
gmake[2]: Entering directory
`/work/a/ports/security/clamav/work/clamav-0.97.1/libclamav'
gmake all-recursive
gmake[3]: Entering directory
`/work/a/ports/security/clamav/work/clamav-0.97.1/libclamav'
Making all in c++
gmake[4]: Entering directory
`/work/a/ports/security/clamav/work/clamav-0.97.1/libclamav/c++'
gmake all-am
gmake[5]: Entering directory
`/work/a/ports/security/clamav/work/clamav-0.97.1/libclamav/c++'
CXX libclamavcxx_la-bytecode2llvm.lo
/bin/sh ./libtool --silent --tag=CXX --mode=compile c++
-DHAVE_CONFIG_H -I. -I./../.. -I./.. -I./../../ -I/usr/local/include
-I./../.. -I./.. -I./../../ -I/usr/local/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
-fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
-fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
-fno-strict-aliasing -c -o libclamavcxx_la-bytecode2llvm.lo `test -f
'bytecode2llvm.cpp' || echo './'`bytecode2llvm.cpp
CXX libclamavcxx_la-ClamBCRTChecks.lo
/bin/sh ./libtool --silent --tag=CXX --mode=compile c++
-DHAVE_CONFIG_H -I. -I./../.. -I./.. -I./../../ -I/usr/local/include
-I./../.. -I./.. -I./../../ -I/usr/local/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
-fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
-fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
-fno-strict-aliasing -c -o libclamavcxx_la-ClamBCRTChecks.lo `test -f
'ClamBCRTChecks.cpp' || echo './'`ClamBCRTChecks.cpp
ClamBCRTChecks.cpp:37:29: error: PointerTracking.h: No such file or directory
ClamBCRTChecks.cpp:264: error: ISO C++ forbids declaration of
'PointerTracking' with no type
ClamBCRTChecks.cpp:264: error: expected ';' before '*' token
ClamBCRTChecks.cpp: In member function 'virtual
bool<unnamed>::PtrVerifier::runOnFunction(llvm::Function&)':
ClamBCRTChecks.cpp:130: error: 'PT' was not declared in this scope
ClamBCRTChecks.cpp:130: error: 'PointerTracking' was not declared in this scope
ClamBCRTChecks.cpp:130: error: no matching function for call to
'<unnamed>::PtrVerifier::getAnalysis()'
ClamBCRTChecks.cpp: In member function 'virtual
void<unnamed>::PtrVerifier::getAnalysisUsage(llvm::AnalysisUsage&)
const':
ClamBCRTChecks.cpp:258: error: 'PointerTracking' was not declared in this scope
ClamBCRTChecks.cpp:258: error: no matching function for call to
'llvm::AnalysisUsage::addRequired()'
ClamBCRTChecks.cpp: In member function
'llvm::Value*<unnamed>::PtrVerifier::getPointerBounds(llvm::Value*)':
ClamBCRTChecks.cpp:400: error: 'PT' was not declared in this scope
gmake[5]: *** [libclamavcxx_la-ClamBCRTChecks.lo] Error 1
gmake[5]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.1/libclamav/c++'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.1/libclamav/c++'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.1/libclamav'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.1/libclamav'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/work/a/ports/security/clamav/work/clamav-0.97.1'
gmake: *** [all] Error 2
*** Error code 1

Stop in /a/ports/security/clamav.
================================================================
build of /usr/ports/security/clamav ended at Tue Jul 5 00:22:42 UTC 2011

I tried to build both in the same environment with same parameters
and same llvm installed.

I took a look at clamav's git trying to find out which commit had fixed
this but couldn't find it. Can you point me the commit that fixed this
issue and i can add the patch to FreeBSD ports collection.

Regards
--
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Subject User Time
Error building clamav 0.97.1 with external llvm 2.9 rbgarga at gmail Jul 4, 2011, 5:32 PM
    Re: Error building clamav 0.97.1 with external llvm 2.9 edwin at clamav Jul 4, 2011, 11:14 PM
        Re: Error building clamav 0.97.1 with external llvm 2.9 rbgarga at gmail Jul 5, 2011, 7:08 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.