[MacPorts] #47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type -------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: snowleopard | Port: ghostscript -------------------------+-------------------------------- {{{ make[2]: Entering directory `/opt/local/var/macports/build/_opt_mports_dports_print_ghostscript/ghostscript/work/ghostscript-9.16' /usr/bin/gcc-4.2 -DHAVE_MKSTEMP -DHAVE_FSEEKO -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_BSWAP32 -DHAVE_STRERROR -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2 -isystem/opt/local/include -Wall -Wstrict-prototypes -Wundef -Wmissing- declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror =return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long int" -D__USE_UNIX98=1 -D"strnlen(a,b)=strlen(a)" -pipe -Os -arch x86_64 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER -I/opt/local/include -I./soobj -I./base -I./soobj -I./devices -I./devices/vector -c -o soobj/pclgen.o -DGS_REVISION=916 -I./contrib/pcl3/eprn ./contrib/pcl3/src/pclgen.c /usr/bin/gcc-4.2 -DHAVE_MKSTEMP -DHAVE_FSEEKO -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_BSWAP32 -DHAVE_STRERROR -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2 -isystem/opt/local/include -Wall -Wstrict-prototypes -Wundef -Wmissing- declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror =return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long int" -D__USE_UNIX98=1 -D"strnlen(a,b)=strlen(a)" -pipe -Os -arch x86_64 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER -I/opt/local/include -I./soobj -I./base -I./soobj -I./devices -I./devices/vector -c -o soobj/pclcomp.o -DGS_REVISION=916 -I./contrib/pcl3/eprn ./contrib/pcl3/src/pclcomp.c /usr/bin/gcc-4.2 -DHAVE_MKSTEMP -DHAVE_FSEEKO -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_BSWAP32 -DHAVE_STRERROR -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2 -isystem/opt/local/include -Wall -Wstrict-prototypes -Wundef -Wmissing- declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror =return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long int" -D__USE_UNIX98=1 -D"strnlen(a,b)=strlen(a)" -pipe -Os -arch x86_64 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER -I/opt/local/include -I./soobj -I./base -I./soobj -I./devices -I./devices/vector -c -o soobj/pclsize.o -DGS_REVISION=916 -I./contrib/pcl3/eprn ./contrib/pcl3/src/pclsize.c /usr/bin/gcc-4.2 -DHAVE_MKSTEMP -DHAVE_FSEEKO -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_BSWAP32 -DHAVE_STRERROR -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2 -isystem/opt/local/include -Wall -Wstrict-prototypes -Wundef -Wmissing- declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror =return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long int" -D__USE_UNIX98=1 -D"strnlen(a,b)=strlen(a)" -pipe -Os -arch x86_64 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER -I/opt/local/include -I./soobj -I./base -I./devices -DWHICH_CMS="lcms2" -I./trio -o ./soobj/gssprintf_0.o -c ./base/gssprintf.c In file included from ./contrib/pcl3/src/pclcomp.c:32: ./contrib/pcl3/src/pclgen.h:26: warning: ignoring #pragma ident ./contrib/pcl3/src/pclcomp.c: In function ‘compress_tiff’: ./contrib/pcl3/src/pclcomp.c:165: warning: label ‘state2’ defined but not used In file included from ./contrib/pcl3/src/pclsize.c:31: ./contrib/pcl3/src/pclsize.h:19: warning: ignoring #pragma ident In file included from ./contrib/pcl3/src/pclsize.h:23, from ./contrib/pcl3/src/pclsize.c:31: ./contrib/pcl3/eprn/mediasize.h:18: warning: ignoring #pragma ident In file included from ./contrib/pcl3/src/pclsize.h:24, from ./contrib/pcl3/src/pclsize.c:31: ./contrib/pcl3/src/pclgen.h:26: warning: ignoring #pragma ident ./contrib/pcl3/src/pclsize.c: In function ‘pcl3_page_size’: ./contrib/pcl3/src/pclsize.c:129: warning: suggest parentheses around arithmetic in operand of | ./contrib/pcl3/src/pclcomp.c: In function ‘pcl_compress’: ./contrib/pcl3/src/pclcomp.c:707: warning: suggest parentheses around && within || ./contrib/pcl3/src/pclcomp.c:707: warning: suggest parentheses around && within || ./contrib/pcl3/src/pclcomp.c:707: warning: suggest parentheses around && within || ./contrib/pcl3/src/pclcomp.c:707: warning: suggest parentheses around && within || In file included from ./contrib/pcl3/src/pclgen.c:72: ./contrib/pcl3/src/pclgen.h:26: warning: ignoring #pragma ident ./contrib/pcl3/src/pclgen.c: In function ‘pcl3_init_file’: ./contrib/pcl3/src/pclgen.c:311: warning: suggest parentheses around && within || ./contrib/pcl3/src/pclgen.c:338: warning: suggest parentheses around && within || ./contrib/pcl3/src/pclgen.c:338: warning: suggest parentheses around && within || ./contrib/pcl3/src/pclgen.c: In function ‘pcl3_begin_raster’: ./contrib/pcl3/src/pclgen.c:582: warning: suggest parentheses around && within || ./contrib/pcl3/src/pclgen.c: In function ‘pcl3_set_oldquality’: ./contrib/pcl3/src/pclgen.c:1111: warning: suggest parentheses around && within || In file included from ./trio/trio.h:35, from ./base/gssprintf.c:19: ./trio/triop.h:407: error: type qualifiers ignored on function return type make[2]: *** [soobj/gssprintf_0.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_print_ghostscript/ghostscript/work/ghostscript-9.16' make[1]: *** [so-subtarget] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_print_ghostscript/ghostscript/work/ghostscript-9.16' make: *** [so] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_print_ghostscript/ghostscript/work/ghostscript-9.16' Command failed: cd "/opt/local/var/macports/build/_opt_mports_dports_print_ghostscript/ghostscript/work/ghostscript-9.16" && /usr/bin/make -j8 -w so Exit code: 2 }}} See [https://build.macports.org/builders/buildports-snowleopard- x86_64/builds/35692 the buildbot log]. -- Ticket URL: <https://trac.macports.org/ticket/47722> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Comment (by knayawp@…): Please CC me! I'm having the same issue on 10.7.5 -- Ticket URL: <https://trac.macports.org/ticket/47722#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Comment (by devans@…): Fixes for SL build issues committed in r136307, r136308. Now builds correctly on buildbot. -- Ticket URL: <https://trac.macports.org/ticket/47722#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Comment (by mojca@…): Thank you very much. Someone now needs to rebuild the dependent ports if you didn't do it already by now. Not that it's important but I'm just curious: why blacklist all gcc compilers? Isn't the problematic one just gcc < 4.2 (= old default compiler)? I would expect at least macports' gcc 4.7-4.9 to work. -- Ticket URL: <https://trac.macports.org/ticket/47722#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Changes (by devans@…): * status: new => closed * resolution: => fixed Comment: Replying to [comment:8 mojca@…]:
Thank you very much. Someone now needs to rebuild the dependent ports if you didn't do it already by now.
https://build.macports.org/builders/buildports-snowleopard- x86_64/builds/35709
Not that it's important but I'm just curious: why blacklist all gcc
compilers? Isn't the problematic one just gcc < 4.2 (= old default compiler)? I would expect at least macports' gcc 4.7-4.9 to work. Yes, but in general, I try and avoid the pure gcc compilers when clang is available (for compatibility with other platforms). The selected compiler in this case is mp-clang-3.4 which I believe has a higher priority on the fallback list than the gcc-4.7+ in any case. -- Ticket URL: <https://trac.macports.org/ticket/47722#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Comment (by braumann@…): Replying to [comment:9 devans@…]:
Yes, but in general, I try and avoid the pure gcc compilers when clang is available (for compatibility with other platforms). The selected compiler in this case is mp-clang-3.4 which I believe has a higher priority on the fallback list than the gcc-4.7+ in any case. As soon as you restrict compilers to clang-mp-3.* you must know that you lock out PPC users. E.g. clang-mp-3.4 can be built on 10.5.8 PPC, but still is not functional! So, please add a switch in order to allow gcc- mp-4.* (say, at least gcc-mp-4.5, I guess), in my case this invocation has worked: {{{ $ sudo port upgrade ghostscript configure.compiler=macports-gcc-4.9 }}}
-- Ticket URL: <https://trac.macports.org/ticket/47722#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Comment (by braumann@…): Replying to [comment:10 braumann@…]:
As soon as you restrict compilers to clang-mp-3.* you must know that you lock out PPC users. E.g. clang-mp-3.4 can be built on 10.5.8 PPC, but still is not functional! So, please add a switch in order to allow gcc-mp-4.* (say, at least gcc-mp-4.5, I guess), in my case this invocation has worked: {{{ $ sudo port upgrade ghostscript configure.compiler=macports-gcc-4.9 }}} FWIW: While my comment above refers to the changeset "ghostscript: blacklist compilers that error on const function return type" [https://trac.macports.org/changeset/136307], for a different package but with the same maintainer I found a similar problem concerning "gnome- keyring: blacklist compilers that do not support C11 (redefinition of typedefs)" [https://trac.macports.org/changeset/136259]. Again, while clang-mp-3.* is not functional on PPC systems so far, instead gcc-mp-4.9 does the job!
-- Ticket URL: <https://trac.macports.org/ticket/47722#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Comment (by mojca@…): Proving proper support for C++11 on 10.5 will probably remain problematic. Then again I agree that there should be no need to blacklist all gcc compilers; it would be nice to blacklist just the oldest ones. (For the next time: you can type just '`r136307`' to get a reference to the changeset, like r136307. To reference the tickets you just type in '`#`' followed by the ticket number.) -- Ticket URL: <https://trac.macports.org/ticket/47722#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Comment (by ryandesign@…): Replying to [comment:13 mojca@…]:
Proving proper support for C++11 on 10.5 will probably remain problematic.
According to r136259, it uses C11, not C++11, so that is not nearly as problematic. -- Ticket URL: <https://trac.macports.org/ticket/47722#comment:14> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Comment (by mschamschula@…): I modified the compiler blacklist to build under Leopard (10.5.8). This should also work with Tiger, see comment 12. -- Ticket URL: <https://trac.macports.org/ticket/47722#comment:16> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Comment (by mojca@…): C11 is supported since gcc 4.7. There's no need to blacklist `gcc-4.7 gcc-4.8` -- Ticket URL: <https://trac.macports.org/ticket/47722#comment:17> MacPorts <https://www.macports.org/> Ports system for OS X
#47722: ghostscript: build failure on 10.6; triop.h:407: error: type qualifiers ignored on function return type --------------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: snowleopard Port: ghostscript | --------------------------+-------------------------------- Comment (by jmr@…): This is just the usual failure mode when you decide to use -Werror. r136513 Someone should ask upstream to provide a —disable-werror configure flag, or even better, make that the default and let their contributors configure with —enable-werror. -- Ticket URL: <https://trac.macports.org/ticket/47722#comment:18> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts