[MDEV-10943] 10.2 fails to build Created: 2016-10-03  Updated: 2019-04-16  Resolved: 2016-10-15

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.2
Fix Version/s: 10.2.3

Type: Bug Priority: Major
Reporter: Oleksandr Byelkin Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


 Description   

cmake -DCMAKE_BUILD_TYPE=Debug  && make -j 7
...
 
[ 73%] Building CXX object client/CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o
/usr/bin/ld: ../mysys/libmysys.a(stacktrace.c.o): undefined reference to symbol '__bss_start'
//usr/lib/x86_64-linux-gnu/libgmp.so.10: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
client/CMakeFiles/mysqltest.dir/build.make:109: recipe for target 'client/mysqltest' failed
make[2]: *** [client/mysqltest] Error 1
CMakeFiles/Makefile2:11362: recipe for target 'client/CMakeFiles/mysqltest.dir/all' failed
make[1]: *** [client/CMakeFiles/mysqltest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

the same was with innodb (and building with embedded)

It is the last ubuntu and 10.2.

cmake -DCMAKE_BUILD_TYPE=Debug -DHAVE_BSS_START=0
makes building possible.



 Comments   
Comment by Elena Stepanova [ 2016-10-03 ]

Assigned to wlad because he's already been involved on Slack.

Comment by Otto Kekäläinen [ 2019-04-16 ]

This has been reported for 10.1.37 in Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920855
Should this commit maybe be backported to 10.1 as well? Now it only seems to be on 10.2 and newer.

This patch by cvicentiu also seems to tackle a similar build issue, are they different fixes for the same problem?
https://salsa.debian.org/mariadb-team/mariadb-10.1/blob/stretch/debian/patches/mips-compilation-failure-__bss_start-symbol-miss.patch

Comment by Vladislav Vaintroub [ 2019-04-16 ]

it is not fixed in 10.1 , but from 10.2 on. I suggest to downport my fix.
That __bss_start exists, but not when linked with systemd, is puzzling . Next time it might cease to exist when linked with openssl, zlib, or whatever

Generated at Thu Feb 08 07:46:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.