biod / sambamba

Tools for working with SAM/BAM data
http://thebird.nl/blog/D_Dragon.html
GNU General Public License v2.0
558 stars 104 forks source link

Error: undefined identifier #416

Closed kalon33 closed 3 years ago

kalon33 commented 4 years ago

Compiling 0.7.1 version with this environment under Debian Buster:

The Meson build system
Version: 0.49.2
Source dir: /home/my/packaging/sambamba-0.7.1
Build dir: /home/my/packaging/sambamba-0.7.1/obj-x86_64-linux-gnu
Build type: native build
Project name: Sambamba
Project version: undefined
Appending DFLAGS from environment: '-O -g -release -wi'
Appending LDFLAGS from environment: '-Wl,-z,relro -Wl,-z,now'
Native D compiler: ldc2 (llvm 1.12.0 "LDC - the LLVM D compiler (1.12.0):")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29)
Dependency undead found: YES 1.0.7
Dependency biod found: YES 0.2.2
Dependency liblz4 found: YES 1.8.3
Dependency htslib found: YES 1.9
Program ldmd2 found: YES (/usr/bin/ldmd2)
Program mkdir found: YES (/bin/mkdir)

I got this error:

FAILED: sambamba@exe/sambamba_sort.d.o 
ldc2 -I=sambamba@exe -I=. -I=.. -I/usr/include/d -I/usr/include/d/bio -enable-color -O -g -release -wi   -of='sambamba@exe/sambamba_sort.d.o' -c ../sambamba/sort.d
../sambamba/sort.d(223): Error: undefined identifier `compareReadNamesAndMates`
../sambamba/sort.d(228): Error: undefined identifier `mixedCompareReadNamesAndMates`
../sambamba/sort.d(232): Error: undefined identifier `compareReadNamesAsPicard`
../sambamba/sort.d(280): Error: undefined identifier `compareReadNamesAndMates`
../sambamba/sort.d(285): Error: undefined identifier `mixedCompareReadNamesAndMates`
../sambamba/sort.d(289): Error: undefined identifier `compareReadNamesAsPicard`

Could you help me solve this problem?

Thanks :)

pjotrp commented 4 years ago

I am not using meson.

kalon33 commented 4 years ago

@pjotrp Not using Meson and using make only gives the same error:

kalon33@01291b8d8fe3:/home/kalon33/sambamba-0.7.1# make
mkdir -p bin/
compile single object...
ldc2 -singleobj -wi -I. -IBioD -I/usr/include/d/bio -g -J. -O3 -release -enable-inlining -boundscheck=off -L-lz -c -of=bin/sambamba-0.7.1.o utils/ldc_version_info_.d utils/lz4.d utils/strip_bcf_header.d  utils/version_.d cram/exception.d cram/htslib.d cram/reader.d cram/reference.d cram/slicereader.d cram/wrappers.d cram/writer.d sambamba/depth.d sambamba/fixbins.d sambamba/flagstat.d sambamba/index.d sambamba/main.d sambamba/markdup.d sambamba/markdup2.d sambamba/merge.d sambamba/pileup.d sambamba/slice.d sambamba/sort.d sambamba/subsample.d sambamba/utils/common/bed.d sambamba/utils/common/file.d sambamba/utils/common/filtering.d sambamba/utils/common/intervaltree.d sambamba/utils/common/ldc_gc_workaround.d sambamba/utils/common/overwrite.d sambamba/utils/common/pratt_parser.d sambamba/utils/common/progressbar.d sambamba/utils/common/queryparser.d sambamba/utils/common/readstorage.d sambamba/utils/common/tmpdir.d sambamba/utils/view/alignmentrangeprocessor.d sambamba/utils/view/headerserializer.d sambamba/validate.d sambamba/view.d thirdparty/mergesort.d thirdparty/unstablesort.d
sambamba/sort.d(223): Error: undefined identifier compareReadNamesAndMates
sambamba/sort.d(228): Error: undefined identifier mixedCompareReadNamesAndMates
sambamba/sort.d(232): Error: undefined identifier compareReadNamesAsPicard
sambamba/sort.d(280): Error: undefined identifier compareReadNamesAndMates
sambamba/sort.d(285): Error: undefined identifier mixedCompareReadNamesAndMates
sambamba/sort.d(289): Error: undefined identifier compareReadNamesAsPicard
make: *** [Makefile:93: singleobj] Error 1

So it seems unrelated to Meson.

pjotrp commented 4 years ago

I'll look into it. Strangely all builds pass here and on Travis-CI.