Opened 3 years ago
Closed 3 years ago
#63698 closed defect (duplicate)
libgcc11 @11.1.0: Fails to build on 12.0 Monterey under arm64
Reported by: | mpbarlow (Matt Barlow) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | imgx64, astroboylrx (Rixin Li), xroblot | |
Port: | libgcc11 |
Description (last modified by mpbarlow (Matt Barlow))
arm64 is still using 11.1.0 instead of 11.2.0 used on x86_64, but building under Monterey fails with the following error:
:info:build checking whether we are cross compiling... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/arm64-apple-darwin21/libgomp': :info:build configure: error: cannot run C compiled programs. :info:build If you meant to cross compile, use `--host'.
I believe this is a different issue to #63691 and #63677 which appear to be x86_64 specific.
Attachments (2)
Change History (16)
comment:1 Changed 3 years ago by mpbarlow (Matt Barlow)
Description: | modified (diff) |
---|
comment:2 Changed 3 years ago by mpbarlow (Matt Barlow)
Description: | modified (diff) |
---|
comment:3 Changed 3 years ago by mpbarlow (Matt Barlow)
Description: | modified (diff) |
---|
comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Changed 3 years ago by mpbarlow (Matt Barlow)
Attachment: | config.log added |
---|
Changed 3 years ago by mpbarlow (Matt Barlow)
comment:5 Changed 3 years ago by mpbarlow (Matt Barlow)
I've attached config.log, but the full main.log is 63MB, so I've uploaded a truncated version from what I believe is the start of the step that fails onwards.
Please let me know if there's anything more required.
comment:7 follow-up: 8 Changed 3 years ago by mpbarlow (Matt Barlow)
I have found a workaround. The error in config.log
is that it cannot find /usr/lib/libgcc_s.1.1.dylib
or /usr/local/lib/libgcc_s.1.1.dylib
. However, this file is present in the work directory for the port, so after the install failed I ran
sudo cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/arm64-apple-darwin21/libgcc/libgcc_s.1.1.dylib /usr/local/lib
After that the port built without issue—hopefully there are no further implications from doing this.
comment:8 Changed 3 years ago by ednl (Ewoud Dronkert)
Replying to mpbarlow:
I have found a workaround. The error in
config.log
is that it cannot find/usr/lib/libgcc_s.1.1.dylib
or/usr/local/lib/libgcc_s.1.1.dylib
.
Aha! So I guess the fix would be to replace that /usr/local/lib search path with /opt/local/lib, or add that? Because yeah, I don't think MacPorts should dump stuff in /usr/local/lib.
comment:9 Changed 3 years ago by imgx64
Cc: | imgx64 added |
---|
comment:10 Changed 3 years ago by Guymer (Thomas Guymer)
I have just come across this issue too. I first had to make "/usr/local/lib" as it was missing on my fresh install of Monterey, but after that it worked fine.
comment:11 Changed 3 years ago by QYQSDTC (YiQian Qian)
I have this issue too. After I upgraded my M1 Mac Mini last night and did the migration stuff, I encountered this problem, but it seems libgcc-devel works fine, so I am using libgcc-devel as a temporary solution and waiting for the fix for libgcc11 and gcc11.
comment:12 Changed 3 years ago by astroboylrx (Rixin Li)
Cc: | astroboylrx added |
---|
comment:13 Changed 3 years ago by xroblot
Cc: | xroblot added |
---|
comment:14 Changed 3 years ago by cjones051073 (Chris Jones)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closing as duplicate of https://trac.macports.org/ticket/63677
Please attach the main.log and config.log files.