[MacPorts] #66832: libgcc12 build fails on Ventura with Xcode 14.2 due to new undeclared gawk dependency
MacPorts
noreply at macports.org
Sun Feb 5 07:10:42 UTC 2023
#66832: libgcc12 build fails on Ventura with Xcode 14.2 due to new undeclared gawk
dependency
---------------------------+---------------------
Reporter: nocturne-mit | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: ventura
Port: libgcc12 |
---------------------------+---------------------
Comment (by kencu):
Although I see your pasted bit, I don't think your build error is
primarily due to the lack of "gawk".
Something else has gone on here. This build log is not from a clean build,
for one.
Ventura does have "awk"
{{{
% ls -la /usr/bin/awk
-rwxr-xr-x 1 root wheel 351504 2 Dec 03:37 /usr/bin/awk
}}}
and the libgcc12 build will use it when it is found, so "gawk" is not
required:
{{{
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
}}}
your error seems to have something to do with a failed build of libiberty:
{{{
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/gcc-12.2.0/libiberty/sha1.c:57:23:
warning: declaration of 'struct sha1_ctx' will not be visible outside of
this function [-Wvisibility]
:info:build sha1_init_ctx (struct sha1_ctx *ctx)
:info:build ^
:info:build 1 warning generated.
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/gcc-12.2.0/libiberty/sha1.c:59:6:
error: incomplete definition of type 'struct sha1_ctx'
:info:build ctx->A = 0x67452301;
:info:build ~~~^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/gcc-12.2.0/libiberty/sha1.c:57:23:
note: forward declaration of 'struct sha1_ctx'
:info:build sha1_init_ctx (struct sha1_ctx *ctx)
:info:build ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/gcc-12.2.0/libiberty/sha1.c:60:6:
error: incomplete definition of type 'struct sha1_ctx'
:info:build ctx->B = 0xefcdab89;
:info:build ~~~^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/gcc-12.2.0/libiberty/sha1.c:57:23:
note: forward declaration of 'struct sha1_ctx'
:info:build sha1_init_ctx (struct sha1_ctx *ctx)
:info:build ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/gcc-12.2.0/libiberty/sha1.c:61:6:
error: incomplete definition of type 'struct sha1_ctx'
:info:build ctx->C = 0x98badcfe;
:info:build ~~~^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/gcc-12.2.0/libiberty/sha1.c:57:23:
note: forward declaration of 'struct sha1_ctx'
:info:build sha1_init_ctx (struct sha1_ctx *ctx)
:info:build ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/gcc-12.2.0/libiberty/sha1.c:62:6:
error: incomplete definition of type 'struct sha1_ctx'
:info:build ctx->D = 0x10325476;
:info:build ~~~^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/gcc-12.2.0/libiberty/sha1.c:57:23:
note: forward declaration of 'struct sha1_ctx'
:info:build sha1_init_ctx (struct sha1_ctx *ctx)
:info:build ^
}}}
please clean your build of libgcc12:
{{{
sudo port clean libgcc12
}}}
and then try your build again, and see what happens. It is possible some
other header is interfering with the libgcc12 build --
--
Ticket URL: <https://trac.macports.org/ticket/66832#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list