[MacPorts] #68311: p5.34-socket6 @0.290.0_0 fails to build with ccache enabled (was: p5.34-socket6 @0.290.0_0 fails to build with ccache enabled on Sonoma Xcode 15)

MacPorts noreply at macports.org
Sun Oct 1 17:43:11 UTC 2023


#68311: p5.34-socket6 @0.290.0_0 fails to build with ccache enabled
---------------------+--------------------
  Reporter:  jhoyt4  |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  por     |
---------------------+--------------------
Changes (by ryandesign):

 * keywords:  sonoma =>
 * port:  p5.34-socket6, p5-socket6 => por


Old description:

> Failing on Sonoma on both intel and arm64 - full log to be attached
> shortly.
>
> macOS 14.0 23A344 x86_64
> Xcode 15.0 15A240d
>
> macOS 14.0 23A344 arm64
> Xcode 15.0 15A240d
>
> Here's the first warning - there are a 188 of these types of warnigns.
>
> {{{
> In file included from /opt/local/lib/perl5/5.34/darwin-thread-multi-
> 2level/CORE/sbox32_hash.h:4:
> /opt/local/lib/perl5/5.34/darwin-thread-multi-
> 2level/CORE/zaphod32_hash.h:150:5: warning: '(' and '{' tokens
> introducing statement expression appear in different macro expansion
> contexts [-Wcompound-token-split-by-macro]
>     ZAPHOD32_SCRAMBLE32(state[0],0x9fade23b);
>     ^~~~~~~~~~~~~~~~~~~~~
> }}}
>

> Here's the first error
>
> {{{
> /opt/local/lib/perl5/5.34/darwin-thread-multi-2level/CORE/perl.h:738:21:
> note: expanded from macro 'STMT_END'
> #   define STMT_END     )
>                         ^
> Socket6.xs:753:12: error: use of undeclared identifier 'sv_undef'
>                                 PUSHs(&PL_sv_undef);
>                                        ^
> Socket6.xs:110:22: note: expanded from macro 'PL_sv_undef'
> #define PL_sv_undef             sv_undef
>                                 ^
> }}}
>
> Tail of the log:
>

> {{{
> 188 warnings and 1 error generated.
> make: *** [Socket6.o] Error 1
> make: Leaving directory `/opt/local/var/macports/build
> /_opt_mports_macports-
> ports_perl_p5-socket6/p5.34-socket6/work/Socket6-0.29'
> Command failed:  cd "/opt/local/var/macports/build/_opt_mports_macports-
> ports_perl_p5-socket6/p5.34-socket6/work/Socket6-0.29" && /usr/bin/make
> -j12 -w all
> Exit code: 2
> Error: Failed to build p5.34-socket6: command execution failed
> DEBUG: Error code: CHILDSTATUS 48453 2
> DEBUG: Backtrace: command execution failed
>     while executing
> "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
>     invoked from within
> "command_exec -callback portprogress::target_progress_callback build"
>     (procedure "portbuild::build_main" line 8)
>     invoked from within
> "$procedure $targetname"
> Error: See /opt/local/var/macports/logs/_opt_mports_macports-
> ports_perl_p5-socket6/p5.34-socket6/main.log for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug.
> Error: Processing of port p5.34-socket6 failed
>
> }}}

New description:

 Failing on Sonoma on both intel and arm64 - full log to be attached
 shortly.

 macOS 14.0 23A344 x86_64 \\
 Xcode 15.0 15A240d

 macOS 14.0 23A344 arm64 \\
 Xcode 15.0 15A240d

 Here's the first warning - there are a 188 of these types of warnigns.

 {{{
 In file included from /opt/local/lib/perl5/5.34/darwin-thread-multi-
 2level/CORE/sbox32_hash.h:4:
 /opt/local/lib/perl5/5.34/darwin-thread-multi-
 2level/CORE/zaphod32_hash.h:150:5: warning: '(' and '{' tokens introducing
 statement expression appear in different macro expansion contexts
 [-Wcompound-token-split-by-macro]
     ZAPHOD32_SCRAMBLE32(state[0],0x9fade23b);
     ^~~~~~~~~~~~~~~~~~~~~
 }}}

 Here's the first error

 {{{
 /opt/local/lib/perl5/5.34/darwin-thread-multi-2level/CORE/perl.h:738:21:
 note: expanded from macro 'STMT_END'
 #   define STMT_END     )
                         ^
 Socket6.xs:753:12: error: use of undeclared identifier 'sv_undef'
                                 PUSHs(&PL_sv_undef);
                                        ^
 Socket6.xs:110:22: note: expanded from macro 'PL_sv_undef'
 #define PL_sv_undef             sv_undef
                                 ^
 }}}

 Tail of the log:

 {{{
 188 warnings and 1 error generated.
 make: *** [Socket6.o] Error 1
 make: Leaving directory `/opt/local/var/macports/build
 /_opt_mports_macports-
 ports_perl_p5-socket6/p5.34-socket6/work/Socket6-0.29'
 Command failed:  cd "/opt/local/var/macports/build/_opt_mports_macports-
 ports_perl_p5-socket6/p5.34-socket6/work/Socket6-0.29" && /usr/bin/make
 -j12 -w all
 Exit code: 2
 Error: Failed to build p5.34-socket6: command execution failed
 DEBUG: Error code: CHILDSTATUS 48453 2
 DEBUG: Backtrace: command execution failed
     while executing
 "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
     invoked from within
 "command_exec -callback portprogress::target_progress_callback build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 Error: See /opt/local/var/macports/logs/_opt_mports_macports-
 ports_perl_p5-socket6/p5.34-socket6/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port p5.34-socket6 failed
 }}}

--

Comment:

 Confirmed on Monterey. With ccache installed and `configureccache yes` in
 macports.conf, config.log contains:

 {{{
 configure:2795: checking whether your Perl5 have PL_sv_undef
 ccache: invalid option -- f
 make: *** [conftest.o] Error 1
 }}}

 With `configureccache no`:

 {{{
 configure:2795: checking whether your Perl5 have PL_sv_undef
 ...
 94 warnings generated.
 configure:2839: result: yes
 }}}

 Also confirmed issue also occurs with p5.30-socket6.

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


More information about the macports-tickets mailing list