Re: [Kosmosfs-users] Trouble building kfs-0.2.3 release
Status: Alpha
Brought to you by:
sriramsrao
From: Sriram R. <sri...@gm...> - 2009-01-14 06:33:08
|
Cool....The code that had trouble compiling on 4.1.2 is the KFS emulator. It has the tool for kfs-fsck. We use gcc-4.2.3/gcc-4.3.2 to compile and run the code. Any chance you can upgrade your gcc compiler? If not, let me see if we can get access to a 4.1.2 compiler and generate a fix for you. Sriram On Tue, Jan 13, 2009 at 10:21 PM, David Braginsky <da...@fa...> wrote: > That worked. Am I missing something important? > >> -----Original Message----- >> From: Sriram Rao [mailto:sri...@gm...] >> Sent: Tuesday, January 13, 2009 10:19 PM >> To: David Braginsky >> Cc: kos...@li... >> Subject: Re: [Kosmosfs-users] Trouble building kfs-0.2.3 release >> >> David, >> >> Can you try: >> - Edit the top-level CMakeLists.txt and comment out the following line: >> add_subdirectory (src/cc/emulator) >> >> That is, put a # sign at the beginning of the line and recompile. >> >> Sriram >> >> >> On Tue, Jan 13, 2009 at 6:47 PM, David Braginsky <da...@fa...> >> wrote: >> > Having trouble building the latest release, any help would be >> appreciated. I am on amd64 arch. >> > >> > Using latest boost and log4cpp >> > >> > # gcc --version >> > gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14) >> > Copyright (C) 2006 Free Software Foundation, Inc. >> > This is free software; see the source for copying conditions. There >> is NO >> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >> PURPOSE. >> > >> > [ro...@op...c1 /tmp/kfs-0.2.3/build]# gmake >> > . >> > . >> > . >> > [ 92%] Built target KfsWriter >> > Linking CXX executable mkfstree >> > [ 93%] Built target mkfstree >> > [ 94%] Building CXX object >> src/cc/emulator/CMakeFiles/kfsEmulator.dir/ChunkServerEmulator.o >> > /usr/lib/gcc/x86_64-redhat- >> linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable: In >> instantiation of âInternal::hash_code_base<long long int, >> std::pair<const long long int, std::vector<long unsigned int, >> std::allocator<long unsigned int> > >, >> Internal::extract1st<std::pair<const long long int, std::vector<long >> unsigned int, std::allocator<long unsigned int> > > >, >> std::equal_to<long long int>, std::tr1::hash<long long int>, >> Internal::mod_range_hashing, Internal::default_ranged_hash, false>â: >> > /usr/lib/gcc/x86_64-redhat- >> linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:1014: >> instantiated from âstd::tr1::hashtable<long long int, std::pair<const >> long long int, std::vector<long unsigned int, std::allocator<long >> unsigned int> > >, std::allocator<std::pair<const long long int, >> std::vector<long unsigned int, std::allocator<long unsigned int> > > >, >> Internal::extract1st<std::pair<const long long int, std::vector<long >> unsigned int, std::allocator<long unsigned int> > > >, >> 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/x86_64-redhat- >> linux/4.1.2/../../../../include/c++/4.1.2/tr1/unordered_map:63: >> instantiated from âstd::tr1::unordered_map<long long int, >> std::vector<long unsigned int, std::allocator<long unsigned int> >, >> std::tr1::hash<long long int>, std::equal_to<long long int>, >> std::allocator<std::pair<const long long int, std::vector<long unsigned >> int, std::allocator<long unsigned int> > > >, false>â >> > /tmp/kfs-0.2.3/src/cc/emulator/LayoutEmulator.h:77: instantiated >> from here >> > /usr/lib/gcc/x86_64-redhat- >> linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable: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/x86_64-redhat- >> linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional:1101: error: >> declaration of âstruct std::tr1::hash<long long int>â >> > /tmp/kfs-0.2.3/src/cc/emulator/LayoutEmulator.h: 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 = long long >> int, T = std::vector<long unsigned int, std::allocator<long unsigned >> int> >, Hash = std::tr1::hash<long long int>, Pred = std::equal_to<long >> long int>, Alloc = std::allocator<std::pair<const long long int, >> std::vector<long unsigned int, std::allocator<long unsigned int> > > >, >> bool cache_hash_code = false]â: >> > /tmp/kfs-0.2.3/src/cc/emulator/LayoutEmulator.h:42: error: invalid >> use of undefined type âstruct std::tr1::hash<long long int>â >> > /usr/lib/gcc/x86_64-redhat- >> linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional:1101: error: >> declaration of âstruct std::tr1::hash<long long int>â >> > /usr/lib/gcc/x86_64-redhat- >> linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable: 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 = long long int, Value = >> std::pair<const long long int, std::vector<long unsigned int, >> std::allocator<long unsigned int> > >, ExtractKey = >> Internal::extract1st<std::pair<const long long int, std::vector<long >> unsigned int, std::allocator<long unsigned int> > > >, Equal = >> std::equal_to<long long int>, H1 = std::tr1::hash<long long int>, H2 = >> Internal::mod_range_hashing]â: >> > /usr/lib/gcc/x86_64-redhat- >> linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable: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 = long long int, Value = >> std::pair<const long long int, std::vector<long unsigned int, >> std::allocator<long unsigned int> > >, Allocator = >> std::allocator<std::pair<const long long int, std::vector<long unsigned >> int, std::allocator<long unsigned int> > > >, ExtractKey = >> Internal::extract1st<std::pair<const long long int, std::vector<long >> unsigned int, std::allocator<long unsigned int> > > >, Equal = >> std::equal_to<long long int>, H1 = std::tr1::hash<long long int>, H2 = >> Internal::mod_range_hashing, H = Internal::default_ranged_hash, >> RehashPolicy = Internal::prime_rehash_policy, bool cache_hash_code = >> false, bool constant_iterators = false, bool unique_keys = true]â >> > /usr/lib/gcc/x86_64-redhat- >> linux/4.1.2/../../../../include/c++/4.1.2/tr1/unordered_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 = long long >> int, T = std::vector<long unsigned int, std::allocator<long unsigned >> int> >, Hash = std::tr1::hash<long long int>, Pred = std::equal_to<long >> long int>, Alloc = std::allocator<std::pair<const long long int, >> std::vector<long unsigned int, std::allocator<long unsigned int> > > >, >> bool cache_hash_code = false]â >> > /tmp/kfs-0.2.3/src/cc/emulator/LayoutEmulator.h:42: instantiated >> from here >> > /usr/lib/gcc/x86_64-redhat- >> linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:823: 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/emulator/CMakeFiles/kfsEmulator.dir/ChunkServerEmulator.o] >> Error 1 >> > gmake[1]: *** [src/cc/emulator/CMakeFiles/kfsEmulator.dir/all] Error >> 2 >> > gmake: *** [all] Error 2 >> > >> > --------------------------------------------------------------------- >> --------- >> > This SF.net email is sponsored by: >> > SourcForge Community >> > SourceForge wants to tell your story. >> > http://p.sf.net/sfu/sf-spreadtheword >> > _______________________________________________ >> > Kosmosfs-users mailing list >> > Kos...@li... >> > https://lists.sourceforge.net/lists/listinfo/kosmosfs-users >> > > |