Closed rekado closed 2 years ago
We're using Makefile
, not meson.build
.
Thanks @rekado. I'll fix it.
https://github.com/biod/sambamba/commit/8f4a6edb3d03d91361088ef3562b954d641f1c4d fixes the build. I'll do some more testing and a release in the coming days.
Dear @rekado, we have a new 0.8.2 release. The Makefile should build fine on Guix (as it is my dev system). See also
Thank you!
I'm setting CC=gcc, because otherwise cc
is not found. Unfortunately, the linking stage fails:
linking...
ldc2 -wi -I. -IBioD -g -J. -O3 -release -enable-inlining -boundscheck=off -L-lz -of=bin/sambamba-0.8.2 bin/sambamba-0.8.2.o -L-L/gnu/store/p5fgysbcnnp8b1d91mrvjvababmczga0-python-3.9.6/lib:/gnu/store/qannyaplwfw65kk9mqydsz0igwabm505-ldc-1.27.1/lib:/gnu/store/c164sc1h1095y566gcgc1w34nfg48k1x-lz4-1.9.3/lib:/gnu/store/2i0zpa5w320y8m4zbqk1va8vs6dbawv0-zlib-1.2.11/lib:/gnu/store/w6zv2mz56wyxr471q38a3cmzm4iqimy8-bzip2-1.0.8/lib:/gnu/store/72kpdqplq4nc87fm7ch47kxy3nlkzsyx-xz-5.2.5/lib:/gnu/store/jazwfsj2v41yih2yzw5nydqgdz1hgfm4-file-5.39/lib:/gnu/store/v45pjc1yqmy59j9ff913p3ywn9qk4lqx-gawk-5.1.0/lib:/gnu/store/6mqcv52gwn2dnbislgv9k99525mzmrrs-binutils-2.37/lib:/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib:/gnu/store/3ywv7s8d38rgcq7ljmc1s084358a2m3h-glibc-2.33-static/lib:/gnu/store/0brdikxqk59hdr47qabcm3sya001d8vf-glibc-utf8-locales-2.33/lib -L-lpthread -L-lm -L-lz -L-llz4
collect2: fatal error: cannot find ‘ld’
compilation terminated.
Error: /gnu/store/vakvgvrb839igv16jkif4lmx11d25jqb-gcc-10.3.0/bin/gcc failed with status: 1
make: *** [Makefile:94: bin/sambamba-0.8.2] Error 1
I wonder about two things:
You should use the standard makefile. And, yes, ldc requires the gold linker. Almost there!
In the guix-build shell I simply run
CC=gcc make release
which results in an optimized sambamba.
Excellent, thank you. I've updated sambamba to 0.8.2 with Guix commit 4acf3251508967e83a54818e1859c7594102a6ec.
On the core-updates-frozen branch of GNU Guix we cannot build Sambamba 0.8.1.
This is the build output:
To Reproduce
The same build errors appear with Sambamba 0.8.1.