[MacPorts] #70665: ngspice-lib fails to build: error: duplicate member 'component'

MacPorts noreply at macports.org
Sat Aug 31 02:57:04 UTC 2024


#70665: ngspice-lib fails to build: error: duplicate member 'component'
--------------------------+----------------------------------
 Reporter:  barracuda156  |      Owner:  bpdegnan
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.1
 Keywords:                |       Port:  ngspice, ngspice-lib
--------------------------+----------------------------------
 Aside from two obvious breakages introduced by a recent update, which are
 trivially fixable (drop hardcoded arch flag, set required C/C++ standard),
 there is another issue:

 {{{
 Making all in dense
 make[3]: Entering directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_ngspice
 /ngspice-lib/work/ngspice-43/src/maths/dense'
   CC       dense.lo
   CCLD     libdense.la
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_ngspice
 /ngspice-lib/work/ngspice-43/src/maths/dense'
 Making all in KLU
 make[3]: Entering directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_ngspice
 /ngspice-lib/work/ngspice-43/src/maths/KLU'
   CC       libKLU_real_la-klu.lo
   CC       libKLU_real_la-klu_diagnostics.lo
   CC       libKLU_real_la-klu_extract.lo
   CC       libKLU_real_la-klu_free_numeric.lo
   CC       libKLU_real_la-klu_dump.lo
   CC       libKLU_real_la-klu_factor.lo
 klu_factor.c: In function 'klu_factor':
 klu_factor.c:397:10: warning: variable 'R' set but not used [-Wunused-but-
 set-variable]
   397 |     Int *R ;
       |          ^
   CC       libKLU_real_la-klu_kernel.lo
 klu_diagnostics.c: In function 'klu_rgrowth':
 klu_diagnostics.c:37:14: warning: variable 'Ui' set but not used
 [-Wunused-but-set-variable]
    37 |     Int *Q, *Ui, *Uip, *Ulen, *Pinv ;
       |              ^~
 klu_diagnostics.c: In function 'klu_condest':
 klu_diagnostics.c:182:9: warning: variable 'nblocks' set but not used
 [-Wunused-but-set-variable]
   182 |     Int nblocks, i, j, jmax, jnew, pend, n ;
       |         ^~~~~~~
 klu_diagnostics.c:181:10: warning: variable 'R' set but not used
 [-Wunused-but-set-variable]
   181 |     Int *R ;
       |          ^
 klu_diagnostics.c: In function 'klu_flops':
 klu_diagnostics.c:425:21: warning: variable 'n' set but not used
 [-Wunused-but-set-variable]
   425 |     Int k, ulen, p, n, nk, block, nblocks, k1 ;
       |                     ^
   CC       libKLU_real_la-klu_multiply.lo
   CC       libKLU_real_la-klu_refactor.lo
   CC       libKLU_real_la-klu_scale.lo
   CC       libKLU_real_la-klu_solve.lo
 klu_kernel.c: In function 'prune':
 klu_kernel.c:553:17: warning: variable 'Ux' set but not used [-Wunused-
 but-set-variable]
   553 |     Entry *Lx, *Ux ;
       |                 ^~
   CC       libKLU_real_la-klu_sort.lo
   CC       libKLU_real_la-klu_tsolve.lo
 klu_refactor.c: In function 'klu_refactor':
 klu_refactor.c:34:36: warning: variable 'Offi' set but not used [-Wunused-
 but-set-variable]
    34 |     Int *P, *Q, *R, *Pnum, *Offp, *Offi, *Ui, *Li, *Pinv, *Lip,
 *Uip, *Llen,
       |                                    ^~~~
 klu_refactor.c:34:29: warning: variable 'Offp' set but not used [-Wunused-
 but-set-variable]
    34 |     Int *P, *Q, *R, *Pnum, *Offp, *Offi, *Ui, *Li, *Pinv, *Lip,
 *Uip, *Llen,
       |                             ^~~~
 klu_refactor.c:34:10: warning: variable 'P' set but not used [-Wunused-
 but-set-variable]
    34 |     Int *P, *Q, *R, *Pnum, *Offp, *Offi, *Ui, *Li, *Pinv, *Lip,
 *Uip, *Llen,
       |          ^
   CC       libKLU_real_la-klu_utils.lo
   CC       libKLU_complex_la-klu.lo
 klu_sort.c: In function 'klu_sort':
 klu_sort.c:101:9: warning: variable 'n' set but not used [-Wunused-but-
 set-variable]
   101 |     Int n, nk, nz, block, nblocks, maxblock, k1 ;
       |         ^
   CC       libKLU_complex_la-klu_diagnostics.lo
   CC       libKLU_complex_la-klu_dump.lo
 In file included from klu_internal.h:12,
                  from klu.c:61:
 klu_version.h:341:14: error: duplicate member 'component'
   341 | #define Imag component [1]
       |              ^~~~~~~~~
   CC       libKLU_complex_la-klu_extract.lo
 make[3]: *** [libKLU_complex_la-klu.lo] Error 1
 make[3]: *** Waiting for unfinished jobs....
 In file included from klu_internal.h:12,
                  from klu_diagnostics.c:14:
 klu_version.h:341:14: error: duplicate member 'component'
   341 | #define Imag component [1]
       |              ^~~~~~~~~
 klu_diagnostics.c: In function 'klu_z_rgrowth':
 klu_diagnostics.c:37:14: warning: variable 'Ui' set but not used
 [-Wunused-but-set-variable]
    37 |     Int *Q, *Ui, *Uip, *Ulen, *Pinv ;
       |              ^~
 klu_diagnostics.c: In function 'klu_z_condest':
 klu_diagnostics.c:182:9: warning: variable 'nblocks' set but not used
 [-Wunused-but-set-variable]
   182 |     Int nblocks, i, j, jmax, jnew, pend, n ;
       |         ^~~~~~~
 klu_diagnostics.c:181:10: warning: variable 'R' set but not used
 [-Wunused-but-set-variable]
   181 |     Int *R ;
       |          ^
 klu_diagnostics.c: In function 'klu_z_flops':
 klu_diagnostics.c:425:21: warning: variable 'n' set but not used
 [-Wunused-but-set-variable]
   425 |     Int k, ulen, p, n, nk, block, nblocks, k1 ;
       |                     ^
 make[3]: *** [libKLU_complex_la-klu_diagnostics.lo] Error 1
 In file included from klu_internal.h:12,
                  from klu_dump.c:9:
 klu_version.h:341:14: error: duplicate member 'component'
   341 | #define Imag component [1]
       |              ^~~~~~~~~
 make[3]: *** [libKLU_complex_la-klu_dump.lo] Error 1
 In file included from klu_internal.h:12,
                  from klu_extract.c:12:
 klu_version.h:341:14: error: duplicate member 'component'
   341 | #define Imag component [1]
       |              ^~~~~~~~~
 make[3]: *** [libKLU_complex_la-klu_extract.lo] Error 1
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_ngspice
 /ngspice-lib/work/ngspice-43/src/maths/KLU'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_ngspice
 /ngspice-lib/work/ngspice-43/src/maths'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_ngspice
 /ngspice-lib/work/ngspice-43/src'
 make: *** [all-recursive] Error 1
 }}}

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


More information about the macports-tickets mailing list