Hi!
"Daniel" == Daniel Bartholomew <dbart@askmonty.org> writes:
Daniel> On Thu, 11 Mar 2010 13:40:50 -0500, Brian Evans Daniel> <grknight@scent-team.com> wrote: Brian> http://askmonty.org/wiki/index.php/Building_MariaDB:Generic_Linux Brian> says: Brian> * gcc 2.95.2 or later Brian> Brian> However, according to [1] , Gentoo claims that GCC 4.3 is Brian> required due the use of c++ templates in the server. Brian> [2] also states that GCC-4 is absolutely required with a failing Brian> build log. A note here is that MariaDB / MySQL builds fine with gcc 3.4.3 on our OpenSolaris machine. I am sure that c++ templates was supported even for gcc 2.95.2 as we have used c++ templates (for lists) in the code since 1995, way before gcc 3.x. There may be another reason for using gcc 4.3 on Gentoo, but it can't be because of c++ templates. Brian> Brian> [1] http://bugs.gentoo.org/show_bug.cgi?id=307251#c5 This bug report doesn't give any indication of why gcc 4.3 would be required; It's only about marking the packet to require gcc 4.3 for building. Brian> [2] http://bugs.gentoo.org/show_bug.cgi?id=284946 The real bug seams to be: ./include/sync0rw.h:425:2: #error HAVE_ATOMIC_BUILTINS is not defined. Do you use enough new GCC or compatibles? Looks like a bug in the MySQL code. This code has however changed since then, so it may not be an issue anymore. (After all, we do build now with gcc 3.4.3) Daniel> Thanks. I've added a "Gentoo Build Notes" section to the bottom of the Daniel> page with this information. Daniel> http://askmonty.org/wiki/index.php/Building_MariaDB:Generic_Linux Thanks. Regards, Monty