Skip to content

Problem compiling STITCH #45

@rmott

Description

@rmott

Hi Robbie

I get the following error when I tried to compile and install the latest version:

These are the commands I used:

git clone --recursive https://github.com/rwdavies/STITCH.git
cd STITCH
./scripts/install-dependencies.sh
cd releases
wget https://github.com/rwdavies/stitch/releases/download/1.6.5/STITCH_1.6.5.tar.gz

which all worked fine (I think), but for this I get:

R CMD INSTALL STITCH_1.6.5.tar.gz
......
make[1]: Leaving directory /tmp/Rtmpk4rgvu/R.INSTALL7ac33fe861c2/STITCH/src/SeqLib/src' fatal: Not a git repository: ../../../../.git/modules/STITCH/src/SeqLib/modules/htslib make[1]: Entering directory /tmp/Rtmpk4rgvu/R.INSTALL7ac33fe861c2/STITCH/src/SeqLib/htslib'
gcc -std=c99 -g -Wall -O2 -I. -I/usr/local/include -fPIC -c -o kfunc.o kfunc.c
kfunc.c: In function ‘kf_erfc’:
kfunc.c:74:16: error: ‘M_SQRT2’ undeclared (first use in this function)
z = fabs(x) * M_SQRT2;
^
kfunc.c:74:16: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [kfunc.o] Error 1
make[1]: Leaving directory `/tmp/Rtmpk4rgvu/R.INSTALL7ac33fe861c2/STITCH/src/SeqLib/htslib'
make: *** [SeqLib] Error 2
ERROR: compilation failed for package ‘STITCH’

  • removing ‘/share/apps/mottlab/R-3.6.1/lib64/R/library/STITCH’

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions