-O4 makes it crash, so that until somebody finds the real cause and reports it upstream (in case it's not fixed) just change it -O2 to make it build.