Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#69829 closed defect (fixed)

gtk2 @2.24.33: cc1: error: unrecognized command line option "-Wno-enum-conversion"

Reported by: barracuda156 Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: tiger, leopard, snowleopard Cc: ballapete (Peter "Pete" Dyballa)
Port: gtk2

Description

configure:4307: checking for gcc
configure:4340: result: /usr/bin/gcc-4.2
configure:4699: checking for C compiler version
configure:4708: /usr/bin/gcc-4.2 --version >&5
powerpc-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5626)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4719: $? = 0
configure:4708: /usr/bin/gcc-4.2 -v >&5
Using built-in specs.
Target: powerpc-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5626~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/usr/include/c++/4.2.1 --program-prefix= --host=powerpc-apple-darwin10 --target=powerpc-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5626)
configure:4719: $? = 0
configure:4708: /usr/bin/gcc-4.2 -V >&5
gcc-4.2: argument to `-V' is missing
configure:4719: $? = 1
configure:4708: /usr/bin/gcc-4.2 -qversion >&5
powerpc-apple-darwin10-gcc-4.2.1: no input files
configure:4719: $? = 1
configure:4708: /usr/bin/gcc-4.2 -version >&5
powerpc-apple-darwin10-gcc-4.2.1: no input files
configure:4719: $? = 1
configure:4739: checking whether the C compiler works
configure:4761: /usr/bin/gcc-4.2 -pipe -Os -fstrict-aliasing -Wno-deprecated-declarations -Wno-enum-conversion -Wno-unknown-warning-option -Wno-error=unknown-warning-option -arch ppc -I/opt/local/include -DX_LOCALE -D_IPP_PRIVATE_STRUCTURES=1 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
cc1: error: unrecognized command line option "-Wno-enum-conversion"
cc1: error: unrecognized command line option "-Wno-unknown-warning-option"
cc1: error: -Werror=unknown-warning-option: No option -Wunknown-warning-option
configure:4765: $? = 1
configure:4806: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gtk+"
| #define PACKAGE_TARNAME "gtk+"
| #define PACKAGE_VERSION "2.24.33"
| #define PACKAGE_STRING "gtk+ 2.24.33"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B"
| #define PACKAGE_URL ""
| #define GETTEXT_PACKAGE "gtk20"
| /* end confdefs.h.  */
| 
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4811: error: in '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk2/gtk2/work/gtk+-2.24.33':
configure:4813: error: C compiler cannot create executables

Change History (9)

comment:1 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: gtk2: the last revbump has broken configuregtk2 @2.24.33: cc1: error: unrecognized command line option "-Wno-enum-conversion"

comment:2 Changed 7 months ago by barracuda156

Last edited 7 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 7 months ago by mascguy (Christopher Nielsen)

Ah yes, we should only add those flags when the compiler is Clang. Will fix tomorrow, thanks for the heads-up!

comment:4 in reply to:  3 Changed 7 months ago by barracuda156

Replying to mascguy:

Ah yes, we should only add those flags when the compiler is Clang. Will fix tomorrow, thanks for the heads-up!

Great, thanks!

comment:5 Changed 7 months ago by ballapete (Peter "Pete" Dyballa)

Cc: ballapete added

comment:6 Changed 7 months ago by ballapete (Peter "Pete" Dyballa)

Apple's GCC 4.2 does not know warnings à la -W-no-<whatever. Another question is why we end-users need to use compiler switches that only might tell something the developer…

comment:7 Changed 7 months ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In b2960de97ef2c6cb4c43d5026d02193e7ddc42e7/macports-ports (master):

gtk2{,-devel}: limit new compiler flags to clang

Fixes: #69829

comment:8 Changed 7 months ago by ballapete (Peter "Pete" Dyballa)

It built now.

comment:9 in reply to:  8 Changed 7 months ago by mascguy (Christopher Nielsen)

Replying to ballapete:

It built now.

Great, thanks for confirming Pete!

Note: See TracTickets for help on using tickets.