I could probably use clang, but crosstool-ng doesn't support it, and it took me ages to get this cross compiler working :)
I think 10.3 will be fine, given the target is currently running the ancient mysql 5.1! I'll give it a go, hopefully with more luck. Hamish On 28/06/2019 15:32, Marko Mäkelä wrote: > I think that the earliest GCC that supports enough of C++11 is 4.8. > So, you should be out of luck compiling 10.4 with GCC 4.7. > > You might also try clang, if that is available for your platform. > > Marko > > On Fri, Jun 28, 2019 at 5:23 PM Hamish MB <[email protected]> wrote: >> Hi, >> >> Maybe I should try 10.3 then - the newest cross compiler I can build for >> this platform is GCC 4.7, which has only experimental support for C++11. >> I could also try the bundled Zlib, seeing as I'm trying to use the >> system one at the moment. It gets fairly far, so I imagine it should be >> possible. >> >> Hamish >> >> On 28/06/2019 15:19, Marko Mäkelä wrote: >>> Hi Harnish, >>> >>> It can be WITH_SSL=bundled or WITH_SSL=system. Possibly the bundled >>> zlib is missing some recent change. >>> For WITH_SSL=system to work, you should have installed a package like >>> zlib1g-dev. >>> >>> I think that there are good chances that MariaDB 10.4 can be compiled >>> for ARMv5 (or at least ARMv7), because 10.3 is available in the Debian >>> GNU/Linux repository: >>> https://packages.debian.org/buster/mariadb-server-core-10.3 >>> >>> A main difference between 10.3 and 10.4 is that 10.4 requires a >>> compiler that supports C++11. >>> >>> Marko >>> >>> On Fri, Jun 28, 2019 at 5:06 PM Hamish MB <[email protected]> wrote: >>>> Hi Marko, >>>> >>>> I found that option, but eventually ran into a different issue. It turns >>>> out that zlib isn't being found by the linker, even if I explicitly set >>>> the path. Are there any examples of working toolchain.cmake files >>>> you/anyone else knows of? >>>> >>>> I think it's mostly because I'm misconfiguring that file somehow, but >>>> I'm not sure how. >>>> >>>> Hamish >>>> >>>> >>>> On 28/06/2019 15:04, Marko Mäkelä wrote: >>>>> Hi Harnish, >>>>> >>>>> Yes, you can disable storage engines that you do not need, like this: >>>>> cmake -DPLUGIN_MROONGA=NO >>>>> >>>>> This syntax works starting with MariaDB 10.1. >>>>> >>>>> For example, I am developing InnoDB, and to cut the time for >>>>> compilation and running tests, I disable a bunch of storage engines: >>>>> >>>>> cmake -DPLUGIN_{ARCHIVE,TOKUDB,MROONGA,OQGRAPH,ROCKSDB,CONNECT,SPIDER}=NO >>>>> >>>>> Side note: I would not be surprised if you ran into problems with >>>>> TokuDB. I hope that we can finally remove it in MariaDB 10.5: >>>>> https://jira.mariadb.org/browse/MDEV-19780 >>>>> >>>>> With best regards, >>>>> >>>>> Marko Mäkelä >>>>> Lead Developer InnoDB >>>>> MariaDB Corporation >>>> _______________________________________________ >>>> Mailing list: https://launchpad.net/~maria-discuss >>>> Post to : [email protected] >>>> Unsubscribe : https://launchpad.net/~maria-discuss >>>> More help : https://help.launchpad.net/ListHelp >>> >> _______________________________________________ >> Mailing list: https://launchpad.net/~maria-discuss >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~maria-discuss >> More help : https://help.launchpad.net/ListHelp > > _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp

