[MacPorts] #69689: socat @1.8.0.0 fails to build with ccache
MacPorts
noreply at macports.org
Sun Apr 7 11:53:37 UTC 2024
#69689: socat @1.8.0.0 fails to build with ccache
---------------------------+--------------------
Reporter: emrecio | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: socat, ccache | Port: socat
---------------------------+--------------------
Specifically procan.o fails with makefile redefining CC in the makefile on
procan.c
{{{
ccache /usr/bin/clang -pipe -I/opt/local/libexec/openssl3/include -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
-D_GNU_SOURCE -Wall -Wno-parentheses -DHAVE_CONFIG_H -I.
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -c -D
CC=\"ccache /usr/bin/clang\" -o procan.o procan.c
clang: error: no such file or directory: '/usr/bin/clang"'
gmake: *** [Makefile:113: procan.o] Error 1
}}}
In the makefile
{{{
procan.o: procan.c
$(CC) $(CFLAGS) -c -D CC=\"$(CC)\" -o $@ procan.c
}}}
Remove « -D CC=\"$(CC)\" » from line 113 in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_socat/socat/work/socat-1.8.0.0/Makefile
Rerun make from that directory
{{{
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_socat/socat/work/socat-1.8.0.0
make
}}}
Rerun « sudo port install socat »
How does that CC get in there, and just remove it?
--
Ticket URL: <https://trac.macports.org/ticket/69689>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list