Re: [Kosmosfs-users] compile error..
Status: Alpha
Brought to you by:
sriramsrao
From: Sungkwon E. <sk...@ho...> - 2008-01-16 05:07:46
|
Thanks Sriram, =20 Below is the list of it. =20 1) /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash table:863: error: 'Internal::hash_code_base<Key, Value, ExtractKey, Equal, H1, H2, Internal::default_ranged_hash, false>::m_h1' has incomplete type 2) /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/func tional:1101: error: declaration of 'struct std::tr1::hash<long long int>' 3) /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.cc:75: error: invalid use of undefined type 'struct std::tr1::hash<long long int>' 4)/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/fu nctional:1101: error: declaration of 'struct std::tr1::hash<long long int>' 5) /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.cc:470: error: no matching function for call to 'max(size_t, long unsigned int) 6) /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash table:829: error: using invalid field 'Internal::hash_code_base<Key, Value, ExtractKey, Equal, H1, H2, Internal::default_ranged_hash, false>::m_h1' 7) /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash table:823: error: using invalid field 'Internal::hash_code_base<Key, Value, ExtractKey, Equal, H1, H2, Internal::default_ranged_hash, false>::m_h1' 8) /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash table:837: error: using invalid field 'Internal::hash_code_base<Key, Value, ExtractKey, Equal, H1, H2, Internal::default_ranged_hash, false>::m_h1' =20 I think most of them related with hash. Thanks Sungkwon. -----Original Message----- From: Sriram Rao [mailto:sri...@gm...]=20 Sent: Wednesday, January 16, 2008 10:48 AM To: Sungkwon Eom Cc: kos...@li... Subject: Re: [Kosmosfs-users] compile error.. =20 Sungkwon, =20 I have gotten KFS to work on 32-bit machines. Getting it to compile is a little bit of issue due to differences in way types are defined. =20 Let us take this offline and get you going. Can you mail me the list of errors you got and I'll tell you how to fix them? =20 Thanks. =20 Sriram =20 On Jan 15, 2008 4:59 PM, Sungkwon Eom <sk...@ho...> wrote: > Thanks Sriram for prompt response. >=20 > Then, KFS is working on only 64bit machine? > Is there no support for 32bit machine? >=20 > Sungkwon. >=20 >=20 >=20 > -----Original Message----- > From: Sriram Rao [mailto:sri...@gm...] > Sent: Wednesday, January 16, 2008 3:05 AM > To: Sungkwon Eom > Cc: kos...@li... > Subject: Re: [Kosmosfs-users] compile error.. >=20 > Hello, >=20 > Are you on a 32-bit architecture? The error with "max" is likely due to > that. >=20 > Sriram >=20 > 2008/1/15 Sungkwon Eom <sk...@ho...>: > > > > > > > > > > Hello, > > > > > > > > I am novice in DFS. > > > > KFS is first DFS system. > > > > > > > > When I was trying to compile it (kfs/build/gmake), I met below > problem. > > > > (Sorry for attaching big contents.) > > > > > > Anybody let me know what is wrong? (I am also not good at g++) > > > > > > > > FYI, I am using gcc 4.1.2 on Debian 4.1. > > > > > > > > Thanks in advance > > > > skeom@kkoltong:~/kfs/kfs-0.1.2/build$ gmake > > > > [ 2%] Built target kfsCommon > > > > [ 4%] Built target kfsCommon-shared > > > > [ 22%] Built target meta > > > > [ 35%] Built target kfsIO > > > > [ 36%] Built target metaserver > > > > [ 37%] Building CXX object > src/cc/chunk/CMakeFiles/chunk.dir/ChunkManager.o > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table: > > In instantiation of 'Internal::hash_code_base<long long int, > std::pair<const > > long long int, KFS::ChunkInfoHandle_t*>, > > Internal::extract1st<std::pair<const long long int, > KFS::ChunkInfoHandle_t*> > > >, std::equal_to<long long int>, std::tr1::hash<long long int>, > > Internal::mod_range_hashing, Internal::default_ranged_hash, false>': > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table:1014: > > instantiated from 'std::tr1::hashtable<long long int, std::pair<const > long > > long int, KFS::ChunkInfoHandle_t*>, std::allocator<std::pair<const > long long > > int, KFS::ChunkInfoHandle_t*> >, Internal::extract1st<std::pair<const > long > > long int, KFS::ChunkInfoHandle_t*> >, std::equal_to<long long int>, > > std::tr1::hash<long long int>, Internal::mod_range_hashing, > > Internal::default_ranged_hash, Internal::prime_rehash_policy, false, > false, > > true>' > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/unor > dered_map:63: > > instantiated from 'std::tr1::unordered_map<long long int, > > KFS::ChunkInfoHandle_t*, std::tr1::hash<long long int>, > std::equal_to<long > > long int>, std::allocator<std::pair<const long long int, > > KFS::ChunkInfoHandle_t*> >, false>' > > > > /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.h:59: > instantiated > > from here > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table:863: > > error: 'Internal::hash_code_base<Key, Value, ExtractKey, Equal, H1, > H2, > > Internal::default_ranged_hash, false>::m_h1' has incomplete type > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/func > tional:1101: > > error: declaration of 'struct std::tr1::hash<long long int>' > > > > /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.cc: In constructor > > 'std::tr1::unordered_map<Key, T, Hash, Pred, Alloc, > > cache_hash_code>::unordered_map(typename std::tr1::hashtable<Key, > > std::pair<const _Key, _Tp>, Alloc, > Internal::extract1st<std::pair<const > > _Key, _Tp> >, Pred, Hash, Internal::mod_range_hashing, > > Internal::default_ranged_hash, Internal::prime_rehash_policy, > > cache_hash_code, false, true>::size_type, const typename > > std::tr1::hashtable<Key, std::pair<const _Key, _Tp>, Alloc, > > Internal::extract1st<std::pair<const _Key, _Tp> >, Pred, Hash, > > Internal::mod_range_hashing, Internal::default_ranged_hash, > > Internal::prime_rehash_policy, cache_hash_code, false, true>::hasher&, > const > > typename std::tr1::hashtable<Key, std::pair<const _Key, _Tp>, Alloc, > > Internal::extract1st<std::pair<const _Key, _Tp> >, Pred, Hash, > > Internal::mod_range_hashing, Internal::default_ranged_hash, > > Internal::prime_rehash_policy, cache_hash_code, false, > true>::key_equal&, > > const typename std::tr1::hashtable<Key, std::pair<const _Key, _Tp>, > Alloc, > > Internal::extract1st<std::pair<const _Key, _Tp> >, Pred, Hash, > > Internal::mod_range_hashing, Internal::default_ranged_hash, > > Internal::prime_rehash_policy, cache_hash_code, false, > > true>::allocator_type&) [with Key =3D long long int, T =3D > > KFS::ChunkInfoHandle_t*, Hash =3D std::tr1::hash<long long int>, = Pred =3D > > std::equal_to<long long int>, Alloc =3D = std::allocator<std::pair<const > long > > long int, KFS::ChunkInfoHandle_t*> >, bool cache_hash_code =3D false]': > > > > /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.cc:75: error: > invalid > > use of undefined type 'struct std::tr1::hash<long long int>' > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/func > tional:1101: > > error: declaration of 'struct std::tr1::hash<long long int>' > > > > /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.cc: In member > function > > 'int KFS::ChunkManager::WriteChunk(KFS::WriteOp*)': > > > > /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.cc:470: error: no > > matching function for call to 'max(size_t, long unsigned int)' > > > > /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.cc:476: warning: > > comparison between signed and unsigned integer expressions > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table: > > In member function 'size_t Internal::hash_code_base<Key, Value, > ExtractKey, > > Equal, H1, H2, Internal::default_ranged_hash, > false>::m_hash_code(const > > Key&) const [with Key =3D long long int, Value =3D std::pair<const = long > long > > int, KFS::ChunkInfoHandle_t*>, ExtractKey =3D > > Internal::extract1st<std::pair<const long long int, > KFS::ChunkInfoHandle_t*> > > >, Equal =3D std::equal_to<long long int>, H1 =3D = std::tr1::hash<long long > int>, > > H2 =3D Internal::mod_range_hashing]': > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table:1541: > > instantiated from 'typename std::tr1::hashtable<Key, Value, Allocator, > > ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, > > constant_iterators, unique_keys>::iterator std::tr1::hashtable<Key, > Value, > > Allocator, ExtractKey, Equal, H1, H2, H, RehashPolicy, > cache_hash_code, > > constant_iterators, unique_keys>::find(const Key&) [with Key =3D = long > long > > int, Value =3D std::pair<const long long int, KFS::ChunkInfoHandle_t*>, > > Allocator =3D std::allocator<std::pair<const long long int, > > KFS::ChunkInfoHandle_t*> >, ExtractKey =3D > > Internal::extract1st<std::pair<const long long int, > KFS::ChunkInfoHandle_t*> > > >, Equal =3D std::equal_to<long long int>, H1 =3D = std::tr1::hash<long long > int>, > > H2 =3D Internal::mod_range_hashing, H =3D = Internal::default_ranged_hash, > > RehashPolicy =3D Internal::prime_rehash_policy, bool cache_hash_code = =3D > false, > > bool constant_iterators =3D false, bool unique_keys =3D true]' > > > > /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.cc:110: > instantiated > > from here > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table:829: > > error: using invalid field 'Internal::hash_code_base<Key, Value, > ExtractKey, > > Equal, H1, H2, Internal::default_ranged_hash, false>::m_h1' > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table: > > In constructor 'Internal::hash_code_base<Key, Value, ExtractKey, > Equal, H1, > > H2, Internal::default_ranged_hash, false>::hash_code_base(const > ExtractKey&, > > const Equal&, const H1&, const H2&, const > Internal::default_ranged_hash&) > > [with Key =3D long long int, Value =3D std::pair<const long long = int, > > KFS::ChunkInfoHandle_t*>, ExtractKey =3D > Internal::extract1st<std::pair<const > > long long int, KFS::ChunkInfoHandle_t*> >, Equal =3D std::equal_to<long > long > > int>, H1 =3D std::tr1::hash<long long int>, H2 =3D > > Internal::mod_range_hashing]': > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table:1392: > > instantiated from 'std::tr1::hashtable<Key, Value, Allocator, > ExtractKey, > > Equal, H1, H2, H, RehashPolicy, cache_hash_code, constant_iterators, > > unique_keys>::hashtable(typename Allocator::size_type, const H1&, > const H2&, > > const H&, const Eq&, const Ex&, const Allocator&) [with Key =3D long > long int, > > Value =3D std::pair<const long long int, KFS::ChunkInfoHandle_t*>, > Allocator =3D > > std::allocator<std::pair<const long long int, KFS::ChunkInfoHandle_t*> > >, > > ExtractKey =3D Internal::extract1st<std::pair<const long long int, > > KFS::ChunkInfoHandle_t*> >, Equal =3D std::equal_to<long long int>, = H1 =3D > > std::tr1::hash<long long int>, H2 =3D Internal::mod_range_hashing, H = =3D > > Internal::default_ranged_hash, RehashPolicy =3D > Internal::prime_rehash_policy, > > bool cache_hash_code =3D false, bool constant_iterators =3D false, = bool > > unique_keys =3D true]' > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/unor > dered_map:86: > > instantiated from 'std::tr1::unordered_map<Key, T, Hash, Pred, Alloc, > > cache_hash_code>::unordered_map(typename std::tr1::hashtable<Key, > > std::pair<const _Key, _Tp>, Alloc, > Internal::extract1st<std::pair<const > > _Key, _Tp> >, Pred, Hash, Internal::mod_range_hashing, > > Internal::default_ranged_hash, Internal::prime_rehash_policy, > > cache_hash_code, false, true>::size_type, const typename > > std::tr1::hashtable<Key, std::pair<const _Key, _Tp>, Alloc, > > Internal::extract1st<std::pair<const _Key, _Tp> >, Pred, Hash, > > Internal::mod_range_hashing, Internal::default_ranged_hash, > > Internal::prime_rehash_policy, cache_hash_code, false, true>::hasher&, > const > > typename std::tr1::hashtable<Key, std::pair<const _Key, _Tp>, Alloc, > > Internal::extract1st<std::pair<const _Key, _Tp> >, Pred, Hash, > > Internal::mod_range_hashing, Internal::default_ranged_hash, > > Internal::prime_rehash_policy, cache_hash_code, false, > true>::key_equal&, > > const typename std::tr1::hashtable<Key, std::pair<const _Key, _Tp>, > Alloc, > > Internal::extract1st<std::pair<const _Key, _Tp> >, Pred, Hash, > > Internal::mod_range_hashing, Internal::default_ranged_hash, > > Internal::prime_rehash_policy, cache_hash_code, false, > > true>::allocator_type&) [with Key =3D long long int, T =3D > > KFS::ChunkInfoHandle_t*, Hash =3D std::tr1::hash<long long int>, = Pred =3D > > std::equal_to<long long int>, Alloc =3D = std::allocator<std::pair<const > long > > long int, KFS::ChunkInfoHandle_t*> >, bool cache_hash_code =3D = false]' > > > > /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.cc:75: > instantiated > > from here > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table:823: > > error: using invalid field 'Internal::hash_code_base<Key, Value, > ExtractKey, > > Equal, H1, H2, Internal::default_ranged_hash, false>::m_h1' > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table: > > In member function 'size_t Internal::hash_code_base<Key, Value, > ExtractKey, > > Equal, H1, H2, Internal::default_ranged_hash, > false>::bucket_index(const > > Internal::hash_node<Value, false>*, size_t) const [with Key =3D long > long int, > > Value =3D std::pair<const long long int, KFS::ChunkInfoHandle_t*>, > ExtractKey > > =3D Internal::extract1st<std::pair<const long long int, > > KFS::ChunkInfoHandle_t*> >, Equal =3D std::equal_to<long long int>, = H1 =3D > > std::tr1::hash<long long int>, H2 =3D Internal::mod_range_hashing]': > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table:1927: > > instantiated from 'void std::tr1::hashtable<Key, Value, Allocator, > > ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, > > constant_iterators, unique_keys>::m_rehash(typename > Allocator::size_type) > > [with Key =3D long long int, Value =3D std::pair<const long long = int, > > KFS::ChunkInfoHandle_t*>, Allocator =3D = std::allocator<std::pair<const > long > > long int, KFS::ChunkInfoHandle_t*> >, ExtractKey =3D > > Internal::extract1st<std::pair<const long long int, > KFS::ChunkInfoHandle_t*> > > >, Equal =3D std::equal_to<long long int>, H1 =3D = std::tr1::hash<long long > int>, > > H2 =3D Internal::mod_range_hashing, H =3D = Internal::default_ranged_hash, > > RehashPolicy =3D Internal::prime_rehash_policy, bool cache_hash_code = =3D > false, > > bool constant_iterators =3D false, bool unique_keys =3D true]' > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table:1684: > > instantiated from 'typename std::tr1::hashtable<Key, Value, Allocator, > > ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, > > constant_iterators, unique_keys>::iterator std::tr1::hashtable<Key, > Value, > > Allocator, ExtractKey, Equal, H1, H2, H, RehashPolicy, > cache_hash_code, > > constant_iterators, unique_keys>::m_insert_bucket(const Value&, > typename > > Allocator::size_type, typename std::tr1::hashtable<Key, Value, > Allocator, > > ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, > > constant_iterators, unique_keys>::hash_code_t) [with Key =3D long = long > int, > > Value =3D std::pair<const long long int, KFS::ChunkInfoHandle_t*>, > Allocator =3D > > std::allocator<std::pair<const long long int, KFS::ChunkInfoHandle_t*> > >, > > ExtractKey =3D Internal::extract1st<std::pair<const long long int, > > KFS::ChunkInfoHandle_t*> >, Equal =3D std::equal_to<long long int>, = H1 =3D > > std::tr1::hash<long long int>, H2 =3D Internal::mod_range_hashing, H = =3D > > Internal::default_ranged_hash, RehashPolicy =3D > Internal::prime_rehash_policy, > > bool cache_hash_code =3D false, bool constant_iterators =3D false, = bool > > unique_keys =3D true]' > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table:691: > > instantiated from 'typename Internal::map_base<K, Pair, > > Internal::extract1st<Pair>, true, Hashtable>::mapped_type& > > Internal::map_base<K, Pair, Internal::extract1st<Pair>, true, > > Hashtable>::operator[](const K&) [with K =3D long long int, Pair =3D > > std::pair<const long long int, KFS::ChunkInfoHandle_t*>, Hashtable = =3D > > std::tr1::hashtable<long long int, std::pair<const long long int, > > KFS::ChunkInfoHandle_t*>, std::allocator<std::pair<const long long > int, > > KFS::ChunkInfoHandle_t*> >, Internal::extract1st<std::pair<const long > long > > int, KFS::ChunkInfoHandle_t*> >, std::equal_to<long long int>, > > std::tr1::hash<long long int>, Internal::mod_range_hashing, > > Internal::default_ranged_hash, Internal::prime_rehash_policy, false, > false, > > true>]' > > > > /home/skeom/kfs/kfs-0.1.2/src/cc/chunk/ChunkManager.cc:121: > instantiated > > from here > > > > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/tr1/hash > table:837: > > error: using invalid field 'Internal::hash_code_base<Key, Value, > ExtractKey, > > Equal, H1, H2, Internal::default_ranged_hash, false>::m_h1' > > > > gmake[2]: *** [src/cc/chunk/CMakeFiles/chunk.dir/ChunkManager.o] Error > 1 > > > > gmake[1]: *** [src/cc/chunk/CMakeFiles/chunk.dir/all] Error 2 > > > > gmake: *** [all] Error 2 > > > > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > > > > > NOTICE: This email and any file transmitted are confidential and/or > legally > > privileged and intended only for the person(s) directly addressed. If > you > > are not the intended recipient, any use, copying, transmission, > > distribution, or other forms of dissemination is strictly prohibited. > If > > you have received this email in error, please notify the sender > immediately > > and permanently delete the email and files, if any. > > > > > > > ------------------------------------------------------------------------ > - > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Kosmosfs-users mailing list > > Kos...@li... > > https://lists.sourceforge.net/lists/listinfo/kosmosfs-users > > > > >=20 |