This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Barnacle Setup Fails

Trying to install Barnacle, from the BC Cancer Agency, on Ubuntu. When I run the setup script it attempts to compile some code and then I get this:

 /barnacle-1.0.0/src/alignment_processing/gap_realigner.cpp:1438:16:
 error: ignoring return value of ‘int mkstemp(char*)’, declared with
 attribute warn_unused_result [-Werror=unused-result] 

cc1plus: all warnings being treated as errors

This seems like a strange problem to have. Why are warnings being treated as errors if these warnings are in there? Is this not a warning that gets flagged on other OS's?

rna-seq

1 answer

I think this relates to some rather strict error checking in the Ubuntu compilers, as discussed here and here.

One solution might be:

export CFLAGS="-O2 -U_FORTIFY_SOURCE"

then try again.

Log in to answer this question.