Previous Thread  Next Thread

chat icon building for RedHat 80

TheProf

Posted: Mon Oct 21, 2002 1:40 am
Joined: 21 Oct 2002
Posts: 1
make[2]: Entering directory `/root/develop/intern/decimation/intern'
g++ -c -pipe -fPIC -DNDEBUG -O3 -I/root/develop/lib/linux-glibc2.2.93-i386/mot
o/include -I/root/develop/lib/linux-glibc2.2.93-i386/memutil/include -I/root/dev
elop/lib/linux-glibc2.2.93-i386/container/include LOD_QSDecimator.cpp -o /root/o
bj/linux-glibc2.2.93-i386/intern/decimation/LOD_QSDecimator.o
In file included from LOD_QSDecimator.h:37,
from LOD_QSDecimator.cpp:32:
LOD_ManMesh2.h:264:7: warning: no newline at end of file
LOD_QSDecimator.cpp: In member function `bool LOD_QSDecimator::CollapseEdge()':
LOD_QSDecimator.cpp:186: no matching function for call to `CTR_UHeap<LOD_Edge>
::Remove(__gnu_cxx::__normal_iterator<LOD_Edge*, std::vector<LOD_Edge,
std::allocator<LOD_Edge> > >, int)'
/root/develop/lib/linux-glibc2.2.93-i386/container/include/CTR_UHeap.h:149: cand
idates
are: void CTR_UHeap<HeapType>::Remove(HeapType*, int) [with HeapType =
LOD_Edge]
LOD_QSDecimator.cpp:188: no matching function for call to `CTR_UHeap<LOD_Edge>
::Insert(__gnu_cxx::__normal_iterator<LOD_Edge*, std::vector<LOD_Edge,
std::allocator<LOD_Edge> > >, const int&)'
/root/develop/lib/linux-glibc2.2.93-i386/container/include/CTR_UHeap.h:127: cand
idates
are: void CTR_UHeap<HeapType>::Insert(HeapType*, int) [with HeapType =
LOD_Edge]
LOD_QSDecimator.cpp: In member function `bool LOD_QSDecimator::BuildHeap()':
LOD_QSDecimator.cpp:277: no matching function for call to `CTR_UHeap<LOD_Edge>
::MakeHeap(__gnu_cxx::__normal_iterator<LOD_Edge*, std::vector<LOD_Edge,
std::allocator<LOD_Edge> > >)'
/root/develop/lib/linux-glibc2.2.93-i386/container/include/CTR_UHeap.h:115: cand
idates
are: void CTR_UHeap<HeapType>::MakeHeap(HeapType*) [with HeapType =
LOD_Edge]
LOD_QSDecimator.cpp: In member function `void
LOD_QSDecimator::UpdateHeap(std::vector<LOD_EdgeInd,
std::allocator<LOD_EdgeInd> >&, std::vector<LOD_EdgeInd,
std::allocator<LOD_EdgeInd> >&)':
LOD_QSDecimator.cpp:307: no matching function for call to `CTR_UHeap<LOD_Edge>
::Insert(__gnu_cxx::__normal_iterator<LOD_Edge*, std::vector<LOD_Edge,
std::allocator<LOD_Edge> > >, const CTR_TaggedIndex<24, 16777215>&)'
/root/develop/lib/linux-glibc2.2.93-i386/container/include/CTR_UHeap.h:127: cand
idates
are: void CTR_UHeap<HeapType>::Insert(HeapType*, int) [with HeapType =
LOD_Edge]
LOD_QSDecimator.cpp:318: no matching function for call to `CTR_UHeap<LOD_Edge>
::Remove(__gnu_cxx::__normal_iterator<LOD_Edge*, std::vector<LOD_Edge,
std::allocator<LOD_Edge> > >, int&)'
/root/develop/lib/linux-glibc2.2.93-i386/container/include/CTR_UHeap.h:149: cand
idates
are: void CTR_UHeap<HeapType>::Remove(HeapType*, int) [with HeapType =
LOD_Edge]
make[2]: *** [/root/obj/linux-glibc2.2.93-i386/intern/decimation/LOD_QSDecimator
.o] Error 1
make[2]: Leaving directory `/root/develop/intern/decimation/intern'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/develop/intern/decimation'
make: *** [all] Error 1
Reply with quote


JWalton

