Opened 3 years ago

Closed 3 years ago

#63879 closed defect (fixed)

gcc-devel @12-20211107_0 build fails: libgcc_tm.h not found

Reported by: ednl (Ewoud Dronkert) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gcc-devel

Description (last modified by ednl (Ewoud Dronkert))

While updating on M1 Monterey 12.0.1 because gcc-devel 12-20211028_0 < 12-20211107_0 the build fails when libgcc_tm.h is not found. However, when searching manually, I did find it at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc-devel/gcc-devel/work/build/aarch64-apple-darwin21/libgcc/libgcc_tm.h. From the log:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc-devel/gcc-devel/work/gcc-darwin-arm64-75d53e7d110e49268429958cf2ca0686697d54d8/libgcc/config/darwin10-unwind-find-enc-func.c:4:10: fatal error: libgcc_tm.h: No such file or directory
:info:build     4 | #include "libgcc_tm.h"
:info:build       |          ^~~~~~~~~~~~~

Change History (6)

comment:1 Changed 3 years ago by ednl (Ewoud Dronkert)

Description: modified (diff)

comment:2 Changed 3 years ago by ednl (Ewoud Dronkert)

Maybe it was a timing issue where the file wasn't created or moved yet when it was first needed? Because the upgrade of gcc-devel (with full compilation) worked on the second try with no clean-up in between.

comment:3 Changed 3 years ago by adsche

What exactly did you do between the tries?

I just ran port upgrade gcc-devel three times and it always failed with the same error you reported initially.

(macOS 12.0.1, Darwin 21.1.0, XCode 13.1)

Last edited 3 years ago by adsche (previous) (diff)

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Looks like the same issue reported for libgcc-devel in #64124.

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Does it work if you disable parallel builds?

sudo port install gcc-devel build.jobs=1

comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 1fe344511b9747c7b9473ac12ce67ae2e0560efa/macports-ports (master):

gcc-devel: Disable parallel build on arm

Closes: #63879
Closes: #64124

Note: See TracTickets for help on using tickets.