From 5e63ff2ec97276588c280132ae23c82e324c74c1 Mon Sep 17 00:00:00 2001 From: JayDDee Date: Tue, 31 Dec 2024 00:51:16 -0500 Subject: [PATCH] Updated Compiling from source (markdown) --- Compiling-from-source.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Compiling-from-source.md b/Compiling-from-source.md index 76ae9a4..39e29dd 100644 --- a/Compiling-from-source.md +++ b/Compiling-from-source.md @@ -70,7 +70,7 @@ Notepad++ and 7zip are useful Windows programs with good support for Linux file Apple MacOS is supported on ARM64 and older MACs with Intel x86_64 CPUs. This procedure is only for Apple MAC PCs that use MacOS. iPads & iPhones use IOS which isn't supported and will not work. -Setting up the build environment on MacOS does not require an AppleID or need anything from the App store. Everything is done from the Terminal. MacOS uses Clang compiler by default which has caused issues. GCC is strongly recommended. +Setting up the build environment on MacOS does not require an AppleID or need anything from the App store. Everything is done from the Terminal. MacOS uses Clang compiler by default which works on ARM64 but has problems on MACs with x86_64 which need to be compiled with GCC. #### Install developer command line tools @@ -84,13 +84,14 @@ Install Homebrew from https://brew.sh/. Use Homebrew to install missing packages `% brew install aarch64-elf-binutils aarch64-elf-gcc gcc autoconf automake ca-certificates gettext git gmp isl jansson libmpc libunistring lz4 m4 mpfr pcre2 zstd` -Homebrew compiles packages from source which can take a long time. Once install is finished find gcc. gcc is linked to clang so it's necessary to include the version to actually call gcc. -The easiest way is tyo type `gcc-` then hit TAB for command completion. If multiple versions are installed they will all be listed. To use gcc the CC & CXX environment variables must be defined with the version included. At time of writing gcc-14 is the default, change version as required. The variables may be set in the shell profile, in CFLAGS or from the command line at user's preference. +Homebrew compiles packages from source which can take a long time. +Compiling for ARM64 currently only works with Clang, x86_64 requires GCC. +For x86_64 find the GCC version. "gcc" is linked to clang so it's necessary to include the version to actually call gcc.The easiest way is tyo type `gcc-` then hit TAB for command completion. If multiple versions are installed they will all be listed. To use gcc the CC & CXX environment variables must be defined with the version included. At time of writing gcc-14 is the default, change version as required. The variables may be set in the shell profile, in CFLAGS or from the command line at user's preference. `$ export CC=gcc-14` `$ export CXX=g++-14` -cpunminer-opt can now be compiled. +cpuminer-opt can now be compiled. #### Errata