Posted: Mon Oct 21, 2002 2:35 pm
Joined: 13 Oct 2002
Posts: 153
TheProf wrote:
make[2]: Entering directory `/root/develop/intern/decimation/intern'


as a matter of general unix (and unix-like) usage: use root for sysadm only. compile software as a nonprivilged user. 'install' can be done as root.
Reply with quote


Ferris

Posted: Fri Oct 25, 2002 7:24 pm
Joined: 25 Oct 2002
Posts: 5
TheProf wrote:
make[2]: Entering directory `/root/develop/intern/decimation/intern'
g++ -c -pipe -fPIC -DNDEBUG -O3 -I/root/develop/lib/linux-glibc2.2.93-i386/mot
o/include -I/root/develop/lib/linux-glibc2.2.93-i386/memutil/include -I/root/dev
elop/lib/linux-glibc2.2.93-i386/container/include LOD_QSDecimator.cpp -o /root/o
bj/linux-glibc2.2.93-i386/intern/decimation/LOD_QSDecimator.o
In file included from LOD_QSDecimator.h:37,
from LOD_QSDecimator.cpp:32:
LOD_ManMesh2.h:264:7: warning: no newline at end of file
LOD_QSDecimator.cpp: In member function `bool LOD_QSDecimator::CollapseEdge()':
LOD_QSDecimator.cpp:186: no matching function for call to `CTR_UHeap<LOD_Edge>
::Remove(__gnu_cxx::__normal_iterator<LOD_Edge*, std::vector<LOD_Edge,
std::allocator<LOD_Edge> > >, int)'
/root/develop/lib/linux-glibc2.2.93-i386/container/include/CTR_UHeap.h:149: cand
idates
are: void CTR_UHeap<HeapType>::Remove(HeapType*, int) [with HeapType =
LOD_Edge]
LOD_QSDecimator.cpp:188: no matching function for call to `CTR_UHeap<LOD_Edge>
::Insert(__gnu_cxx::__normal_iterator<LOD_Edge*, std::vector<LOD_Edge,
std::allocator<LOD_Edge> > >, const int&)'
/root/develop/lib/linux-glibc2.2.93-i386/container/include/CTR_UHeap.h:127: cand
idates
are: void CTR_UHeap<HeapType>::Insert(HeapType*, int) [with HeapType =
LOD_Edge]
LOD_QSDecimator.cpp: In member function `bool LOD_QSDecimator::BuildHeap()':
LOD_QSDecimator.cpp:277: no matching function for call to `CTR_UHeap<LOD_Edge>
::MakeHeap(__gnu_cxx::__normal_iterator<LOD_Edge*, std::vector<LOD_Edge,
std::allocator<LOD_Edge> > >)'
/root/develop/lib/linux-glibc2.2.93-i386/container/include/CTR_UHeap.h:115: cand
idates
are: void CTR_UHeap<HeapType>::MakeHeap(HeapType*) [with HeapType =
LOD_Edge]
LOD_QSDecimator.cpp: In member function `void
LOD_QSDecimator::UpdateHeap(std::vector<LOD_EdgeInd,
std::allocator<LOD_EdgeInd> >&, std::vector<LOD_EdgeInd,
std::allocator<LOD_EdgeInd> >&)':
LOD_QSDecimator.cpp:307: no matching function for call to `CTR_UHeap<LOD_Edge>
::Insert(__gnu_cxx::__normal_iterator<LOD_Edge*, std::vector<LOD_Edge,
std::allocator<LOD_Edge> > >, const CTR_TaggedIndex<24, 16777215>&)'
/root/develop/lib/linux-glibc2.2.93-i386/container/include/CTR_UHeap.h:127: cand
idates
are: void CTR_UHeap<HeapType>::Insert(HeapType*, int) [with HeapType =
LOD_Edge]
LOD_QSDecimator.cpp:318: no matching function for call to `CTR_UHeap<LOD_Edge>
::Remove(__gnu_cxx::__normal_iterator<LOD_Edge*, std::vector<LOD_Edge,
std::allocator<LOD_Edge> > >, int&)'
/root/develop/lib/linux-glibc2.2.93-i386/container/include/CTR_UHeap.h:149: cand
idates
are: void CTR_UHeap<HeapType>::Remove(HeapType*, int) [with HeapType =
LOD_Edge]
make[2]: *** [/root/obj/linux-glibc2.2.93-i386/intern/decimation/LOD_QSDecimator
.o] Error 1
make[2]: Leaving directory `/root/develop/intern/decimation/intern'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/develop/intern/decimation'
make: *** [all] Error 1

Evil or Very Mad
This must be g++-3.x, is it not?

I am trying a port to sparc/linux using g++-3.2 and get a lot of these where you are and intern/bsp/intern

The problem seems to be that g++-3.2 is not upward compatible from
g++-2.95.3, and an example shows what's going wrong. The first
fatal error you show above is on the source line 186, which is
m_heap->Remove(edges.begin(),0)
It does fine with gcc-2.95.3. However, the new & improved version of
the compiler wants something like
m_heap->Remove(&*edges.begin(),0)

There might be a compiler flag to force compatibility, but I have yet to
find it.

(If you want a simple demonstration, just compile
#include <vector.h>
#include <algo.h>
vector <char> chr;
char * x = chr.begin();
using the two compilers.)

Sorry to go on so long; my experiences recompiling most anything
with g++-3.2 have been unpleasant.
Reply with quote


SirDude

Posted: Fri Oct 25, 2002 8:25 pm
Joined: 13 Oct 2002
Posts: 939
Grab the autoconf'd version at:
http://www.linux.ucla.edu/~phaethon/blender/blender-autoconf.html

It compiles great with gcc-3.2
Reply with quote


Ferris

Posted: Fri Oct 25, 2002 9:48 pm
Joined: 25 Oct 2002
Posts: 5
SirDude wrote:
Grab the autoconf'd version at:
http://www.linux.ucla.edu/~phaethon/blender/blender-autoconf.html

It compiles great with gcc-3.2


Thanks, I'll look at it.
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group