Skip to content

Installation error with gcc 14.2 #82

@davidhbrann

Description

@davidhbrann

Hi, I believe this error is similar to #79.

I'm using a version of GCC 14.2.0 on a SLURM RHEL 9 computing cluster with x86-64 architecture. However, everything compiles fine with Clang 15 on my local macbook.

cd src; make; cd ..
make[1]: Entering directory '/source/pairix/src'
make[2]: Entering directory '/source/pairix/src'.
gcc -c -g -w -O2 -fPIC  -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE  bgzf.c -o bgzf.o
gcc -c -g -w -O2 -fPIC  -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE  kstring.c -o kstring.o
gcc -c -g -w -O2 -fPIC  -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE  knetfile.c -o knetfile.o
gcc -c -g -w -O2 -fPIC  -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE  index.c -o index.o
gcc -c -g -w -O2 -fPIC  -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE  bedidx.c -o bedidx.o
ar -csru libpairix.a bgzf.o kstring.o knetfile.o index.o bedidx.o
gcc -c -g -w -O2 -fPIC  -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE  main.c -o main.o
gcc -g -w -O2 -fPIC  -o pairix main.o -L. -lpairix -lm  -lz
gcc -c -g -w -O2 -fPIC  -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE  bgzip.c -o bgzip.o
gcc -g -w -O2 -fPIC  -o bgzip bgzip.o bgzf.o knetfile.o -lz
gcc -c -g -w -O2 -fPIC  -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE  pairs_merger.c -o pairs_merger.o
gcc -g -w -O2 -fPIC  -o pairs_merger pairs_merger.o -L. -lpairix -lm  -lz
gcc -c -g -w -O2 -fPIC  -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE  streamer_1d.c -o streamer_1d.o
streamer_1d.c: In function ‘stream_1d’:
streamer_1d.c:31:18: error: assignment to ‘char **’ from incompatible pointer type ‘const char **’ [-Wincompatible-pointer-types]
   31 |     chrpair_list = ti_seqname(tb->idx, &n_chrpairs);
      |                  ^
make[2]: *** [Makefile:15: streamer_1d.o] Error 1
make[2]: Leaving directory '/source/pairix/src'
make[1]: *** [Makefile:18: all-recur] Error 1
make[1]: Leaving directory '/source/pairix/src' 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions