GithubHelp home page GithubHelp logo

Comments (2)

EWLameijer avatar EWLameijer commented on August 19, 2024 1

Hello Odoland,

at first sight, you seem to have done things correctly, though I'm a bit confused why you called the ./INSTALL with the samtools directory, as current versions of Pindel require the htslib directory.

Looking at the error message, it refers to clang, which means that for some reason g++ was not properly 'overruled' to gcc.

As I'm not much of an OSX expert, I can only guess to the reason - is it possible that using cd src, make clean, make CXX=g++-6 did not work properly? I would in any case try to make it four 'normal' commands (cd src [ENTER] make clean [ENTER] etc.) [this may not work, but I can't check it myself as I still need to call a OSX-expert to undestroy my compiler installation]

Perhaps Kai has some tips, but in any case I would search in the direction of how to overload clang correctly.

Best regards,

Eric-Wubbo

from pindel.

odoland avatar odoland commented on August 19, 2024

Hi, I finally got pindel to compile successfully on OS X, and I would like to share how in here for others who may be Googling the problem.

First, follow the FAQ. Install g++ and gcc (any version after 4.9 has OpenMP). Then, type the command so the compiler OS X uses is gcc-6 and not clang.

$CC=gcc-6 CXX=g++-6 ./INSTALL /path/to/htslib

I ran into another error after this on the bddata.cpp. It was:
error: call of overloaded abs is ambiguous

After an extensive google search, I found this,
http://stackoverflow.com/questions/30084577/ambiguous-call-to-abs

So I went to the bddata.cpp file (located under /htslib/src), opened it up with vim editor.

I added these libraries to the header:

#include <cmath>
#include <cstdlib>
#include <cstdint>

and then I replaced every instance of abs( in the code to fabs(
The command to find and replace with vim is
:%s/abs(/fabs(/g
Find each occurrence of 'abs(' (in all lines), and replace it with 'fabs('.

After this, it finally worked!

Best of luck!

from pindel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.