https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104660
Bug ID: 104660
Summary: Makefile.in has embedded dependencies of libatomic and
libbacktrace for libgo, causing GNU/Hurd build to
fail.
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: regression
Assignee: unassigned at gcc dot gnu.org
Reporter: svante.signell at gmail dot com
Target Milestone: ---
Created attachment 52497
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52497&action=edit
Patch of src/Makefile.in
Hello,
The generated file Makefile.in has embedded dependencies on libatomic and
libbacktrace preventing them to be built before libgo:
The dependency of libffi:
all-target-libgo: maybe-all-target-libffi
is outside any conditionals but libbacktrace and libatomic is not:
@unless gcc-bootstrap
...
all-target-libgo: maybe-all-target-libbacktrace
all-target-libgo: maybe-all-target-libatomic
...
@endunless gcc-bootstrap
Due to this condition the generated build/Makefile does not contain the
dependencies on libatomic and libbacktrace, causing the build to fail on
GNU/Hurd.
Generating a new version of Makefile.in by:
(cd source; autogen Makefile.def)
does not solve the problem: the same buggy build/Makefile is created.
Attached is a patch to move the dependencies outside of the conditional.
However, since Makefile.in is generated the problem lies in
Makefile.def/Makefile.tpl.
Unfortunately not much is documented on this conditional pair: @unless,
@endunless
Thanks!