mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
Updated Compiling from source (markdown)
@@ -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.
|
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
|
#### 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`
|
`% 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.
|
Homebrew compiles packages from source which can take a long time.
|
||||||
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.
|
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 CC=gcc-14`
|
||||||
`$ export CXX=g++-14`
|
`$ export CXX=g++-14`
|
||||||
|
|
||||||
cpunminer-opt can now be compiled.
|
cpuminer-opt can now be compiled.
|
||||||
|
|
||||||
#### Errata
|
#### Errata
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user