[MacPorts] #69384: gklib fails on 10.5 PPC

MacPorts noreply at macports.org
Wed May 1 21:57:09 UTC 2024


#69384: gklib fails on 10.5 PPC
-----------------------+--------------------------
  Reporter:  rmottola  |      Owner:  catap
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  leopard  gcc
      Port:  gklib     |
-----------------------+--------------------------

Comment (by rmottola):

 I have this error too.
 Compilation is being done with gcc7


 {{{
 /opt/local/bin/gcc-mp-7 -DGKlib_EXPORTS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_gklib/gklib/work
 /GKlib-8bd6bad750b2b0d90800c632cf18e8ee93ad72d7/.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_gklib/gklib/work
 /GKlib-8bd6bad750b2b0d90800c632cf18e8ee93ad72d7/test -pipe -Os -DNDEBUG
 -I/opt/local/include -DLINUX -D_FILE_OFFSET_BITS=64 -std=c99 -fno-strict-
 aliasing -mtune=native -fPIC -Werror -Wall -pedantic -Wno-unused-function
 -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unknown-pragmas
 -Wno-unused-label -DNO_X86=ON -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -O3
 -arch ppc -mmacosx-version-min=10.5 -fPIC -MD -MT
 CMakeFiles/GKlib.dir/io.c.o -MF CMakeFiles/GKlib.dir/io.c.o.d -o
 CMakeFiles/GKlib.dir/io.c.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_gklib/gklib/work
 /GKlib-8bd6bad750b2b0d90800c632cf18e8ee93ad72d7/io.c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_gklib/gklib/work
 /GKlib-8bd6bad750b2b0d90800c632cf18e8ee93ad72d7/io.c: In function
 'gk_readfile':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_gklib/gklib/work
 /GKlib-8bd6bad750b2b0d90800c632cf18e8ee93ad72d7/io.c:113:24: error:
 'lnlen' may be used uninitialized in this function [-Werror=maybe-
 uninitialized]
    if (*lineptr == NULL || *n == 0) {

 }}}

 I doubt this is a PPC only, but more a compiler issue which spits out a
 warning. Maybe on intel we usually have a different gcc or clang version.

 Should maybe warning=errors should be removed or specific initialization
 warnings suppressed?

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


More information about the macports-tickets mailing list