From a84fbb9c81b89daa59dabefa5fe168e38728ce68 Mon Sep 17 00:00:00 2001 From: JayDDee Date: Sat, 15 Jan 2022 12:53:28 -0500 Subject: [PATCH] Updated Compiling from source (markdown) --- Compiling-from-source.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Compiling-from-source.md b/Compiling-from-source.md index 283b781..1281302 100644 --- a/Compiling-from-source.md +++ b/Compiling-from-source.md @@ -94,10 +94,11 @@ cpuminer-opt can now be built on Windows for Windows using MinGW-w64 and MSYS2. Windows 7 or newer is required. The compiled executable can only run on the system where it was built. Use the hard way for a portable package. -1. Download and install the latest version of msys2-x86_64 from https://www.msys2.org/ -Leave the MSYS2 MSYS window open to install more packages in the next step. +1. Download and install the latest version of msys2-x86_64 from https://www.msys2.org/. +Update packages and install mingw toolchain but leave the MSYS2 MSYS window open at the end to install +more packages in the next step. -2. Install the following additional packages +2. Install the following additional packages. `$ pacman -S autotools libcurl-devel mingw-w64-x86_64-curl gmp-devel jansson-devel openssl-devel zlib-devel` @@ -112,15 +113,11 @@ is a good choice. If intending to use cpuminer.exe from a Windows terminal (step folder is recommended. It can be accessed from an MSYS2 terminal using the path /c/users/[USER]/documents. 5. Open "MSYS2 MinGW-w64" from the Windows start menu, change directories to the downloaded -cpuminer-opt and compile. +cpuminer-opt and compile. "--param=evrp-mode=legacy" is required to workaround a bug in the optimizer. +"-D_WIN32_WINNT=0x0601" is required to support Windows CPU groups. `$ ./autogen.sh` -`$ CFLAGS="-O3 --param=evrp-mode=legacy -march=native -Wall" ./configure --with-curl` - -or add `-D_WIN32_WINNT=0x0601` to CFLAGS to enable CPU groups support in the miner. -This is required for a CPU with more than 64 threads or when CPU groups have been configured in Windows. - `$ CFLAGS="-O3 --param=evrp-mode=legacy -march=native -Wall -D_WIN32_WINNT=0x0601" ./configure --with-curl` `$ make -j [N]`