Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asan with g++ 5.4.0 not working on travis CI

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

like image 375
onqtam Avatar asked Jun 07 '16 20:06

onqtam


1 Answers

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.

like image 89
A. Cleveland Avatar answered Nov 12 '22 11:11

A. Cleveland