Skip to content

Conversation

@wookietreiber
Copy link
Contributor

  • this causes compilation failures using gcc 6.1.1, e.g.:
tophat_reports.cpp:2708:128: error: no matching function for call to ‘make_pair(Junction, JunctionStats&)’
     gtf_junctions.insert(make_pair<Junction, JunctionStats>(Junction(ref_id, left_coord, right_coord, antisense), junction_stat));
                                                                                                                                ^
In file included from /usr/include/c++/6.1.1/bits/stl_algobase.h:64:0,
                 from /usr/include/c++/6.1.1/bits/char_traits.h:39,
                 from /usr/include/c++/6.1.1/string:40,
                 from /usr/include/boost/thread/exceptions.hpp:20,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:10,
                 from /usr/include/boost/thread/thread_only.hpp:17,
                 from /usr/include/boost/thread/thread.hpp:12,
                 from /usr/include/boost/thread.hpp:13,
                 from tophat_reports.cpp:19:
/usr/include/c++/6.1.1/bits/stl_pair.h:425:5: note: candidate: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
     make_pair(_T1&& __x, _T2&& __y)
     ^~~~~~~~~
/usr/include/c++/6.1.1/bits/stl_pair.h:425:5: note:   template argument deduction/substitution failed:
tophat_reports.cpp:2708:128: note:   cannot convert ‘junction_stat’ (type ‘JunctionStats’) to type ‘JunctionStats&&’
     gtf_junctions.insert(make_pair<Junction, JunctionStats>(Junction(ref_id, left_coord, right_coord, antisense), junction_stat));
                                                                                                                                ^
Makefile:1421: recipe for target 'tophat_reports.o' failed
  • these failures are possibly related to a newer default c++ standard that is used with the new gcc

@mbparsa
Copy link

mbparsa commented Jul 25, 2016

@wookietreiber: I am having hard time running unit test , would appreciate if you can let me know which version with what changes should I use in order to get the unit test up and running? perhaps IDE name and version which is suitable for CppUnit.

@wookietreiber
Copy link
Contributor Author

@mbparsa What unit test? I'm not a tophat dev, sorry, I don't know what you're talking about.

@mbparsa
Copy link

mbparsa commented Jul 25, 2016

@wookietreiber : I thought you might be able to help, since I can't get any response from the main developers. The unit test inside tests folder. I am trying to import the repository into NetBeans +UnitTest

@wookietreiber
Copy link
Contributor Author

I have just worked with the release tarballs from here. These don't include tests.

@mbparsa
Copy link

mbparsa commented Jul 26, 2016

@wookietreiber ok, thanks

@SoapGentoo
Copy link

SoapGentoo commented Sep 22, 2016

Using std::make_pair with explicit template arguments is self-defeating - the only reason you would use make_pair is to actually have argument type deduction (http://www.advogato.org/person/redi/diary.html?start=239 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43785).

@wookietreiber
Copy link
Contributor Author

@SoapGentoo Yes, indeed.

Thus, please merge :)

@SoapGentoo
Copy link

@wookietreiber I would love to 😄 , but I'm not a maintainer, just pitching in that we're having the same problem in Gentoo.

rmsds added a commit to epfl-scitas/spack that referenced this pull request May 7, 2019
rmsds added a commit to epfl-scitas/spack that referenced this pull request May 9, 2019
* a patch exists: DaehwanKimLab/tophat#38
but might have unexpected side effects
alalazo pushed a commit to epfl-scitas/spack that referenced this pull request May 9, 2019
* Add TopHat package release 2.1.1

* Merge changes from cornalin

* TopHat package release 2.1.2

* tophat conflicts with gcc@6: (#234)

* a patch exists: DaehwanKimLab/tophat#38
but might have unexpected side effects
alalazo pushed a commit to epfl-scitas/spack that referenced this pull request May 31, 2019
* Add TopHat package release 2.1.1

* Merge changes from cornalin

* TopHat package release 2.1.2

* tophat conflicts with gcc@6: (#234)

* a patch exists: DaehwanKimLab/tophat#38
but might have unexpected side effects
- this causes compilation failures using gcc 6.1.1
- these failures are possibly related to a newer default c++
  standard that is used with the new gcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants