Asan with g ++ 5.4.0 does not work on travis CI

Until recently, my builds with g ++ 5 on travis, using a disinfecting device, passed by - last week they broke.

I see that the g ++ version is found 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 line ${CXX} --version )

Errors from the linker - /usr/bin/ld: unrecognized option '--push-state'

last working assembly - here

current broken build is here

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

here is my github repository - it uses CMake and does not add any linker flags. I add -fsanitize=address from the .travis.yml configuration file - see here

+5
source share
1 answer

Your version of ld is deprecated - the push state option was introduced in 2014-08-08. Update it and you will be fine.

+4
source

All Articles