| Summary: | mariadb should be built with gcc flag -fno-delete-null-pointer-checks when gcc-4.9.x is used | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Frédéric Guardia <frederic.guardia> |
| Component: | RPM Packages | Assignee: | Oden Eriksson <oe> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | alien, doktor5000, lmenut, luis.daniel.lucio, mageia, maurice77, thomas.bigot |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| URL: | https://mariadb.atlassian.net/browse/MDEV-6360 | ||
| Whiteboard: | |||
| Source RPM: | mariadb-10.0.12-1.mga5.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: | mariadb.spec diff file | ||
|
Description
Frédéric Guardia
2014-06-21 11:51:27 CEST
David Walser
2014-06-22 17:52:47 CEST
CC:
(none) =>
alien
Florian Hubold
2014-06-22 22:56:23 CEST
CC:
(none) =>
doktor5000
Thomas Bigot
2014-06-24 09:17:12 CEST
CC:
(none) =>
thomas.bigot Not working here, i did rebuild mariadb and added the -DCMAKE_C_FLAGS="-fno-delete-null-pointer-checks" -DCMAKE_CXX_FLAGS="-fno-delete-null-pointer-checks" in the cmake. I see gcc being called now with no-delete-null-pointer-check flag, but akonadi still doesnt starts. CC:
(none) =>
luis.daniel.lucio (In reply to Daniel Lucio from comment #1) > Not working here, i did rebuild mariadb and added the > -DCMAKE_C_FLAGS="-fno-delete-null-pointer-checks" > -DCMAKE_CXX_FLAGS="-fno-delete-null-pointer-checks" in the cmake. Where did you add those flags exactly? @Frederic: If you already rebuilt the package and it works for you, could you please provide a diff to the SPEC file please? FYI: i've contacted upstream, there's a MDEV on it, and they are not just gonna add this blindly, but they are gonna investigate why exactly this 'll take some time, i imagine... full backtrace from blino... looks exactly like the one in the MDEV: https://gist.github.com/blino/0c18c3be4d9056874b96
Olivier Blin
2014-07-04 17:33:51 CEST
CC:
(none) =>
mageia This is my diff file regarding mariadb.spec
--- mariadb.spec~ 2014-06-16 18:36:35.000000000 +0200
+++ mariadb.spec 2014-06-21 10:36:35.000000000 +0200
@@ -503,7 +503,9 @@
export LC_ALL=C
%cmake \
- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_C_FLAGS="-fno-delete-null-pointer-checks" \
+ -DCMAKE_CXX_FLAGS="-fno-delete-null-pointer-checks" \
+ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DINSTALL_SBINDIR=sbin \
-DMYSQL_DATADIR=/var/lib/mysql \
Created attachment 5271 [details]
mariadb.spec diff file
why do you want to get rid of debug info? i've committed the FLAGS, and started a build... can you check if this works? I confirm akonadi is back, thanks! I confirm too. (In reply to AL13N from comment #7) > why do you want to get rid of debug info? Because this working solution was posted on mariadb dashboard (https://mariadb.atlassian.net/browse/MDEV-6360) and I didn't investigate more from my side. I will try to rebuild mriadb from my side but this time with -DCMAKE_BUILD_TYPE=RelWithDebInfo to see if it's really necessary to change it. I will report this result ASAP. mariadb works also with -DCMAKE_BUILD_TYPE=RelWithDebInfo (tested) so it's like you want. Fixed with mariadb-10.0.12-2.mga5. Status:
NEW =>
RESOLVED |