CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Compilation errors in ThirdPartymallochoard

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2009, 18:13
Default Dear friends! I have problems
  #1
New Member
 
Feng Wang
Join Date: Mar 2009
Posts: 1
Rep Power: 0
feng_w is on a distinguished road
Dear friends!
I have problems running "wmake libso hoard" in ~/OpenFOAM/ThirdParty/malloc which is called from ~/OpenFOAM/OpenFOAM-1.5-dev/Allwmake.

Can you please tell me whether this part is essential (what is hoard used for?) and maybe identify the problem in the following and suggest a solution for successful compilation?

Thank you
Feng

~/OpenFOAM/ThirdParty/malloc$ wmake libso hoard
SOURCE=hoard-371/src/libhoard.cpp ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -DNDEBUG -D_REENTRANT=1 -IlnInclude -I. -I/home/fengw/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/fengw/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/libhoard.o
In file included from hoard-371/src/libhoard.cpp:93:
lnInclude/cpuinfo.h: In static member function 'static int HL::CPUInfo::computeNumProcessors()':
lnInclude/cpuinfo.h:125: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result
lnInclude/cpuinfo.h: In static member function 'static int HL::CPUInfo::getThreadId()':
lnInclude/cpuinfo.h:216: warning: use of old-style cast
In file included from hoard-371/src/hoard.h:45,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/addheaderheap.h: At global scope:
hoard-371/src/addheaderheap.h:21: warning: use of old-style cast
hoard-371/src/addheaderheap.h:22: warning: use of old-style cast
In file included from hoard-371/src/hoard.h:47,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/redirectfree.h:46: warning: use of old-style cast
In file included from hoard-371/src/hoardsuperblock.h:11,
from hoard-371/src/hoard.h:50,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/hoardsuperblockheader.h: In constructor 'Hoard::HoardSuperblockHeader<locktype,>::HoardSup erblockHeader(size_t, size_t)':
hoard-371/src/hoardsuperblockheader.h:31: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h: In member function 'void* Hoard::HoardSuperblockHeader<locktype,>::normalize (void*) const':
hoard-371/src/hoardsuperblockheader.h:68: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:68: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:77: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:77: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:79: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:79: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h: In member function 'size_t Hoard::HoardSuperblockHeader<locktype,>::getSize(v oid*) const':
hoard-371/src/hoardsuperblockheader.h:87: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:87: warning: use of old-style cast
In file included from hoard-371/src/hoard.h:50,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/hoardsuperblock.h: In static member function 'static Hoard::HoardSuperblock<locktype,>* Hoard::HoardSuperblock<locktype,>::getSuperblock(v oid*)':
hoard-371/src/hoardsuperblock.h:31: warning: use of old-style cast
hoard-371/src/hoardsuperblock.h:31: warning: use of old-style cast
hoard-371/src/hoardsuperblock.h:31: warning: use of old-style cast
hoard-371/src/hoardsuperblock.h: In member function 'bool Hoard::HoardSuperblock<locktype,>::inRange(void*) const':
hoard-371/src/hoardsuperblock.h:138: warning: use of old-style cast
hoard-371/src/hoardsuperblock.h:139: warning: use of old-style cast
hoard-371/src/hoardsuperblock.h:140: warning: use of old-style cast
In file included from lnInclude/myhashmap.h:7,
from lnInclude/mmapheap.h:43,
from hoard-371/src/alignedsuperblockheap.h:6,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
lnInclude/hash.h: In function 'size_t HL::hash(Key) [with Key = void*]':
lnInclude/hash.h:12: warning: use of old-style cast
lnInclude/hash.h: In function 'size_t HL::hash(Key) [with Key = const void*]':
lnInclude/hash.h:17: warning: use of old-style cast
lnInclude/hash.h:17: warning: use of old-style cast
lnInclude/hash.h: In function 'size_t HL::hash(Key) [with Key = int]':
lnInclude/hash.h:22: warning: use of old-style cast
In file included from lnInclude/mmapheap.h:43,
from hoard-371/src/alignedsuperblockheap.h:6,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
lnInclude/myhashmap.h: In member function 'void HL::MyHashMap<key,>::set(Key, Value)':
lnInclude/myhashmap.h:28: warning: use of old-style cast
lnInclude/myhashmap.h: In member function 'Value HL::MyHashMap<key,>::get(Key)':
lnInclude/myhashmap.h:42: warning: use of old-style cast
lnInclude/myhashmap.h: In member function 'void HL::MyHashMap<key,>::erase(Key)':
lnInclude/myhashmap.h:55: warning: use of old-style cast
lnInclude/myhashmap.h: In member function 'void HL::MyHashMap<key,>::insert(Key, Value)':
lnInclude/myhashmap.h:81: warning: use of old-style cast
In file included from lnInclude/mmapheap.h:44,
from hoard-371/src/alignedsuperblockheap.h:6,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
lnInclude/stlallocator.h: In member function 'size_t HL::STLAllocator<t,>::max_size() const':
lnInclude/stlallocator.h:116: warning: use of old-style cast
lnInclude/stlallocator.h:117: warning: use of old-style cast
In file included from lnInclude/mmapheap.h:46,
from hoard-371/src/alignedsuperblockheap.h:6,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
lnInclude/zoneheap.h: In destructor 'HL::ZoneHeap<super,>::~ZoneHeap()':
lnInclude/zoneheap.h:37: warning: use of old-style cast
lnInclude/zoneheap.h: In member function 'void* HL::ZoneHeap<super,>::zoneMalloc(size_t)':
lnInclude/zoneheap.h:70: warning: use of old-style cast
lnInclude/zoneheap.h:82: warning: use of old-style cast
lnInclude/zoneheap.h:86: warning: use of old-style cast
In file included from lnInclude/mmapheap.h:48,
from hoard-371/src/alignedsuperblockheap.h:6,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
lnInclude/spinlock.h: At global scope:
lnInclude/spinlock.h:140: warning: type qualifiers ignored on function return type
lnInclude/spinlock.h:199: warning: type qualifiers ignored on function return type
In file included from hoard-371/src/alignedsuperblockheap.h:6,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
lnInclude/mmapheap.h: In member function 'void* HL::PrivateMmapHeap::malloc(size_t)':
lnInclude/mmapheap.h:130: warning: use of old-style cast
lnInclude/mmapheap.h: In member function 'void HL::PrivateMmapHeap::free(void*, size_t)':
lnInclude/mmapheap.h:151: warning: use of old-style cast
In file included from hoard-371/src/alignedsuperblockheap.h:12,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
lnInclude/dllist.h: In member function 'HL::DLList::Entry* HL::DLList::get()':
lnInclude/dllist.h:69: warning: use of old-style cast
In file included from hoard-371/src/alignedmmap.h:15,
from hoard-371/src/alignedsuperblockheap.h:15,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
lnInclude/mmapwrapper.h: In static member function 'static void* HL::MmapWrapper::map(size_t)':
lnInclude/mmapwrapper.h:108: warning: use of old-style cast
In file included from hoard-371/src/alignedmmap.h:16,
from hoard-371/src/alignedsuperblockheap.h:15,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/bumpalloc.h: In member function 'void Hoard::BumpAlloc<chunksize,>::refill(size_t)':
hoard-371/src/bumpalloc.h:50: warning: use of old-style cast
In file included from hoard-371/src/alignedsuperblockheap.h:15,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/alignedmmap.h: In member function 'void* Hoard::AlignedMmapInstance<alignment_>::malloc(siz e_t)':
hoard-371/src/alignedmmap.h:44: warning: use of old-style cast
hoard-371/src/alignedmmap.h:44: warning: use of old-style cast
hoard-371/src/alignedmmap.h:61: warning: use of old-style cast
hoard-371/src/alignedmmap.h:78: warning: use of old-style cast
hoard-371/src/alignedmmap.h:78: warning: use of old-style cast
hoard-371/src/alignedmmap.h:86: warning: use of old-style cast
hoard-371/src/alignedmmap.h: In static member function 'static char* Hoard::AlignedMmapInstance<alignment_>::align(char *)':
hoard-371/src/alignedmmap.h:122: warning: use of old-style cast
hoard-371/src/alignedmmap.h:122: warning: use of old-style cast
In file included from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/alignedsuperblockheap.h: In member function 'void* Hoard::SuperblockStore<superblocksize>::malloc(siz e_t)':
hoard-371/src/alignedsuperblockheap.h:34: warning: use of old-style cast
hoard-371/src/alignedsuperblockheap.h:36: warning: use of old-style cast
hoard-371/src/alignedsuperblockheap.h: In member function 'void Hoard::SuperblockStore<superblocksize>::free(void* )':
hoard-371/src/alignedsuperblockheap.h:44: warning: use of old-style cast
In file included from hoard-371/src/hoard.h:54,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/globalheap.h: In member function 'void Hoard::GlobalHeap<superblocksize,>::put(void*, size_t)':
hoard-371/src/globalheap.h:35: warning: use of old-style cast
In file included from hoard-371/src/hoard.h:59,
from hoard-371/src/libhoard.cpp:94:
lnInclude/debugheap.h: In member function 'void* HL::DebugHeap<super,>::malloc(size_t)':
lnInclude/debugheap.h:31: warning: use of old-style cast
lnInclude/debugheap.h:31: warning: use of old-style cast
lnInclude/debugheap.h:31: warning: use of old-style cast
lnInclude/debugheap.h: In member function 'void HL::DebugHeap<super,>::free(void*)':
lnInclude/debugheap.h:38: warning: use of old-style cast
lnInclude/debugheap.h:41: warning: use of old-style cast
In file included from hoard-371/src/hoard.h:68,
from hoard-371/src/libhoard.cpp:94:
lnInclude/threadheap.h: At global scope:
lnInclude/threadheap.h:70: warning: type qualifiers ignored on function return type
lnInclude/threadheap.h:92: warning: type qualifiers ignored on function return type
lnInclude/threadheap.h: In static member function 'static volatile int HL::ThreadHeap<numheaps,>::getThreadId()':
lnInclude/threadheap.h:106: warning: use of old-style cast
In file included from hoard-371/src/hoard.h:69,
from hoard-371/src/libhoard.cpp:94:
lnInclude/hybridheap.h: At global scope:
lnInclude/hybridheap.h:26: warning: use of old-style cast
lnInclude/hybridheap.h:26: warning: use of old-style cast
lnInclude/hybridheap.h:27: warning: use of old-style cast
lnInclude/hybridheap.h:28: warning: use of old-style cast
In file included from hoard-371/src/libhoard.cpp:94:
hoard-371/src/hoard.h: In static member function 'static bool Hoard::hoardThresholdFunctionClass::function(int, int, size_t)':
hoard-371/src/hoard.h:96: warning: use of old-style cast
In file included from hoard-371/src/libhoard.cpp:95:
hoard-371/src/heapmanager.h: In member function 'void Hoard::HeapManager<locktype,>::chooseZero()':
hoard-371/src/heapmanager.h:35: warning: use of old-style cast
In file included from hoard-371/src/libhoard.cpp:96:
hoard-371/src/tlab.h: In member function 'void Hoard::ThreadLocalAllocationBuffer<numbins,>::free (void*)':
hoard-371/src/tlab.h:86: warning: use of old-style cast
In file included from hoard-371/src/libhoard.cpp:158:
hoard-371/src/userealtls.cpp: In function 'TheCustomHeapType* initializeCustomHeap()':
hoard-371/src/userealtls.cpp:38: warning: use of old-style cast
hoard-371/src/userealtls.cpp:39: warning: use of old-style cast
In file included from hoard-371/src/libhoard.cpp:158:
hoard-371/src/userealtls.cpp: In function 'int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)':
hoard-371/src/userealtls.cpp:261: warning: unused variable 't'
In file included from hoard-371/src/libhoard.cpp:164:
lnInclude/wrapper.cpp: In function 'void* memalign(size_t, size_t)':
lnInclude/wrapper.cpp:137: error: declaration of 'void* memalign(size_t, size_t)' throws different exceptions
lnInclude/wrapper.cpp:116: error: from previous declaration 'void* memalign(size_t, size_t) throw ()'
make: *** [Make/linuxGccDPOpt/libhoard.o] Error 1
~/OpenFOAM/ThirdParty/malloc$
feng_w is offline   Reply With Quote

Old   January 25, 2009, 07:59
Default I have the same problem (gcc 4
  #2
Member
 
Marco Moscaritolo
Join Date: Mar 2009
Location: Bergamo, Italy
Posts: 33
Rep Power: 17
mavimo is on a distinguished road
I have the same problem (gcc 4.3, Ubuntu 8.10), but OF work without problem, but decrease performance.

Hoard is an alternative memory allocator for multi core/multi CPU system and increase performance for this system. You can find some other info to http://www.hoard.org

If you find solution please post solution here, tks!

Bye
M.V.M.
mavimo is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF COMPILATION... venkatesh4386@gmail.com FLOW-3D 0 November 8, 2008 12:22
Compilation alessio Siemens 1 September 18, 2008 04:32
UDF COMPILATION T.Hariharanath FLUENT 2 July 25, 2005 12:47
Help : errors in compilation mp FLUENT 3 June 29, 2003 15:11
udf compilation jy FLUENT 0 August 10, 2000 10:39


All times are GMT -4. The time now is 02:04.