| Bug #25873 | Compile fails on CYGWIN_NT-5.1 1.5.23(0.156/4/2) 2006-12-19 10:52 i686 C | ||
|---|---|---|---|
| Submitted: | 26 Jan 2007 16:02 | Modified: | 6 May 2007 17:18 |
| Reporter: | Sebastian Nohn | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
| Version: | 5.0.34, 5.0.33 | OS: | Any (Cygwin) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | qc | ||
[29 Jan 2007 9:35]
Sveta Smirnova
Thank you for the report. I can not repeat it on Linux.
[3 Feb 2007 12:38]
Sebastian Nohn
Then try it on Cygwin, it's reproducable.
[3 Feb 2007 13:17]
Valeriy Kravchuk
Bug #26048 was marked as a duplicate of this one. Formally we do not support compiling in Cygwin, that is why this bug report was closed when Sveta was not able to repeat it on Linux. But I'll try to get some comments from our build team on this.
[13 Feb 2007 15:56]
Sebastian Nohn
Same problem with 5.1.15-beta: /usr/bin/rm -f example1.r /usr/bin/rm -f example2.r /usr/bin/sed -e 's!\\!\\\\!g' example1.c > example1.r /usr/bin/sed -e 's!\\!\\\\!g' example2.c > example2.r /usr/bin/rm -f example3.r /usr/bin/sed -e 's!\\!\\\\!g' example3.c > example3.r /usr/bin/rm -f main.r /usr/bin/sed -e 's!\\!\\\\!g' main.c > main.r /usr/bin/rm -f factorial.r gcc -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wunused-parameter -O3 -fno-omit-frame-pointer factorial.c -o factorial /usr/bin/sed -e 's!\\!\\\\!g' factorial.c > factorial.r rm -f libdbug.a ar cru libdbug.a dbug.o sanity.o factorial.c:12:23: my_global.h: No such file or directory factorial.c: In function `factorial': factorial.c:17: warning: implicit declaration of function `DBUG_ENTER' factorial.c:18: warning: implicit declaration of function `DBUG_PRINT' factorial.c:18: warning: left-hand operand of comma expression has no effect factorial.c:22: warning: left-hand operand of comma expression has no effect factorial.c:23: warning: implicit declaration of function `DBUG_RETURN' factorial.c:24: warning: no return statement in function returning non-void factorial.c:24: warning: control reaches end of non-void function make[2]: *** [factorial] Error 1 make[2]: *** Waiting for unfinished jobs.... ranlib libdbug.a make[2]: Leaving directory `/tmp/mysql-5.1.15-beta/dbug' make[1]: *** [all-recursive] Error 1 make[1]: Leaving direct
[13 Feb 2007 16:35]
Sebastian Nohn
Same for 5.2.3-falcon-alpha:
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wunused-parameter -O3 -fno-omit-frame-pointer -MT dbug_analyze.o -MD -MP -MF ".deps/dbug_analyze.Tpo" -c -o dbug_analyze.o dbug_analyze.c; \
then mv -f ".deps/dbug_analyze.Tpo" ".deps/dbug_analyze.Po"; else rm -f ".deps/dbug_analyze.Tpo"; exit 1; fi
In file included from dbug_analyze.c:52:
../include/my_global.h:634: warning: weak declaration of '__cxa_pure_virtual' not supported
dbug_analyze.c: In function `main':
dbug_analyze.c:583: warning: statement with no effect
/usr/bin/rm -f example1.r
/usr/bin/rm -f example2.r
/usr/bin/sed -e 's!\\!\\\\!g' example1.c > example1.r
/usr/bin/sed -e 's!\\!\\\\!g' example2.c > example2.r
/usr/bin/rm -f example3.r
/usr/bin/rm -f main.r
/usr/bin/sed -e 's!\\!\\\\!g' example3.c > example3.r
/usr/bin/sed -e 's!\\!\\\\!g' main.c > main.r
/usr/bin/rm -f factorial.r
gcc -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wunused-parameter -O3 -fno-omit-frame-pointer factorial.c -o factorial
/usr/bin/sed -e 's!\\!\\\\!g' factorial.c > factorial.r
factorial.c:5:23: my_global.h: No such file or directory
factorial.c: In function `factorial':
factorial.c:10: warning: implicit declaration of function `DBUG_ENTER'
factorial.c:11: warning: implicit declaration of function `DBUG_PRINT'
factorial.c:11: warning: left-hand operand of comma expression has no effect
factorial.c:15: warning: left-hand operand of comma expression has no effect
factorial.c:16: warning: implicit declaration of function `DBUG_RETURN'
factorial.c:17: warning: no return statement in function returning non-void
factorial.c:17: warning: control reaches end of non-void function
rm -f libdbug.a
make[2]: *** [factorial] Error 1
make[2]: *** Waiting for unfinished jobs....
ar cru libdbug.a dbug.o sanity.o
ranlib libdbug.a
make[2]: Leaving directory `/tmp/mysql-5.2.3-falcon-alpha/dbug'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/mysql-5.2.3-falcon-alpha'
make: *** [all] Error 2
[4 May 2007 7:00]
Valeriy Kravchuk
Please, try to repeat with a newer versions, 5.1.17 and 5.0.37, and inform about the results.
[5 May 2007 11:00]
Sebastian Nohn
Works fine with 5.0.37.
[5 May 2007 15:49]
Sebastian Nohn
5.1.17 works fine as well.
[6 May 2007 17:17]
Valeriy Kravchuk
So, I think, we can close this report as "Can't repeat" with current versions.
[6 May 2007 17:18]
Sebastian Nohn
I would call it fixed, whatever the fix was.
[26 Mar 2008 22:11]
Anton Anikin
Same problem again with 5.1.23-rc version

