[debian-mysql] Bug#933151: mariadb-10.3: FTBFS on riscv64

Daniel Black daniel at mariadb.org
Tue Oct 6 03:56:53 BST 2020


https://jira.mariadb.org/browse/MDEV-23892 created for this issue.

https://github.com/MariaDB/server/pull/979 modified to be more minimal
https://github.com/MariaDB/server/commit/970984e9f9b385d7a64d896baa437a40d65d3f2f
is now in testing.

Comments welcome.

Testing on riscv64 is also very welcome.

On Mon, Oct 5, 2020 at 7:14 AM Otto Kekäläinen <otto at debian.org> wrote:
>
> Hello!
>
> I plan to upload mariadb-10.5 1:10.5.5-2 in a couple of days and I
> would be happy to receive merge requests regarding getting riscv64 to
> build properly on Debian.
>
> http://bugs.debian.org/933151
> https://wiki.debian.org/Teams/MySQL/patches
>
>
> ti 29. syysk. 2020 klo 16.48 Otto Kekäläinen (otto at debian.org) kirjoitti:
> >
> > Hello!
> >
> > Adding Christian and Dimitri to the recipients, since I think it was
> > Dimitri who patched the Ubuntu version of cmake for this.
> >
> >
> > ti 29. syysk. 2020 klo 0.22 Aurelien Jarno (aurelien at aurel32.net) kirjoitti:
> > >
> > > On 2020-09-28 15:12, Otto Kekäläinen wrote:
> > > > After uploading mariadb-10.5 1:10.5.5-1 to Debian the build still
> > > > fails with these:
> > > >
> > > > /usr/bin/ld: /usr/include/c++/10/bits/atomic_base.h:464: undefined
> > > > reference to `__atomic_compare_exchange_1'
> > > >
> > > > The odd thing is that an identical build on Ubuntu Groovy passes OK:
> > > > https://launchpadlibrarian.net/499652421/buildlog_ubuntu-groovy-riscv64.mariadb-10.5_1%3A10.5.5-1~ubuntu20.10.1~1601274184.7ad164279+master_BUILDING.txt.gz
> > >
> > > Ubuntu has patched their version of cmake to link with -latomic on
> > > riscv64. While patching cmake is a really good idea, the fix is wrong,
> > > the correct think to do is to link with -pthread instead of -lpthread,
> > > and do that for all architectures.
> > >
> > > This is the strategy followed for mariadb-10.5 in the attached patch. I
> > > have tested it and it builds fine on Debian.
>
>
>
> --
> - Otto



More information about the pkg-mysql-maint mailing list