使用 g++ 5.4.0 的 asan 无法在 travis 上运行 CI

asan with g++ 5.4.0 not working on travis CI

直到最近,我在 travis 上使用地址清理器在 g++ 5 上构建的版本都通过了——在过去的一周里它们坏了。

我看到 g++ 的版本从 (Ubuntu 5.2.1-23ubuntu1~12.04) 5.2.1 20151031 提高到 (Ubuntu 5.4.0-3ubuntu1~12.04) 5.4.0 20160603(从 ${CXX} --version 行看)

错误来自链接器 - /usr/bin/ld: unrecognized option '--push-state'

最后一个工作版本 - here

当前损坏的版本 - here

知道这是否是已知问题吗?是不是到处都被举报了?有解决方法吗?

here is my repository on github - it uses CMake and doesn't add any linker flags. I add the -fsanitize=address from the .travis.yml config file - see here

您的 ld 版本已过时 - 推送状态选项于 2014-08-08 引入。更新它,你会很高兴。