[MacPorts] #64588: macports fails to build for ppc with gcc11: cregistry errors

MacPorts noreply at macports.org
Wed Feb 2 11:41:05 UTC 2022


#64588: macports fails to build for ppc with gcc11: cregistry errors
------------------------------+----------------------
 Reporter:  barracuda156      |      Owner:  (none)
     Type:  defect            |     Status:  new
 Priority:  Normal            |  Milestone:
Component:  base              |    Version:  2.7.1
 Keywords:  powerpc, leopard  |       Port:  macports
------------------------------+----------------------
 Macports fails to build on 10.5.8 with gcc11:

 {{{
 ===> staging to destroot in vendor/tclx
 Installing header files in
 /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor/vendor-
 destroot/opt/bootstrap/libexec/macports/include
  /usr/bin/install -c libtclx8.4.dylib
 /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor/vendor-
 destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/libtclx8.4.dylib
 Installing ./generic/tclExtend.h
  : /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor/vendor-
 destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/libtclx8.4.dylib
  Install tclx.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/tclx.tcl
  Install autoload.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/autoload.tcl
  Install arrayprocs.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/arrayprocs.tcl
  Install compat.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/compat.tcl
  Install convlib.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/convlib.tcl
  Install edprocs.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/edprocs.tcl
  Install events.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/events.tcl
  Install forfile.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/forfile.tcl
  Install globrecur.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/globrecur.tcl
  Install help.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/help.tcl
  Install profrep.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/profrep.tcl
  Install pushd.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/pushd.tcl
  Install setfuncs.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/setfuncs.tcl
  Install showproc.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/showproc.tcl
  Install stringfile.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/stringfile.tcl
  Install tcllib.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/tcllib.tcl
  Install fmath.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/fmath.tcl
  Install buildhelp.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4/buildhelp.tcl
  Install pkgIndex.tcl /Users/svacchanda/Downloads/MacPorts-2.7.1/vendor
 /vendor-destroot/opt/bootstrap/libexec/macports/lib/tclx8.4
 ===> making all in src
 ===> making all in src/compat
 /opt/svacchanda/gcc11/bin/gcc -arch ppc -c -DUSE_TCL_STUBS
 -DTCL_NO_DEPRECATED -g -O2 -std=c99 -Wextra -Wall -pedantic
 -DHAVE_CONFIG_H -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src -I.
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/vendor/vendor-
 destroot/opt/bootstrap/libexec/macports/include -fno-common getdelim.c -o
 getdelim.o
 /opt/svacchanda/gcc11/bin/gcc -arch ppc -c -DUSE_TCL_STUBS
 -DTCL_NO_DEPRECATED -g -O2 -std=c99 -Wextra -Wall -pedantic
 -DHAVE_CONFIG_H -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src -I.
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/vendor/vendor-
 destroot/opt/bootstrap/libexec/macports/include -fno-common getline.c -o
 getline.o
 ===> making all in src/cregistry
 /opt/svacchanda/gcc11/bin/gcc -arch ppc -c -DUSE_TCL_STUBS -g -O2 -std=c99
 -Wextra -Wall -pedantic   -DHAVE_CONFIG_H
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src -I.
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/vendor/vendor-
 destroot/opt/bootstrap/libexec/macports/include -D_XOPEN_SOURCE=600 -fno-
 common registry.c -o registry.o
 /opt/svacchanda/gcc11/bin/gcc -arch ppc -c -DUSE_TCL_STUBS -g -O2 -std=c99
 -Wextra -Wall -pedantic   -DHAVE_CONFIG_H
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src -I.
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/vendor/vendor-
 destroot/opt/bootstrap/libexec/macports/include -D_XOPEN_SOURCE=600 -fno-
 common entry.c -o entry.o
 /opt/svacchanda/gcc11/bin/gcc -arch ppc -c -DUSE_TCL_STUBS -g -O2 -std=c99
 -Wextra -Wall -pedantic   -DHAVE_CONFIG_H
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src -I.
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/vendor/vendor-
 destroot/opt/bootstrap/libexec/macports/include -D_XOPEN_SOURCE=600 -fno-
 common sql.c -o sql.o
 /opt/svacchanda/gcc11/bin/gcc -arch ppc -c -DUSE_TCL_STUBS -g -O2 -std=c99
 -Wextra -Wall -pedantic   -DHAVE_CONFIG_H
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/src -I.
 -I/Users/svacchanda/Downloads/MacPorts-2.7.1/vendor/vendor-
 destroot/opt/bootstrap/libexec/macports/include -D_XOPEN_SOURCE=600 -fno-
 common vercomp.c -o vercomp.o
 vercomp.c: In function ‘vercmp’:
 vercomp.c:68:5: warning: this ‘if’ clause does not guard... [-Wmisleading-
 indentation]
    68 |     if (lengthB < 0)
       |     ^~
 vercomp.c:72:9: note: ...this statement, but the latter is misleadingly
 indented as if it were guarded by the ‘if’
    72 |         if(lengthA == lengthB && !strncmp(versionA, versionB,
 (size_t)lengthA))
       |         ^~
 sql.c: In function ‘create_tables’:
 sql.c:142:23: error: operator '>=' has no left operand
   142 | #if MP_SQLITE_VERSION >= 3022000
       |                       ^~
 sql.c: In function ‘update_db’:
 sql.c:316:23: error: operator '>=' has no left operand
   316 | #if MP_SQLITE_VERSION >= 3002000
       |                       ^~
 sql.c:412:23: error: operator '>=' has no left operand
   412 | #if MP_SQLITE_VERSION >= 3003000
       |                       ^~
 sql.c:637:23: error: operator '>=' has no left operand
   637 | #if MP_SQLITE_VERSION >= 3002000
       |                       ^~
 sql.c:731:23: error: operator '>=' has no left operand
   731 | #if MP_SQLITE_VERSION >= 3022000
       |                       ^~
 sql.c:752:23: error: operator '>=' has no left operand
   752 | #if MP_SQLITE_VERSION >= 3025000
       |                       ^~
 entry.c: In function ‘reg_entry_open’:
 entry.c:190:23: error: operator '>=' has no left operand
   190 | #if MP_SQLITE_VERSION >= 3006004
       |                       ^~
 entry.c:196:23: error: operator '>=' has no left operand
   196 | #if MP_SQLITE_VERSION >= 3006004
       |                       ^~
 entry.c: In function ‘reg_entry_installed’:
 entry.c:515:23: error: operator '>=' has no left operand
   515 | #if MP_SQLITE_VERSION >= 3006004
       |                       ^~
 entry.c: In function ‘reg_entry_owner’:
 entry.c:546:23: error: operator '>=' has no left operand
   546 | #if MP_SQLITE_VERSION >= 3003013
       |                       ^~
 entry.c:538:56: warning: unused parameter ‘cs’ [-Wunused-parameter]
   538 | int reg_entry_owner(reg_registry* reg, char* path, int cs,
 reg_entry** entry,
       |                                                    ~~~~^~
 entry.c: In function ‘reg_entry_owner_id’:
 make[2]: *** [sql.o] Error 1
 make[2]: *** Waiting for unfinished jobs....
 entry.c:613:23: error: operator '>=' has no left operand
   613 | #if MP_SQLITE_VERSION >= 3003013
       |                       ^~
 entry.c:607:68: warning: unused parameter ‘cs’ [-Wunused-parameter]
   607 | sqlite_int64 reg_entry_owner_id(reg_registry* reg, char* path, int
 cs) {
       |
 ~~~~^~
 entry.c: In function ‘reg_entry_unmap’:
 entry.c:891:23: error: operator '>=' has no left operand
   891 | #if MP_SQLITE_VERSION >= 3006004
       |                       ^~
 entry.c: In function ‘reg_entry_activate’:
 entry.c:1096:23: error: operator '>=' has no left operand
  1096 | #if MP_SQLITE_VERSION >= 3006004
       |                       ^~
 entry.c: In function ‘reg_entry_deactivate’:
 entry.c:1205:23: error: operator '>=' has no left operand
  1205 | #if MP_SQLITE_VERSION >= 3006004
       |                       ^~
 registry.c: In function ‘reg_checkpoint’:
 registry.c:519:34: warning: unused parameter ‘reg’ [-Wunused-parameter]
   519 | int reg_checkpoint(reg_registry* reg, reg_error* errPtr) {
       |                    ~~~~~~~~~~~~~~^~~
 registry.c:519:50: warning: unused parameter ‘errPtr’ [-Wunused-parameter]
   519 | int reg_checkpoint(reg_registry* reg, reg_error* errPtr) {
       |                                       ~~~~~~~~~~~^~~~~~
 make[2]: *** [entry.o] Error 1
 make[1]: *** [all] Error 1
 make: *** [all] Error 1
 }}}

 P. S. For the record, building on 10.6 PPC fails with the same errors.

-- 
Ticket URL: <https://trac.macports.org/ticket/64588>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list