aligner_result.cpp:1133:10: error: ordered comparison between pointer and zero ('const char *' and 'int') if(flag > 0) { ~~~~ ^ ~ build log: http://package18.nyi.freebsd.org/data/headamd64PR216008-default/2017-01-29_16h09m05s/logs/errors/bowtie2-2.2.9.log regressed by: https://github.com/llvm-mirror/clang/commit/4b6ad14285f3
Created attachment 180156 [details] Unified diff Try this patch and let me know if it resolves the error on your end. I don't see a clang4 port so I'm guessing your using FreeBSD 12 and clang 4 is the base compiler? I confirmed the new patch with the upstream developer and upgraded to the latest release while I was at it. It passes poudriere and portlint.
A commit references this bug: Author: jbeich Date: Mon Feb 27 14:08:31 UTC 2017 New revision: 434940 URL: https://svnweb.freebsd.org/changeset/ports/434940 Log: biology/bowtie2: update to 2.3.0 - Unbreak with Clang 4.0 Changes: https://github.com/BenLangmead/bowtie2/releases/tag/v2.3.0 PR: 216619 Submitted by: Jason Bacon <bacon4000@gmail.com> (maintainer) Changes: head/biology/bowtie2/Makefile head/biology/bowtie2/distinfo head/biology/bowtie2/files/patch-Makefile head/biology/bowtie2/files/patch-aligner__result.cpp
(In reply to Jason Bacon from comment #1) > Try this patch and let me know if it resolves the error on your end. Thanks. No more Clang 4.0 issues. > I don't see a clang4 port so I'm guessing your using FreeBSD 12 and clang 4 is > the base compiler? devel/llvm40 has Clang 4.0 but 12.0-CURRENT not yet. I'm using a branch maintained by dim@ until LLVM project tags the release.