Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

star-aligner 2.7.5b #1098

Merged
merged 3 commits into from
Aug 6, 2020

Conversation

SeekingMeaning
Copy link
Contributor

Created with brew bump-formula-pr.

@sjackman
Copy link
Member

sjackman commented Jul 18, 2020

On Linux

g++-5 -c   -O3 -std=c++11 -fopenmp -D'COMPILATION_TIME_PLACE="Fri Jul 17 23:47:29 UTC 2020 :/tmp/star-aligner-20200717-3472-17gwz0w/STAR-2.7.5a/source"' -pipe -Wall -Wextra SuperTranscriptome.cpp
SuperTranscriptome.cpp: In member function ‘void SuperTranscriptome::load(char*, std::vector<long long unsigned int>&, std::vector<long long unsigned int>&)’:
SuperTranscriptome.cpp:51:41: error: cannot convert ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ to ‘bool’ in initialization
         bool inGood = (superTrSJ >> sutr);

https://github.com/brewsci/homebrew-bio/pull/1098/checks?check_run_id=883794222#step:5:188

Report the issue upstream I suppose. The following untested patch may work.

-bool inGood = (superTrSJ >> sutr);
+bool inGood = !(superTrSJ >> sutr).fail();

See https://en.cppreference.com/w/cpp/io/basic_ios/operator_bool

@sjackman
Copy link
Member

sjackman commented Jul 18, 2020

On macOS

g++-10 -c   -O3 -std=c++11 -fopenmp -D'COMPILATION_TIME_PLACE="Fri Jul 17 23:49:11 UTC 2020 :/private/tmp/star-aligner-20200717-15994-8zq8u8/STAR-2.7.5a/source"' -D'COMPILE_FOR_MAC' -pipe -Wall -Wextra Genome_genomeLoad.cpp
Genome_genomeLoad.cpp: In member function 'void Genome::genomeLoad()':
Genome_genomeLoad.cpp:152:35: error: 'log' was not declared in this scope; did you mean 'long'?
  152 |         GstrandBit = (uint) floor(log(nGenome)/log(2))+1;
      |                                   ^~~
      |                                   long

https://github.com/brewsci/homebrew-bio/pull/1098/checks?check_run_id=883794264#step:4:175

Report the issue upstream.
It may be helpful to the upstream authors to see if you can replicate the issue with GCC 10 on Linux.

@SeekingMeaning SeekingMeaning changed the title star-aligner 2.7.5a star-aligner 2.7.5b Aug 5, 2020
@SeekingMeaning
Copy link
Contributor Author

https://github.com/brewsci/homebrew-bio/runs/947644744?check_suite_focus=true#step:4:284

clang: clangerror: : unsupported option '-static-libgcc'

@sjackman
Copy link
Member

sjackman commented Aug 5, 2020

clang: clangerror: : unsupported option '-static-libgcc'

It looks to me like STAR expects to be built with GCC and current fails to build with Clang. I can't say how much work it would be to get STAR to build with Clang. You could report this error upstream if you wished.

Copy link
Member

@sjackman sjackman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good show!

@SeekingMeaning SeekingMeaning merged commit 52ca305 into brewsci:develop Aug 6, 2020
@SeekingMeaning SeekingMeaning deleted the star-aligner-2.7.5a branch August 6, 2020 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants