Bug #94949 BROKEN BUILD WITH /OPT/DEVELOPERSTUDIO12.6/BIN/CC
Submitted: 9 Apr 2019 8:45 Modified: 2 May 2019 21:29
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.17 OS:Any
Assigned to: CPU Architecture:Any

[9 Apr 2019 8:45] Tor Didriksen
Description:
ld: fatal: unwind table: file ../libperfschema.a(table_helper.cc.o): section .eh_frame%__gthread_trigger(): unexpected negative integer encountered: offset 0x240 storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/build.make:234: recipe for target 'runtime_output_directory/pfs_connect_attr-t' failed make[2]: *** [runtime_output_directory/pfs_connect_attr-t] Error 2 make[2]: Leaving directory '/export/home/pb2/build/sb_1-33562455-1554742537.9/debug' CMakeFiles/Makefile2:8578: recipe for target 'storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/all' failed make[1]: *** [storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/all] Error 2 ld: fatal: unwind table: file ../../../sql/libsql_main.a(item_create.cc.o): section .eh_frame%Item::set_data_type_time(unsigned char): unexpected negative integer encountered: offset 0x30 unittest/gunit/temptable/CMakeFiles/merge_temptable_tests-t.dir/build.make:266: recipe for target 'runtime_output_directory/merge_temptable_tests-t' failed make[2]: *** [runtime_output_directory/merge_temptable_tests-t] Error 2 make[2]: Leaving directory '/export/home/pb2/build/sb_1-33562455-1554742537.9/debug' CMakeFiles/Makefile2:27498: recipe for target 'unittest/gunit/temptable/CMakeFiles/merge_temptable_tests-t.dir/all' failed make[1]: *** [unittest/gunit/temptable/CMakeFiles/merge_temptable_tests-t.dir/all] Error 2 ld: fatal: unwind table: file ../../../storage/perfschema/libperfschema.a(table_events_transactions.cc.o): section .eh_frame%__gthread_trigger(): unexpected negative integer encountered: offset 0x300 unittest/gunit/innodb/CMakeFiles/merge_innodb_tests-t.dir/build.make:318: recipe for target 'runtime_output_directory/merge_innodb_tests-t' failed make[2]: *** [runtime_output_directory/merge_innodb_tests-t] Error 2 make[2]: Leaving directory '/export/home/pb2/build/sb_1-33562455-1554742537.9/debug' CMakeFiles/Makefile2:23752: recipe for target 'unittest/gunit/innodb/CMakeFiles/merge_innodb_tests-t.dir/all' failed make[1]: *** [unittest/gunit/innodb/CMakeFiles/merge_innodb_tests-t.dir/all] Error 2 make[1]: Leaving directory '/export/home/pb2/build/sb_1-33562455-1554742537.9/debug' Makefile:162: recipe for target 'all' failed 

How to repeat:
daily build with ndbcluster on Solaris 11.3
CC: Studio 12.6 Sun C++ 5.15 SunOS_sparc Patch 152715-03 2018/07/03

Suggested fix:
Same as patch for Bug #28367121, and Bug#29252153 disable building this test by default.
[2 May 2019 10:18] Tor Didriksen
Posted by developer:
 
oops, pushed with wrong bug title, this is the patch:

commit ae9cc965fc403ba48be42bc245be8fbcdce5172c
Author: Tor Didriksen <tor.didriksen@oracle.com>
Date:   Mon Apr 15 10:27:03 2019 +0200

    Bug#29252153 BROKEN BUILD WITH /OPT/DEVELOPERSTUDIO12.6/BIN/CC
    
    Linking of mysqld may also fail in debug mode, if the ndbcluster
    storage engine is also built.
    
    The solution is to disable DBUG_TRACE (the enter/leave part of debug tracing).
[2 May 2019 21:29] Paul DuBois
Posted by developer:
 
Fixed in 8.0.18.

Configuration/build cleanup. No changelog entry required.