[MacPorts] #54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma GCC diagnostic not allowed inside functions"

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[MacPorts] #54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma GCC diagnostic not allowed inside functions"

MacPorts
#54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma
GCC diagnostic not allowed inside functions"
-----------------------+-------------------
 Reporter:  ballapete  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
 Keywords:  tiger      |       Port:  tcl
-----------------------+-------------------
 {{{
 /opt/local/bin/gcc-apple-4.2 -c -Os -pipe -Os -arch ppc -pipe
 -DSQLITE_WITHOUT_ZONEMALLOC  -Wall -fno-common -DBUILD_tcl -I"."
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.7/unix
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.7/generic
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.7/libtommath
 -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.6\"
 -DPACKAGE_STRING=\"tcl\ 8.6\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_SYS_PARAM_H=1
 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1
 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DTCL_THREADS=1
 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DHAVE_ZLIB=1 -DMODULE_SCOPE=extern\
 __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1
 -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1
 -DTCL_SHLIB_EXT=\".dylib\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1
 -DTCL_TOMMATH=1 -DMP_PREC=4 -DTCL_WIDE_INT_TYPE=long\ long
 -DWORDS_BIGENDIAN=1 -DHAVE_GETCWD=1 -DHAVE_MKSTEMP=1 -DHAVE_OPENDIR=1
 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1
 -DHAVE_FREEADDRINFO=1 -DHAVE_GAI_STRERROR=1 -DHAVE_STRUCT_ADDRINFO=1
 -DHAVE_STRUCT_IN6_ADDR=1 -DHAVE_STRUCT_SOCKADDR_IN6=1
 -DHAVE_STRUCT_SOCKADDR_STORAGE=1 -DHAVE_GETPWUID_R_5=1 -DHAVE_GETPWUID_R=1
 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1 -DHAVE_GETGRGID_R_5=1
 -DHAVE_GETGRGID_R=1 -DHAVE_GETGRNAM_R_5=1 -DHAVE_GETGRNAM_R=1
 -DHAVE_MTSAFE_GETHOSTBYNAME=1 -DHAVE_MTSAFE_GETHOSTBYADDR=1
 -DHAVE_TERMIOS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1
 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1
 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1
 -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1
 -DHAVE_LANGINFO=1 -DHAVE_CHFLAGS=1 -DHAVE_MKSTEMPS=1 -DHAVE_GETATTRLIST=1
 -DHAVE_COPYFILE=1 -DHAVE_LIBKERN_OSATOMIC_H=1 -DHAVE_OSSPINLOCKLOCK=1
 -DUSE_VFORK=1 -DTCL_DEFAULT_ENCODING=\"utf-8\" -DTCL_LOAD_FROM_MEMORY=1
 -DTCL_WIDE_CLICKS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1
 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_UNLOAD_DLLS=1
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.7/unix/tclUnixSock.c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.7/unix/tclUnixSock.c:
 In function 'IPv6AddressNeedsNumericRendering':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.7/unix/tclUnixSock.c:716:
 error: #pragma GCC diagnostic not allowed inside functions
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.7/unix/tclUnixSock.c:717:
 error: #pragma GCC diagnostic not allowed inside functions
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.7/unix/tclUnixSock.c:719:
 error: #pragma GCC diagnostic not allowed inside functions
 make: *** [tclUnixSock.o] Error 1
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.7/unix'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.7/unix"
 && /usr/bin/make -w all
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/54596>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma GCC diagnostic not allowed inside functions"

MacPorts
#54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma
GCC diagnostic not allowed inside functions"
------------------------+-------------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:  tiger
      Port:  tcl        |
------------------------+-------------------
Changes (by ballapete):

 * Attachment "main.log" added.

 PPC Tiger main.log

--
Ticket URL: <https://trac.macports.org/ticket/54596>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma GCC diagnostic not allowed inside functions"

MacPorts
In reply to this post by MacPorts
#54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma
GCC diagnostic not allowed inside functions"
------------------------+-------------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:  tiger
      Port:  tcl        |
------------------------+-------------------

Comment (by GussyFinkNottle):

 I have the same problem, but on snow leopard.  I have tried to build also
 with several macports compilers,
 but none of them will accept such pragmas.  Some obscure osx issue is
 mentioned in the part of the source program at fault.

 The macport version of tcl@8.6.7 on osx 10.11.6 appears to be fine,
 but I'm not sure if it came pre-built.

--
Ticket URL: <https://trac.macports.org/ticket/54596#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma GCC diagnostic not allowed inside functions"

MacPorts
In reply to this post by MacPorts
#54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma
GCC diagnostic not allowed inside functions"
------------------------+-------------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:  tiger
      Port:  tcl        |
------------------------+-------------------

Comment (by kencu):

 Pull request for fix <https://github.com/macports/macports-
 ports/pull/669>.

--
Ticket URL: <https://trac.macports.org/ticket/54596#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma GCC diagnostic not allowed inside functions"

MacPorts
In reply to this post by MacPorts
#54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma
GCC diagnostic not allowed inside functions"
------------------------+-------------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:  tiger
      Port:  tcl        |
------------------------+-------------------

Comment (by kencu):

 FYI - same fix already incorporated into tcl trunk -- will roll out in
 some subsequent release.

--
Ticket URL: <https://trac.macports.org/ticket/54596#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma GCC diagnostic not allowed inside functions"

MacPorts
In reply to this post by MacPorts
#54596: Tcl @8.6.7 does not build on PPC Tiger, Mac oS x 10.4.11, because "#pragma
GCC diagnostic not allowed inside functions"
------------------------+--------------------
  Reporter:  ballapete  |      Owner:  kencu
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:  fixed      |   Keywords:  tiger
      Port:  tcl        |
------------------------+--------------------
Changes (by kencu):

 * owner:   => kencu
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"96734caea8b0b233b1b78437c0be8626775f1050/macports-ports"
 96734caea8b0b233b1b78437c0be8626775f1050/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="96734caea8b0b233b1b78437c0be8626775f1050"
 tcl: fix error on older compilers re: pragmas inside functions

 move pragma just outside the function
 fixes build on older gcc compilers
 closes: https://trac.macports.org/ticket/54596
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/54596#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...