traviscross / mtr

Official repository for mtr, a network diagnostic tool
http://www.bitwizard.nl/mtr/
GNU General Public License v2.0
2.68k stars 340 forks source link

not compatible with gcc 10 under Cygwin? #386

Closed ardel closed 3 years ago

ardel commented 3 years ago

After upgrading my cygwin I can no longer build mtr. Can someone reproduce this?

$ ./configure && make
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `.../mtr-src/mtr-0.94':
configure: error: C compiler cannot create executables
See `config.log' for more details

The contents of config.log

gcc version 10.2.0 (GCC)
configure:2873: $? = 0
configure:2862: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2873: $? = 1
configure:2862: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2873: $? = 1
configure:2893: checking whether the C compiler works
configure:2915: gcc    conftest.c  >&5
configure:2919: $? = 1
configure:2957: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mtr"
| #define PACKAGE_TARNAME "mtr"
| #define PACKAGE_VERSION "0.94"
| #define PACKAGE_STRING "mtr 0.94"
| #define PACKAGE_BUGREPORT "R.E.Wolff@BitWizard.nl"
| #define PACKAGE_URL "http://www.BitWizard.nl/mtr/"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2962: error: in `.../mtr-src/mtr-0.94':
configure:2964: error: C compiler cannot create executables
See `config.log' for more details
rewolff commented 3 years ago

I have access to the "gcc farm". None of these have gcc-10 installed. Scratch that.

None of the machines where gcc --version worked have gcc-10 installed. gcc-10 seems to wait-for-input when you invoke it with gcc --version. I have access to three machines with gcc-10 installed.

I created the file conftest as reported above, invoked gcc and... it worked on all three machines just like on my own gcc-9 .

gcc conftest.c 
echo $? 

The "correct" result is "0", your "configure" claims it got a "1".

ardel commented 3 years ago

My local issue then. Closing the ticket.