cancerit / BRASS

Breakpoints via assembly - Identifies breaks and attempts to assemble rearrangements in whole genome sequencing data.
GNU Affero General Public License v3.0
57 stars 20 forks source link

Error installing BRASS-c++ on a clean Ubuntu Xenial machine #46

Closed brainstorm closed 6 years ago

brainstorm commented 7 years ago
root@4255178edeb1:/home/ubuntu/BRASS# ./setup.sh install
(...)
g++  -o test/runtests test/runtests.o test/alignment.o test/header.o test/sam.o test/wire.o test/interval.o libcansam.a -lz
make: Leaving directory '/home/ubuntu/BRASS/cansam'
make: Entering directory '/home/ubuntu/BRASS/c++'
g++ -Wall -Wextra -g -I../cansam -O2   -c -o augment-bam.o augment-bam.cpp
augment-bam.cpp: In function 'int main(int, char**)':
augment-bam.cpp:158:46: error: 'BRASS_VERSION' was not declared in this scope
       std::cout << "augment-bam (Brass) " << BRASS_VERSION << "\n" << copyright;
                                              ^
In file included from augment-bam.cpp:49:0:
../cansam/cansam/sam/stream.h: At global scope:
../cansam/cansam/sam/stream.h:45:31: warning: 'sam::sam_format' defined but not used [-Wunused-variable]
 const std::ios_base::openmode sam_format
                               ^
<builtin>: recipe for target 'augment-bam.o' failed
make: *** [augment-bam.o] Error 1
make: Leaving directory '/home/ubuntu/BRASS/c++'
 failed.  See setup.log file for error messages. Failed to build brass (c++).
    Please check INSTALL file for items that should be installed by a package manager
keiranmraine commented 7 years ago

If you want to build the full stack please see the following for all apt dependancies:

https://github.com/cancerit/cgpbox/blob/feature/add_mapping/build/apt-build.sh

For the full CGP software stack:

https://github.com/cancerit/cgpbox/blob/feature/add_mapping/build/opt-build.sh

brainstorm commented 7 years ago

Thanks @keiranmraine! Just ran the first script and except the couple of conflicts below, the rest was "already installed and newest version":

+ apt-get -yq install libcairo2-dev
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libcairo2-dev : Depends: libfontconfig1-dev (>= 2.2.95) but it is not going to be installed
                 Depends: libfreetype6-dev (>= 2.1.10) but it is not going to be installed
                 Depends: libpng-dev
E: Unable to correct problems, you have held broken packages.

+ apt-get -yq install r-base r-base-dev
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 r-base-dev : Depends: libpng-dev
E: Unable to correct problems, you have held broken packages.

The original error still stands though, I fixed it through bioconda using a couple of install-time patches against cansam/makefile:

https://github.com/bioconda/bioconda-recipes/tree/master/recipes/brass

But it would be awesome to have it fixed upstream :)