Compile XMR miner (Wolf0) on Windows x64

Discussion in 'Cryptocurrency Mining and Markets' started by IamNOTaGEEK, Jan 12, 2018.

  1. IamNOTaGEEK

    IamNOTaGEEK New Member

    Joined:
    Jan 12, 2018
    Messages:
    2
    Likes Received:
    0
    Hi,
    I am trying to compile CPUMiner-Multi(Wolf0). I executed ./autogen.sh and ./configure Successfully but
    when I run make I got this error :

    Code:
    cpu-miner.c: In function 'miner_thread':
    cpu-miner.c:1060:70: error: 'MEM_LARGE_PAGES' undeclared (first use in this function)
       persistentctx = VirtualAlloc(NULL, sizeof(struct cryptonight_ctx), MEM_LARGE_PAGES, PAGE_READWRITE);
    ^~~~~~~~~~~~~~~
    cpu-miner.c:1060:70: note: each undeclared identifier is reported only once for each function it appears in
    Full Logs :
    Code:
    $ ./autogen.sh                                   
    configure.ac:18: installing `./compile'         
    configure.ac:4: installing `./config.guess'     
    configure.ac:4: installing `./config.sub'       
    configure.ac:6: installing `./install-sh'       
    configure.ac:6: installing `./missing'           
    compat/jansson/Makefile.am: installing `./depcomp'
     
     
    $ ./configure CFLAGS="-O3 -march=native"
    checking build system type... i686-pc-mingw32
    checking host system type... i686-pc-mingw32
    checking target system type... i686-pc-mingw32
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.exe
    checking for suffix of executables... .exe
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for gcc option to accept ISO C99... none needed
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking whether gcc needs -traditional... no
    checking whether gcc and cc understand -c and -o together... yes
    checking dependency style of gcc... gcc3
    checking for ranlib... ranlib
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking sys/endian.h usability... no
    checking sys/endian.h presence... no
    checking for sys/endian.h... no
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking syslog.h usability... no
    checking syslog.h presence... no
    checking for syslog.h... no
    checking for sys/sysctl.h... no
    checking whether be32dec is declared... no
    checking whether le32dec is declared... no
    checking whether be32enc is declared... no
    checking whether le32enc is declared... no
    checking for size_t... yes
    checking for working alloca.h... no
    checking for alloca... yes
    checking for getopt_long... yes
    checking whether we can compile AVX code... yes
    checking whether we can compile XOP code... yes
    checking whether we can compile AVX2 code... yes
    checking for json_loads in -ljansson... no
    checking for pthread_create in -lpthread... no
    checking for pthread_create in -lpthreadGC2... no
    checking for pthread_create in -lpthreadGC1... no
    checking for pthread_create in -lpthreadGC... no
    checking for gawk... (cached) gawk
    checking for curl-config... /c/MinGW64/bin/curl-config
    checking for the version of libcurl... 7.57.0
    checking for libcurl >= version 7.15.2... yes
    checking whether libcurl is usable... yes
    checking for curl_free... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating compat/Makefile
    config.status: creating compat/jansson/Makefile
    config.status: creating cpuminer-config.h
    config.status: executing depfiles commands
     
    $ make
    make  all-recursive
    make[1]: Entering directory `/home/user/cpuminer-multi-master'
    Making all in compat
    make[2]: Entering directory `/home/user/cpuminer-multi-master/compat'
    Making all in jansson
    make[3]: Entering directory `/home/user/cpuminer-multi-master/compat/jansson'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/user/cpuminer-multi-master/compat/jansson'
    make[3]: Entering directory `/home/user/cpuminer-multi-master/compat'
    make[3]: Nothing to be done for `all-am'.
    make[3]: Leaving directory `/home/user/cpuminer-multi-master/compat'
    make[2]: Leaving directory `/home/user/cpuminer-multi-master/compat'
    make[2]: Entering directory `/home/user/cpuminer-multi-master'
    gcc -DHAVE_CONFIG_H -I.   -I./compat/jansson -I/c/mingw64/include  -falign-loops=16 -falign-functions=16 -falign-jumps=16 -falign-labels=16  -Ofast -flto -fuse-linker-plugin -funroll-loops -fvariable-expansion-in-unroller -ftree-loop-if-convert-stores -fmerge-all-constants -fbranch-target-load-optimize2 -fsched2-use-superblocks -maes -Wl,--stack,10485760 -O3 -march=native -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
    cpu-miner.c: In function 'miner_thread':
    cpu-miner.c:1060:70: error: 'MEM_LARGE_PAGES' undeclared (first use in this function)
       persistentctx = VirtualAlloc(NULL, sizeof(struct cryptonight_ctx), MEM_LARGE_PAGES, PAGE_READWRITE);
                                                                          ^~~~~~~~~~~~~~~
    cpu-miner.c:1060:70: note: each undeclared identifier is reported only once for each function it appears in
    make[2]: *** [minerd-cpu-miner.o] Error 1
    make[2]: Leaving directory `/home/user/cpuminer-multi-master'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/user/cpuminer-multi-master'
    make: *** [all] Error 2

    So, anyone can help me with full deatiled Compile tutarial i.e (gcc & g++ & automake Version).
     
    #1
  2. gigatexal

    gigatexal I'm here to learn

    Joined:
    Nov 25, 2012
    Messages:
    2,696
    Likes Received:
    499
    Is there anything on their github or google about the error?


    Sent from my iPhone using Tapatalk
     
    #2
  3. IamNOTaGEEK

    IamNOTaGEEK New Member

    Joined:
    Jan 12, 2018
    Messages:
    2
    Likes Received:
    0
    hi
    I googled for 3 days but nothing. I guess problem is version of compiler or library maybe Memory large page ...
    @Patrick maybe you can help me!
     
    #3
    Last edited: Jan 12, 2018
Similar Threads: Compile miner
Forum Title Date
Cryptocurrency Mining and Markets Dedicated Open Compute miner build- Part 2.The RandomX Edition. Aug 17, 2019
Cryptocurrency Mining and Markets asic or gpu miner? Jun 11, 2018
Cryptocurrency Mining and Markets Interesting Windows only cryptonight miner that mines fast on non AES cpu's. Apr 12, 2018
Cryptocurrency Mining and Markets Really bad news for GPU and CPU Cryptonight miners .... The end. Mar 15, 2018
Cryptocurrency Mining and Markets ccminer Universal NVIDIA Docker Miner Feb 17, 2018

Share This Page