Hi,

I started packaging centrifuge[1] and hit a build error which
is most probably caused by gcc-7 incompatibility:

...
In file included from centrifuge_build.cpp:27:0:
bt2_idx.h: In static member function 'static std::pair<Ebwt<index_t>*, 
Ebwt<index_t>*> Ebwt<index_t>::fromStrings(const 
EList<std::__cxx11::basic_string<char> >&, bool, int, int, bool,     int32_t, 
int32_t, int32_t, const string&, bool, index_t, index_t, index_t, int, 
uint32_t, bool, bool, bool)':
bt2_idx.h:1053:3: warning: 'template<class> class std::auto_ptr' is deprecated 
[-Wdeprecated-declarations]
   auto_ptr<stringstream> ss(new stringstream());
   ^~~~~~~~
In file included from /usr/include/c++/7/memory:80:0,
                 from bt2_idx.h:28,
                 from centrifuge_build.cpp:27:
/usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from centrifuge_build.cpp:27:0:
bt2_idx.h:1057:3: warning: 'template<class> class std::auto_ptr' is deprecated 
[-Wdeprecated-declarations]
   auto_ptr<FileBuf> fb(new FileBuf(ss.get()));
   ^~~~~~~~
In file included from /usr/include/c++/7/memory:80:0,
                 from bt2_idx.h:28,
                 from centrifuge_build.cpp:27:
/usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
   template<typename> class auto_ptr;
...


Unfortunately I have no idea about C++.  Any idea how to fix this?

Kind regards

      Andreas.


[1] https://anonscm.debian.org/git/debian-med/centrifuge.git

-- 
http://fam-tille.de

Reply via email to