[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64436] Building from git on macOS Montery fails because install-de
From: |
anonymous |
Subject: |
[bug #64436] Building from git on macOS Montery fails because install-deps.sh exports CC=gcc-11 |
Date: |
Mon, 17 Jul 2023 13:45:56 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64436>
Summary: Building from git on macOS Montery fails because
install-deps.sh exports CC=gcc-11
Group: Gforth
Submitter: None
Submitted: Mon 17 Jul 2023 05:45:54 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 17 Jul 2023 05:45:54 PM UTC By: Anonymous
The current version of GCC in brew for macOS is gcc-13, but install-deps.sh
explicitly exports CC=gcc-11 in install_osx(), which is not found and causes
the swig configure to fail.
Unfortunately, I think you need to list all the versions of gcc that brew has
installed and pick the latest one.
Here's a diff of the change that worked for me:
diff --git a/install-deps.sh b/install-deps.sh
index 6aa6d480..e17262ec 100755
--- a/install-deps.sh
+++ b/install-deps.sh
@@ -81,7 +81,8 @@ install_osx() {
brew install --cask xquartz mactex
export PATH="/Library/TeX/texbin:$PATH"
brew link --overwrite gcc
- export CC=gcc-11
+ INSTALLED_GCC=$(basename $(ls /usr/local/bin/gcc-* | /usr/bin/grep -E
'gcc-[0-9]+$' | /usr/bin/sort --version-sort | /usr/bin/tail -1))
+ CC=$INSTALLED_GCC
# (cd
/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/include-fixed
&& mv stdio.h stdio.h.botched)
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64436>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #64436] Building from git on macOS Montery fails because install-deps.sh exports CC=gcc-11,
anonymous <=