Hi James, thanks for the detailed analysis. I have disabled the embedded pcre usage for now as I do believe this need to be fixed in the pcre3 package and not here anyway. And as far as I see it the impact is quite low (e.g. the number of users running mariadb-10.1 on mips* and hitting the pcre issue should be very very low).
Hopefully the pcre3 maintainer will fix it as I do believe Adrian's arguments would at least convince me :) Cheers, -- Ondřej Surý <ond...@sury.org> On Tue, Nov 21, 2017, at 15:57, James Cowgill wrote: > Source: mariadb-10.1 > Version: 10.1.29-1 > Severity: serious > Tags: sid buster > > Hi, > > mariadb-10.1 FTBFS if jemalloc is disabled with the following error: > > /usr/bin/ld: ../../mysys/libmysys.a(stacktrace.c.o): undefined reference to > > symbol '__bss_start' > > //usr/lib/mips64el-linux-gnuabi64/liblz4.so.1: error adding symbols: DSO > > missing from command line > > collect2: error: ld returned 1 exit status > > In practice, this breaks mips* where jemalloc is disabled because > jemalloc 3.6 has major issues on mips (which are fixed in 5.0, but > that's a separate issue). The bug can be reproduced on amd64 if jemalloc > is manually disabled in debian/rules. > > I think this is a bug in ld which I have filed here: > https://sourceware.org/bugzilla/show_bug.cgi?id=22471 > > Thinking about ways you could workaround it: > * Disable the HAVE_BSS_START config test, or > * Manually link mariabackup against a library which exports __bss_start > (such as liblz4 as suggested), or > * Revert to using the system libpcre which provides a __bss_start symbol > (presumably blocked on #878107). > > Using the gold linker might have also worked, but it seems that mariadb > complains if you try to use it. > > Thanks to Adrian Bunk for some help debugging this problem. > > Thanks, > James > > _______________________________________________ > pkg-mysql-maint mailing list > pkg-mysql-ma...@lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-mysql-maint > Email had 1 attachment: > + signature.asc > 1k (application/pgp-signature)