[MDEV-10162] myisam/sort.c:362:5: error: cannot jump from this goto statement to its label goto err; ^ Created: 2016-06-01  Updated: 2016-06-14  Resolved: 2016-06-14

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Storage Engine - Aria, Storage Engine - MyISAM
Affects Version/s: 10.1
Fix Version/s: 5.5.50

Type: Bug Priority: Major
Reporter: Charles Muurmu Assignee: Vicențiu Ciorbaru
Resolution: Fixed Votes: 0
Labels: None
Environment:

OS X


Sprint: 5.5.50

 Description   

Build fails with the following log on OS X.

[ 36%] Building C object storage/myisam/CMakeFiles/myisam.dir/sp_key.c.o
[ 36%] Building C object storage/myisam/CMakeFiles/myisam.dir/mi_rkey.c.o
/Users/charles/Desktop/server/storage/myisam/sort.c:362:5: error: cannot
      jump from this goto statement to its label
    goto err;
    ^
/Users/charles/Desktop/server/storage/myisam/sort.c:365:5: note: jump
      bypasses initialization of variable with __attribute__((cleanup))
    DBUG_ENTER("thr_find_all_keys");
    ^
/Users/charles/Desktop/server/include/my_dbug.h:74:47: note: expanded from
      macro 'DBUG_ENTER'
#define DBUG_ENTER(a) struct _db_stack_frame_ _db_stack_frame_  __a...
                                              ^
1 error generated.
make[2]: *** [storage/myisam/CMakeFiles/myisam.dir/sort.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [storage/myisam/CMakeFiles/myisam.dir/all] Error 2
make: *** [all] Error 2
Muurmus-MacBook-Pro:server charles$



 Comments   
Comment by Sergei Petrunia [ 2016-06-01 ]

charlesm, here is a patch provided by cvicentiu which makes the compilation failure go away:
https://gist.github.com/spetrunia/724e2d5f750fcfc7750ff246ce6ac05b

Comment by Vicențiu Ciorbaru [ 2016-06-14 ]

Fixed with:
2b47832a2d261dbaf735b26e796aa126bccafb20

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