biod / sambamba

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

sambamba 1.0.1 build failure #507

Closed chenrui333 closed 1 year ago

chenrui333 commented 1 year ago

👋 trying to build the latest release, but run into some build issue. The error log is as below:

error build log ``` ldc2 -wi -I. -I./BioD:./BioD/contrib/msgpack-d/src -g -J. -O3 -release -enable-inlining -boundscheck=off -L=-flto=full -of=bin/sambamba-1.0.1 bin/sambamba-1.0.1.o -L-lz -L-llz4 ld: unknown option: -flto=full clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: /opt/homebrew/Library/Homebrew/shims/mac/super/gcc failed with status: 1 make: *** [bin/sambamba-1.0.1] Error 1 ```

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/5892800197/job/15983167246?pr=139677 relates to Homebrew/homebrew-core#139677

pjotrp commented 1 year ago

it says ld: unknown option: -flto=full can you disable the switch?

pjotrp commented 1 year ago

We use the gcc linker by default.

chenrui333 commented 1 year ago

that suggestion works for me.

chenrui333 commented 1 year ago

@pjotrp removing the flag works for CI as well, thanks for the help! Closing the issue now.