biod / sambamba

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

compilation error: no identifier for declarator Usage #441

Closed adily777 closed 4 years ago

adily777 commented 4 years ago

Hello,

I installed LDC ldc2-1.21.0-linux-x86_64.tar.xz (also tried with ldc2-1.18.0-linux-x86_64.tar.xz), cloned the sambamba v0.7.1 and run make.

I have got this error:

cd htslib && make -j8
make[1]: Entering directory '/home/dolevr/sambamba/htslib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/dolevr/sambamba/htslib'
mkdir -p bin/
compile single object...
ldc2 -singleobj -wi -I. -IBioD -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 BioD/contrib/undead/cstream.d BioD/contrib/undead/doformat.d BioD/contrib/undead/internal/file.d BioD/contrib/undead/stream.d BioD/contrib/undead/utf.d utils/version_.d BioD/bio/core/base.d BioD/bio/core/bgzf/block.d BioD/bio/core/bgzf/chunk.d BioD/bio/core/bgzf/compress.d BioD/bio/core/bgzf/constants.d BioD/bio/core/bgzf/inputstream.d BioD/bio/core/bgzf/outputstream.d BioD/bio/core/bgzf/virtualoffset.d BioD/bio/core/call.d BioD/bio/core/decompress.d BioD/bio/core/genotype.d BioD/bio/core/kmer.d BioD/bio/core/region.d BioD/bio/core/sequence.d BioD/bio/core/tinymap.d BioD/bio/core/utils/algo.d BioD/bio/core/utils/bylinefast.d BioD/bio/core/utils/exception.d BioD/bio/core/utils/format.d BioD/bio/core/utils/memoize.d BioD/bio/core/utils/outbuffer.d BioD/bio/core/utils/range.d BioD/bio/core/utils/roundbuf.d BioD/bio/core/utils/stream.d BioD/bio/core/utils/switchendianness.d BioD/bio/core/utils/tmpfile.d BioD/bio/core/utils/zlib.d BioD/bio/std/experimental/hts/bam/header.d BioD/bio/std/experimental/hts/bam/reader.d BioD/bio/std/experimental/hts/bam/writer.d BioD/bio/std/experimental/hts/bgzf.d BioD/bio/std/experimental/hts/bgzf_writer.d BioD/bio/std/experimental/hts/constants.d BioD/bio/std/experimental/hts/hashing.d BioD/bio/std/experimental/hts/logger.d BioD/bio/std/experimental/hts/pileup.d BioD/bio/std/experimental/hts/reads.d BioD/bio/std/experimental/hts/unpack.d BioD/bio/std/file/fai.d BioD/bio/std/file/fasta.d BioD/bio/std/file/fastq.d BioD/bio/std/genotype/maf.d BioD/bio/std/genotype/snp.d BioD/bio/std/hts/bam/abstractreader.d BioD/bio/std/hts/bam/bai/bin.d BioD/bio/std/hts/bam/bai/indexing.d BioD/bio/std/hts/bam/baifile.d BioD/bio/std/hts/bam/baseinfo.d BioD/bio/std/hts/bam/cigar.d BioD/bio/std/hts/bam/constants.d BioD/bio/std/hts/bam/md/core.d BioD/bio/std/hts/bam/md/operation.d BioD/bio/std/hts/bam/md/parse.d BioD/bio/std/hts/bam/md/reconstruct.d BioD/bio/std/hts/bam/multireader.d BioD/bio/std/hts/bam/pileup.d BioD/bio/std/hts/bam/randomaccessmanager.d BioD/bio/std/hts/bam/read.d BioD/bio/std/hts/bam/reader.d BioD/bio/std/hts/bam/readrange.d BioD/bio/std/hts/bam/reference.d BioD/bio/std/hts/bam/referenceinfo.d BioD/bio/std/hts/bam/region.d BioD/bio/std/hts/bam/splitter.d BioD/bio/std/hts/bam/tagvalue.d BioD/bio/std/hts/bam/validation/alignment.d BioD/bio/std/hts/bam/validation/samheader.d BioD/bio/std/hts/bam/writer.d BioD/bio/std/hts/iontorrent/flowcall.d BioD/bio/std/hts/iontorrent/flowindex.d BioD/bio/std/hts/sam/header.d BioD/bio/std/hts/sam/reader.d BioD/bio/std/hts/sam/utils/fastrecordparser.d BioD/bio/std/hts/sam/utils/recordparser.d BioD/bio/std/hts/snpcallers/maq.d BioD/bio/std/hts/snpcallers/simple.d BioD/bio/std/hts/thirdparty/msgpack.d BioD/bio/std/hts/utils/array.d BioD/bio/std/hts/utils/graph.d BioD/bio/std/hts/utils/samheadermerger.d BioD/bio/std/hts/utils/value.d BioD/bio/std/maf/block.d BioD/bio/std/maf/parser.d BioD/bio/std/maf/reader.d BioD/bio/std/range/splitter.d BioD/bio/std/sff/constants.d BioD/bio/std/sff/index.d BioD/bio/std/sff/read.d BioD/bio/std/sff/reader.d BioD/bio/std/sff/readrange.d BioD/bio/std/sff/utils/roundup.d BioD/bio/std/sff/writer.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
utils/ldc_version_info_.d(1): Error: no identifier for declarator Usage
utils/ldc_version_info_.d(1): Error: declaration expected, not :
Makefile:92: recipe for target 'singleobj' failed
make: *** [singleobj] Error 1

What can be the reason for that? Thank you, Adily

pjotrp commented 4 years ago

Run the version script - see the makefile.

adily777 commented 4 years ago

Sorry, but how should I run the version script? Is it the utils/version_.d or utils/ldc_versioninfo.d file?

guijie2015 commented 4 years ago

Sorry, but how should I run the version script? Is it the utils/version_.d or utils/ldc_versioninfo.d file?

I find how to solve the problem. I delete 'shell' in Makefile.Then it run.