Summary: | mysql 5.x crashes with gcc 3.4.4 and "optimized" CFLAGS | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tiziano Müller (RETIRED) <dev-zero> |
Component: | Current packages | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
Status: | VERIFIED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2005.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Tiziano Müller (RETIRED)
2005-12-25 05:26:42 UTC
need to comment the nonsense ;-) MySQL AB build and test it's binaryes with "-O3" so I strongly doubt that it is the cause (expecially with gcc-3.4). try CFLAGS="-O3" emerge mysql , it should work fine. instead, you could define "mmm" "sse" "sse2" "3dnow" as USE flags _not_ in CFLAGS. The supported ebuild will compile with the cpu optimizations you want leaving untouched the others ebuild. I don't think I completely understood, what you wanted to tell me. Therefore I did some testing... As you wrote, mysql works perfectly, when I set CFLAGS="-march=pentium4 -fomit-frame-pointer -pipe -O3" But it crashes, when I add "-mmmx -msse -msse2 -m3dnow". Since no other software on this machine (which is completely compiled with the mentioned CFLAGS), I think that's a problem with mysql (and probably gcc). Could you please explain to me, why you think it's not? Well, did another test. Removing "3dnow" from the CFLAGS did resolve it. I don't think, that this will give the slightest performance, so... you can close this bug :-) mmh, try to explain: it's a question of "real life" versus "perfect world", sure it's mysql or gcc that fail with those optimization but because the gain using them is not huge and the dificult to debug and keep stable is great, noone will fix the problem ;-) . Also it's gentoo policy to close bugs depending on non standard CFLAGS. regards, Francesco P.S. If no other software has problem you're lucky ;-) |