Opened 8 months ago

Closed 8 months ago

#68311 closed defect (fixed)

p5.34-socket6 @0.290.0_0 fails to build with ccache enabled

Reported by: jhoyt4 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: p5-socket6

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Attachments (1)

p5.34-socket6.log (256.5 KB) - added by jhoyt4 8 months ago.

Download all attachments as: .zip

Change History (11)

Changed 8 months ago by jhoyt4

Attachment: p5.34-socket6.log added

comment:1 Changed 8 months ago by jhoyt4

Description: modified (diff)
Summary: p5.34-socket6 fails to build on Sonomap5.34-socket6 fails to build on Sonoma Xcode 15

comment:2 Changed 8 months ago by jmroot (Joshua Root)

Keywords: p5-socket6 removed
Summary: p5.34-socket6 fails to build on Sonoma Xcode 15p5.34-socket6 @0.290.0_0 fails to build on Sonoma Xcode 15
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
                                ^

comment:3 Changed 8 months ago by jmroot (Joshua Root)

checking whether your Perl5 have PL_sv_undef... no

Does it work without ccache?

comment:4 Changed 8 months ago by jhoyt4

I have ccache installed. After uninstalling ccache it compiled and installed (at least on intel)

comment:5 Changed 8 months ago by jhoyt4

Deactivating ccache also got it building on arm64

comment:6 Changed 8 months ago by jhoyt4

Summary: p5.34-socket6 @0.290.0_0 fails to build on Sonoma Xcode 15p5.34-socket6 @0.290.0_0 fails to build with ccache enabled on Sonoma Xcode 15

comment:7 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sonoma removed
Port: por added; p5.34-socket6 p5-socket6 removed
Summary: p5.34-socket6 @0.290.0_0 fails to build with ccache enabled on Sonoma Xcode 15p5.34-socket6 @0.290.0_0 fails to build with ccache enabled

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.

comment:8 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Port: p5-socket6 added; por removed

comment:9 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Status: newaccepted

The port builds quickly enough that it's not worth the effort of trying to figure out how to fix this properly, especially since we are patching the build system to use the CC we specify, rather than the CC perl was built with, so any fixes we develop for this might be inapplicable for submitting upstream anyway. Simplest to just disable ccache.

comment:10 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 70bbc13c1a2116313dc0b15bf145b05a121c5849/macports-ports (master):

p5-socket6: Disable ccache

Closes: #68311

Note: See TracTickets for help on using tickets.