5

until recently my builds with g++ 5 on travis using the address sanitizer were passing - in the past week they broke.

I see that the version of g++ is bumped from (Ubuntu 5.2.1-23ubuntu1~12.04) 5.2.1 20151031 to (Ubuntu 5.4.0-3ubuntu1~12.04) 5.4.0 20160603 (seen from the ${CXX} --version line)

The errors are from the linker - /usr/bin/ld: unrecognized option '--push-state'

the last working build - here

a current broken build - here

Any idea if this is a known issue? Is it reported anywhere? Is there a workaround?

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

onqtam
  • 4,356
  • 2
  • 28
  • 50
  • Probably a dup of [fsanitize-not-using-gold-linker-in-gcc-6-1](http://stackoverflow.com/questions/37603238/fsanitize-not-using-gold-linker-in-gcc-6-1). – yugr Nov 29 '16 at 19:43

1 Answers1

4

Your version of ld is out of date - the push state option was introduced on 2014-08-08. Update it and you'll be good to go.

A. Cleveland
  • 106
  • 3