Skip to contentSkip to conversation

-O2 -Werror

Cluster-devel David Teigland 2 participants 2 messages Sep 6, 2007

lore
Share & tools
lore
#0 lore raw

configure was recently changed from a default of -O0 to -O2. A couple of places in the tree also use -Werror. The new combination of -O2 and -Werror breaks the build when using default configure setting.

[using gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-13)]

We need to remove the -Werror's, go back to a default of -O0, or change the code that breaks. I doubt that we'll be able to go too long with both -O2 and -Werror, though, so one of them will probably need to change.

To get things building until someone comes up with a better solution, I'm taking the simplest route and going back to a default of -O0.

Dave

#1 lore raw
Quoted 6 lines · David Teigland

configure was recently changed from a default of -O0 to -O2. A couple of places in the tree also use -Werror. The new combination of -O2 and -Werror breaks the build when using default configure setting.

[using gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-13)]

Quoted 8 lines

We need to remove the -Werror's, go back to a default of -O0, or change the code that breaks. I doubt that we'll be able to go too long with both -O2 and -Werror, though, so one of them will probably need to change.

To get things building until someone comes up with a better solution, I'm taking the simplest route and going back to a default of -O0.

Dave

Patrick posted a patch that fixes cman/qdisk and he was waiting for Lon to ACK since he has a setup to test it.

What else does it break?

Fabio

Signature · 1 line
I'm going to make him an offer he can't refuse.