Description: Can't compile in this enviroment: $ uname -a CYGWIN_NT-5.1 sn-t43p 1.5.23(0.156/4/2) 2006-12-19 10:52 i686 Cygwin $ automake --version automake (GNU automake) 1.9.6 $ autoconf --version autoconf (GNU Autoconf) 2.61 $ bison --version bison (GNU Bison) 2.3 $ m4 --version GNU M4 1.4.8 $ libtool --version ltmain.sh (GNU libtool) 1.5.23a (1.1220.2.412 2006/10/13 14:13:30) $ BUILD/compile-pentium [.....] In file included from mysys_priv.h:17, from my_pthread.c:21: ../include/my_global.h:510: warning: weak declaration of '__cxa_pure_virtual' not supported In file included from mysys_priv.h:17, from my_thr_init.c:22: ../include/my_global.h:510: warning: weak declaration of '__cxa_pure_virtual' not supported my_thr_init.c: In function `my_thread_id': my_thr_init.c:327: warning: implicit declaration of function `pthread_getsequence_np' rm -f libmysys.a ar cru libmysys.a my_init.o my_getwd.o mf_getdate.o my_mmap.o mf_path.o mf_loadpath.o my_file.o my_open.o my_create.o my_dup.o my_seek.o my_read.o my_pread.o my_write.o my_getpagesize.o mf_keycache.o mf_keycaches.o my_crc32.o mf_iocache.o mf_iocache2.o mf_cache.o mf_tempfile.o mf_tempdir.o my_lock.o mf_brkhant.o my_alarm.o my_malloc.o my_realloc.o my_once.o mulalloc.o my_alloc.o safemalloc.o my_new.o my_fopen.o my_fstream.o my_getsystime.o my_error.o errors.o my_div.o my_messnc.o mf_format.o mf_same.o mf_dirname.o mf_fn_ext.o my_symlink.o my_symlink2.o mf_pack.o mf_unixpath.o mf_strip.o mf_wcomp.o mf_wfile.o my_gethwaddr.o mf_qsort.o mf_qsort2.o mf_sort.o ptr_cmp.o mf_radix.o queues.o tree.o list.o hash.o array.o string.o typelib.o my_copy.o my_append.o my_lib.o my_delete.o my_rename.o my_redel.o my_chsize.o my_lread.o my_lwrite.o my_clock.o my_quick.o my_lockmem.o my_static.o my_sync.o my_getopt.o my_mkdir.o default_modify.o default.o my_compress.o checksum.o raid.o my_net.o my_semaphore.o my_port.o my_sleep.o charset.o charset-def.o my_bitmap.o my_bit.o md5.o my_gethostbyname.o rijndael.o my_aes.o sha1.o my_handler.o my_netware.o my_largepage.o my_memmem.o my_windac.o my_access.o base64.o my_libwrap.o thr_alarm.o thr_lock.o thr_mutex.o thr_rwlock.o my_pthread.o my_thr_init.o mf_keycache.o ranlib libmysys.a make[2]: Leaving directory `/cygdrive/c/temp/mysql-5.0.33/mysys' Making all in dbug make[2]: Entering directory `/cygdrive/c/temp/mysql-5.0.33/dbug' make[2]: warning: -jN forced in submake: disabling jobserver mode. if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mtune=pentium-m -march=pentium-m -O3 -fno-omit-frame-pointer -MT dbug.o -MD -MP -MF ".deps/dbug.Tpo" -c -o dbug.o dbug.c; \ then mv -f ".deps/dbug.Tpo" ".deps/dbug.Po"; else rm -f ".deps/dbug.Tpo"; exit 1; fi In file included from dbug.c:72: ../include/my_global.h:510: warning: weak declaration of '__cxa_pure_virtual' not supported if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mtune=pentium-m -march=pentium-m -O3 -fno-omit-frame-pointer -MT sanity.o -MD -MP -MF ".deps/sanity.Tpo" -c -o sanity.o sanity.c; \ then mv -f ".deps/sanity.Tpo" ".deps/sanity.Po"; else rm -f ".deps/sanity.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mtune=pentium-m -march=pentium-m -O3 -fno-omit-frame-pointer -MT my_main.o -MD -MP -MF ".deps/my_main.Tpo" -c -o my_main.o my_main.c; \ then mv -f ".deps/my_main.Tpo" ".deps/my_main.Po"; else rm -f ".deps/my_main.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mtune=pentium-m -march=pentium-m -O3 -fno-omit-frame-pointer -MT factorial.o -MD -MP -MF ".deps/factorial.Tpo" -c -o factorial.o factorial.c; \ then mv -f ".deps/factorial.Tpo" ".deps/factorial.Po"; else rm -f ".deps/factorial.Tpo"; exit 1; fi In file included from my_main.c:10: ../include/my_global.h:510: warning: weak declaration of '__cxa_pure_virtual' not supported In file included from factorial.c:5: ../include/my_global.h:510: warning: weak declaration of '__cxa_pure_virtual' not supported In file included from sanity.c:3: ../include/my_global.h:510: warning: weak declaration of '__cxa_pure_virtual' not supported if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mtune=pentium-m -march=pentium-m -O3 -fno-omit-frame-pointer -MT dbug_analyze.o -MD -MP -MF ".deps/dbug_analyze.Tpo" -c -o dbug_analyze.o dbug_analyze.c; \ then mv -f ".deps/dbug_analyze.Tpo" ".deps/dbug_analyze.Po"; else rm -f ".deps/dbug_analyze.Tpo"; exit 1; fi In file included from dbug_analyze.c:52: ../include/my_global.h:510: warning: weak declaration of '__cxa_pure_virtual' not supported /usr/bin/rm -f example1.r /usr/bin/rm -f example2.r /usr/bin/sed -e 's!\\!\\\\!g' example1.c > example1.r /usr/bin/sed -e 's!\\!\\\\!g' example2.c > example2.r /usr/bin/rm -f example3.r /usr/bin/rm -f main.r /usr/bin/sed -e 's!\\!\\\\!g' main.c > main.r /usr/bin/sed -e 's!\\!\\\\!g' example3.c > example3.r /usr/bin/rm -f factorial.r gcc -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mtune=pentium-m -march=pentium-m -O3 -fno-omit-frame-pointer factorial.c -o factorial /usr/bin/sed -e 's!\\!\\\\!g' factorial.c > factorial.r factorial.c:5:23: my_global.h: No such file or directory factorial.c: In function `factorial': factorial.c:10: warning: implicit declaration of function `DBUG_ENTER' factorial.c:11: warning: implicit declaration of function `DBUG_PRINT' factorial.c:11: warning: left-hand operand of comma expression has no effect factorial.c:15: warning: left-hand operand of comma expression has no effect factorial.c:16: warning: implicit declaration of function `DBUG_RETURN' factorial.c:17: warning: no return statement in function returning non-void factorial.c:17: warning: control reaches end of non-void function make[2]: *** [factorial] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/cygdrive/c/temp/mysql-5.0.33/dbug' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/cygdriv How to repeat: $ BUILD/compile-pentium