Bug #75000 5.5 fails to compile with debug on Ubuntu Utopic
Submitted: 25 Nov 2014 21:49 Modified: 26 Nov 2014 7:05
Reporter: George Lorch (OCA) Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.5, 5.5.41 OS:Linux (Ubuntu )
Assigned to: CPU Architecture:Any

[25 Nov 2014 21:49] George Lorch
Description:
MySQL 5.5 trunk fails to compile on Ubuntu Utopic (14.10)

How to repeat:
> bzr branch lp:mysql-server/5.5 ms-5.5
> cd ms-5.5
>  cmake . -DCMAKE_BUILD_TYPE=Debug -DWITH_DEBUG=ON -DMYSQL_MAINTAINER_MODE=ON -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_EMBEDDED_SERVER=OFF -DENABLE_DTRACE=OFF -DWITH_EXAMPLE_STORAGE_ENGINE=1 -DWITH_SSL=system && make -j2
-- Running cmake version 2.8.12.2
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1

<snip>

-- Configuring done
-- Generating done
-- Build files have been written to: /home/george/dev/percona/ms-5.5-debugtest
Scanning dependencies of target INFO_SRC
Scanning dependencies of target INFO_BIN
[  0%] Built target INFO_BIN
Scanning dependencies of target abi_check
[  0%] Built target INFO_SRC
Scanning dependencies of target zlib
[  0%] Building C object zlib/CMakeFiles/zlib.dir/adler32.c.o
[  0%] Built target abi_check
Scanning dependencies of target readline
[  0%] Building C object zlib/CMakeFiles/zlib.dir/compress.c.o
[  0%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/readline.c.o
[  0%] Building C object zlib/CMakeFiles/zlib.dir/crc32.c.o
[  0%] Building C object zlib/CMakeFiles/zlib.dir/deflate.c.o
[  0%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/funmap.c.o
[  0%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/keymaps.c.o
[  1%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/vi_mode.c.o
[  1%] Building C object zlib/CMakeFiles/zlib.dir/gzio.c.o
[  2%] Building C object zlib/CMakeFiles/zlib.dir/infback.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/parens.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/rltty.c.o
[  2%] Building C object zlib/CMakeFiles/zlib.dir/inffast.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/complete.c.o
[  2%] Building C object zlib/CMakeFiles/zlib.dir/inflate.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/bind.c.o
[  2%] Building C object zlib/CMakeFiles/zlib.dir/inftrees.c.o
[  2%] Building C object zlib/CMakeFiles/zlib.dir/trees.c.o
[  2%] Building C object zlib/CMakeFiles/zlib.dir/uncompr.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/isearch.c.o
[  3%] Building C object zlib/CMakeFiles/zlib.dir/zutil.c.o
Linking C static library libzlib.a
[  3%] Built target zlib
Scanning dependencies of target strings
[  4%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/display.c.o
[  5%] Building C object strings/CMakeFiles/strings.dir/bchange.c.o
[  5%] Building C object strings/CMakeFiles/strings.dir/bmove_upp.c.o
[  5%] Building C object strings/CMakeFiles/strings.dir/ctype-big5.c.o
[  5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/signals.c.o
[  5%] Building C object strings/CMakeFiles/strings.dir/ctype-bin.c.o
[  5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/util.c.o
[  5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/kill.c.o
[  5%] Building C object strings/CMakeFiles/strings.dir/ctype-cp932.c.o
[  5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/undo.c.o
[  5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/macro.c.o
[  5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/input.c.o
[  5%] Building C object strings/CMakeFiles/strings.dir/ctype-czech.c.o
[  6%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/callback.c.o
[  6%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/terminal.c.o
[  6%] Building C object strings/CMakeFiles/strings.dir/ctype-euc_kr.c.o
[  6%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/xmalloc.c.o
[  6%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/history.c.o
[  6%] [  7%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/histsearch.c.o
Building C object strings/CMakeFiles/strings.dir/ctype-eucjpms.c.o
[  7%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/histexpand.c.o
[  8%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/histfile.c.o
[  8%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/nls.c.o
[  8%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/search.c.o
[  8%] Building C object strings/CMakeFiles/strings.dir/ctype-extra.c.o
[  8%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/shell.c.o
[  8%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/tilde.c.o
[  8%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/misc.c.o
[  8%] Building C object strings/CMakeFiles/strings.dir/ctype-gb2312.c.o
[  8%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/text.c.o
[  8%] Building C object strings/CMakeFiles/strings.dir/ctype-gbk.c.o
[  9%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/mbutil.c.o
[  9%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/compat.c.o
[  9%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/savestring.c.o
Linking C static library libreadline.a
[  9%] Building C object strings/CMakeFiles/strings.dir/ctype-latin1.c.o
[  9%] Built target readline
Scanning dependencies of target mytap
[  9%] Building C object unittest/mytap/CMakeFiles/mytap.dir/tap.c.o
[  9%] Building C object strings/CMakeFiles/strings.dir/ctype-mb.c.o
Linking C static library libmytap.a
[  9%] Built target mytap
Scanning dependencies of target mysqlservices
[ 10%] Building C object libservices/CMakeFiles/mysqlservices.dir/my_snprintf_service.c.o
[ 10%] Building C object libservices/CMakeFiles/mysqlservices.dir/thd_alloc_service.c.o
[ 10%] Building C object libservices/CMakeFiles/mysqlservices.dir/thd_wait_service.c.o
[ 10%] Building C object libservices/CMakeFiles/mysqlservices.dir/my_thread_scheduler_service.c.o
Linking C static library libmysqlservices.a
[ 10%] Built target mysqlservices
Scanning dependencies of target vio
[ 10%] Building C object vio/CMakeFiles/vio.dir/vio.c.o
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-simple.c.o
[ 11%] Building C object vio/CMakeFiles/vio.dir/viosocket.c.o
[ 12%] Building C object vio/CMakeFiles/vio.dir/viossl.c.o
[ 12%] Building C object strings/CMakeFiles/strings.dir/ctype-sjis.c.o
[ 12%] Building C object vio/CMakeFiles/vio.dir/viosslfactories.c.o
Linking C static library libvio.a
[ 12%] Built target vio
Scanning dependencies of target regex
[ 12%] Building C object regex/CMakeFiles/regex.dir/regcomp.c.o
[ 12%] Building C object strings/CMakeFiles/strings.dir/ctype-tis620.c.o
[ 12%] Building C object strings/CMakeFiles/strings.dir/ctype-uca.c.o
[ 12%] Building C object regex/CMakeFiles/regex.dir/regerror.c.o
[ 12%] Building C object regex/CMakeFiles/regex.dir/regexec.c.o
[ 12%] Building C object strings/CMakeFiles/strings.dir/ctype-ucs2.c.o
[ 13%] Building C object regex/CMakeFiles/regex.dir/regfree.c.o
[ 13%] Building C object regex/CMakeFiles/regex.dir/reginit.c.o
Linking C static library libregex.a
[ 13%] Built target regex
Scanning dependencies of target gen_lex_hash
[ 13%] Building CXX object sql/CMakeFiles/gen_lex_hash.dir/gen_lex_hash.cc.o
[ 13%] Building C object strings/CMakeFiles/strings.dir/ctype-ujis.c.o
Linking CXX executable gen_lex_hash
[ 13%] Built target gen_lex_hash
Scanning dependencies of target innochecksum
[ 13%] Building C object extra/CMakeFiles/innochecksum.dir/innochecksum.c.o
Linking C executable innochecksum
[ 13%] Built target innochecksum
Scanning dependencies of target comp_sql
[ 13%] Building C object scripts/CMakeFiles/comp_sql.dir/comp_sql.c.o
Linking C executable comp_sql
[ 13%] Built target comp_sql
Scanning dependencies of target my_safe_process
[ 13%] Building CXX object mysql-test/lib/My/SafeProcess/CMakeFiles/my_safe_process.dir/safe_process.cc.o
Linking CXX executable my_safe_process
[ 13%] Built target my_safe_process
Scanning dependencies of target GenServerSource
[ 13%] Building C object strings/CMakeFiles/strings.dir/ctype-utf8.c.o
[ 13%] Generating sql_yacc.cc, sql_yacc.h
[ 14%] Building C object strings/CMakeFiles/strings.dir/ctype-win1250ch.c.o
[ 14%] Building C object strings/CMakeFiles/strings.dir/ctype.c.o
[ 14%] Building C object strings/CMakeFiles/strings.dir/decimal.c.o
[ 14%] Building C object strings/CMakeFiles/strings.dir/dtoa.c.o
[ 14%] Building C object strings/CMakeFiles/strings.dir/int2str.c.o
[ 14%] Building C object strings/CMakeFiles/strings.dir/is_prefix.c.o
[ 15%] Building C object strings/CMakeFiles/strings.dir/llstr.c.o
[ 15%] Building C object strings/CMakeFiles/strings.dir/longlong2str.c.o
[ 15%] Building C object strings/CMakeFiles/strings.dir/my_strtoll10.c.o
[ 15%] Generating lex_hash.h
[ 15%] Built target GenServerSource
Scanning dependencies of target GenFixPrivs
[ 15%] Generating mysql_fix_privilege_tables_sql.c
[ 15%] Building C object strings/CMakeFiles/strings.dir/my_vsnprintf.c.o
[ 15%] Built target GenFixPrivs
[ 15%] Building C object strings/CMakeFiles/strings.dir/str2int.c.o
[ 15%] Building C object strings/CMakeFiles/strings.dir/str_alloc.c.o
[ 15%] [ 16%] Building C object strings/CMakeFiles/strings.dir/strcend.c.o
Building C object strings/CMakeFiles/strings.dir/strend.c.o
[ 16%] [ 16%] Building C object strings/CMakeFiles/strings.dir/strfill.c.o
Building C object strings/CMakeFiles/strings.dir/strmake.c.o
[ 16%] [ 16%] Building C object strings/CMakeFiles/strings.dir/strmov.c.o
Building C object strings/CMakeFiles/strings.dir/strnmov.c.o
[ 16%] [ 17%] Building C object strings/CMakeFiles/strings.dir/strxmov.c.o
Building C object strings/CMakeFiles/strings.dir/strxnmov.c.o
[ 17%] Building C object strings/CMakeFiles/strings.dir/xml.c.o
[ 17%] Building C object strings/CMakeFiles/strings.dir/my_strchr.c.o
[ 17%] Building C object strings/CMakeFiles/strings.dir/strcont.c.o
[ 17%] Building C object strings/CMakeFiles/strings.dir/strappend.c.o
Linking C static library libstrings.a
[ 17%] Built target strings
Scanning dependencies of target mysys
[ 18%] [ 18%] Building C object mysys/CMakeFiles/mysys.dir/array.c.o
Building C object mysys/CMakeFiles/mysys.dir/charset-def.c.o
[ 18%] Building C object mysys/CMakeFiles/mysys.dir/charset.c.o
[ 18%] Building C object mysys/CMakeFiles/mysys.dir/checksum.c.o
[ 18%] Building C object mysys/CMakeFiles/mysys.dir/default.c.o
[ 18%] Building C object mysys/CMakeFiles/mysys.dir/errors.c.o
[ 18%] Building C object mysys/CMakeFiles/mysys.dir/hash.c.o
[ 19%] Building C object mysys/CMakeFiles/mysys.dir/list.c.o
[ 19%] Building C object mysys/CMakeFiles/mysys.dir/md5.c.o
[ 19%] Building C object mysys/CMakeFiles/mysys.dir/mf_cache.c.o
[ 19%] Building C object mysys/CMakeFiles/mysys.dir/mf_dirname.c.o
[ 19%] Building C object mysys/CMakeFiles/mysys.dir/mf_fn_ext.c.o
[ 19%] Building C object mysys/CMakeFiles/mysys.dir/mf_format.c.o
[ 20%] Building C object mysys/CMakeFiles/mysys.dir/mf_getdate.c.o
[ 20%] Building C object mysys/CMakeFiles/mysys.dir/mf_iocache.c.o
[ 20%] Building C object mysys/CMakeFiles/mysys.dir/mf_iocache2.c.o
[ 20%] Building C object mysys/CMakeFiles/mysys.dir/mf_keycache.c.o
[ 20%] Building C object mysys/CMakeFiles/mysys.dir/mf_keycaches.c.o
[ 20%] Building C object mysys/CMakeFiles/mysys.dir/mf_loadpath.c.o
[ 20%] Building C object mysys/CMakeFiles/mysys.dir/mf_pack.c.o
[ 21%] Building C object mysys/CMakeFiles/mysys.dir/mf_path.c.o
[ 21%] Building C object mysys/CMakeFiles/mysys.dir/mf_qsort.c.o
[ 21%] Building C object mysys/CMakeFiles/mysys.dir/mf_qsort2.c.o
[ 21%] Building C object mysys/CMakeFiles/mysys.dir/mf_radix.c.o
[ 21%] Building C object mysys/CMakeFiles/mysys.dir/mf_same.c.o
[ 21%] [ 22%] Building C object mysys/CMakeFiles/mysys.dir/mf_sort.c.o
Building C object mysys/CMakeFiles/mysys.dir/mf_soundex.c.o
[ 22%] Building C object mysys/CMakeFiles/mysys.dir/mf_arr_appstr.c.o
[ 22%] Building C object mysys/CMakeFiles/mysys.dir/mf_tempdir.c.o
[ 22%] Building C object mysys/CMakeFiles/mysys.dir/mf_tempfile.c.o
[ 22%] Building C object mysys/CMakeFiles/mysys.dir/mf_unixpath.c.o
[ 22%] Building C object mysys/CMakeFiles/mysys.dir/mf_wcomp.c.o
[ 22%] Building C object mysys/CMakeFiles/mysys.dir/mulalloc.c.o
[ 23%] Building C object mysys/CMakeFiles/mysys.dir/my_access.c.o
[ 23%] Building C object mysys/CMakeFiles/mysys.dir/my_aes.c.o
[ 23%] Building C object mysys/CMakeFiles/mysys.dir/my_alloc.c.o
[ 23%] Building C object mysys/CMakeFiles/mysys.dir/my_bit.c.o
[ 23%] Building C object mysys/CMakeFiles/mysys.dir/my_bitmap.c.o
[ 23%] Building C object mysys/CMakeFiles/mysys.dir/my_chsize.c.o
[ 24%] Building C object mysys/CMakeFiles/mysys.dir/my_compress.c.o
[ 24%] Building C object mysys/CMakeFiles/mysys.dir/my_copy.c.o
[ 24%] Building C object mysys/CMakeFiles/mysys.dir/my_create.c.o
[ 24%] Building C object mysys/CMakeFiles/mysys.dir/my_delete.c.o
[ 24%] Building C object mysys/CMakeFiles/mysys.dir/my_div.c.o
[ 24%] Building C object mysys/CMakeFiles/mysys.dir/my_error.c.o
[ 24%] Building C object mysys/CMakeFiles/mysys.dir/my_file.c.o
[ 25%] Building C object mysys/CMakeFiles/mysys.dir/my_fopen.c.o
[ 25%] Building C object mysys/CMakeFiles/mysys.dir/my_fstream.c.o
[ 25%] Building C object mysys/CMakeFiles/mysys.dir/my_gethwaddr.c.o
[ 25%] Building C object mysys/CMakeFiles/mysys.dir/my_getopt.c.o
[ 25%] Building C object mysys/CMakeFiles/mysys.dir/my_getsystime.c.o
[ 25%] Building C object mysys/CMakeFiles/mysys.dir/my_getwd.c.o
[ 26%] [ 26%] Building C object mysys/CMakeFiles/mysys.dir/my_compare.c.o
Building C object mysys/CMakeFiles/mysys.dir/my_init.c.o
[ 26%] Building C object mysys/CMakeFiles/mysys.dir/my_lib.c.o
[ 26%] Building C object mysys/CMakeFiles/mysys.dir/my_lock.c.o
[ 26%] Building C object mysys/CMakeFiles/mysys.dir/my_malloc.c.o
[ 26%] Building C object mysys/CMakeFiles/mysys.dir/my_mess.c.o
[ 26%] Building C object mysys/CMakeFiles/mysys.dir/my_mkdir.c.o
[ 27%] Building C object mysys/CMakeFiles/mysys.dir/my_mmap.c.o
[ 27%] Building C object mysys/CMakeFiles/mysys.dir/my_once.c.o
[ 27%] Building C object mysys/CMakeFiles/mysys.dir/my_open.c.o
[ 27%] Building C object mysys/CMakeFiles/mysys.dir/my_pread.c.o
[ 27%] Building C object mysys/CMakeFiles/mysys.dir/my_pthread.c.o
[ 27%] Building C object mysys/CMakeFiles/mysys.dir/my_quick.c.o
[ 27%] Building C object mysys/CMakeFiles/mysys.dir/my_read.c.o
[ 28%] Building C object mysys/CMakeFiles/mysys.dir/my_redel.c.o
[ 28%] Building C object mysys/CMakeFiles/mysys.dir/my_rename.c.o
[ 28%] Building C object mysys/CMakeFiles/mysys.dir/my_seek.c.o
[ 28%] Building C object mysys/CMakeFiles/mysys.dir/my_sleep.c.o
[ 28%] Building C object mysys/CMakeFiles/mysys.dir/my_static.c.o
[ 28%] Building C object mysys/CMakeFiles/mysys.dir/my_symlink.c.o
[ 29%] Building C object mysys/CMakeFiles/mysys.dir/my_symlink2.c.o
[ 29%] Building C object mysys/CMakeFiles/mysys.dir/my_sync.c.o
[ 29%] Building C object mysys/CMakeFiles/mysys.dir/my_thr_init.c.o
[ 29%] Building C object mysys/CMakeFiles/mysys.dir/my_write.c.o
[ 29%] Building C object mysys/CMakeFiles/mysys.dir/ptr_cmp.c.o
[ 29%] Building C object mysys/CMakeFiles/mysys.dir/queues.c.o
[ 29%] Building C object mysys/CMakeFiles/mysys.dir/stacktrace.c.o
[ 30%] Building C object mysys/CMakeFiles/mysys.dir/rijndael.c.o
[ 30%] Building C object mysys/CMakeFiles/mysys.dir/sha1.c.o
[ 30%] Building C object mysys/CMakeFiles/mysys.dir/string.c.o
[ 30%] Building C object mysys/CMakeFiles/mysys.dir/thr_alarm.c.o
[ 30%] Building C object mysys/CMakeFiles/mysys.dir/thr_lock.c.o
/home/george/dev/percona/ms-5.5-debugtest/mysys/thr_alarm.c: In function ‘thr_end_alarm’:
/home/george/dev/percona/ms-5.5-debugtest/mysys/thr_alarm.c:257:35: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
       queue_remove(&alarm_queue,i),MYF(0);
                                   ^
cc1: all warnings being treated as errors
mysys/CMakeFiles/mysys.dir/build.make:1940: recipe for target 'mysys/CMakeFiles/mysys.dir/thr_alarm.c.o' failed
make[2]: *** [mysys/CMakeFiles/mysys.dir/thr_alarm.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:2040: recipe for target 'mysys/CMakeFiles/mysys.dir/all' failed
make[1]: *** [mysys/CMakeFiles/mysys.dir/all] Error 2
Makefile:143: recipe for target 'all' failed
make: *** [all] Error 2

Suggested fix:
=== modified file 'mysys/thr_alarm.c'
--- mysys/thr_alarm.c	2014-01-06 05:22:35 +0000
+++ mysys/thr_alarm.c	2014-11-25 21:41:49 +0000
@@ -254,7 +254,7 @@
   {
     if ((ALARM*) queue_element(&alarm_queue,i) == alarm_data)
     {
-      queue_remove(&alarm_queue,i),MYF(0);
+      queue_remove(&alarm_queue,i);
       if (alarm_data->malloced)
 	my_free(alarm_data);
       found++;
[26 Nov 2014 6:50] Umesh Shastry
Hello George Lorch,

Thank you for the bug report.

Thanks,
Umesh
[26 Nov 2014 6:52] Umesh Shastry
test results

Attachment: 75000.txt (text/plain), 41.85 KiB.

[26 Nov 2014 7:05] Jon Olav Hauglid
Closing this as duplicate of Bug#74710, fixed in 5.5.42