Post
Topic
Board Mining (Altcoins)
Re: [MTC] High Performance GPU Miner for Metiscoin (Updated - 12 Feb 2014)
by
samee
on 17/02/2014, 02:31:07 UTC
compile error in Archlinux.

cpu : AMD Athlon(tm) II X3 440 Processor
display card: microstar hd7850
driver: catalyst 14.1

Quote
g++ -c  -static -Wall -Wextra -std=c++0x -O2 -fomit-frame-pointer  -march=native -I/usr/local/include -I/usr/include -IxptMiner/includes/ xptMiner/main.cpp -o xptMiner/main.o
In file included from xptMiner/global.h:77:0,
                 from xptMiner/main.cpp:1:
xptMiner/OpenCLObjects.h:77:9: error: extra qualification 'OpenCLKernel::' on member 'getPreferredWorkGroupSize' [-fpermissive]
  size_t OpenCLKernel::getPreferredWorkGroupSize(OpenCLDevice* device);
         ^
Makefile:93: recipe for target 'xptMiner/main.o' failed
make: *** [xptMiner/main.o] Error 1

   

Whoops, looks like one of my tweaks broke something.  I pushed a fix to github, you should be good to go.

still error:

Quote
g++ -Wall -Wextra -O2 -fomit-frame-pointer  -march=native -L/usr/local/lib -L/usr/lib -I/usr/local/include -I/usr/include -IxptMiner/includes/ -o xptminer xptMiner/ticker.o xptMiner/main.o xptMiner/sha2.o xptMiner/xptClient.o xptMiner/protosharesMiner.o xptMiner/primecoinMiner.o xptMiner/keccak.o xptMiner/metis.o xptMiner/shavite.o xptMiner/metiscoinMiner.o xptMiner/scrypt.o xptMiner/scryptMinerCPU.o xptMiner/xptClientPacketHandler.o xptMiner/xptPacketbuffer.o xptMiner/xptServer.o xptMiner/xptServerPacketHandler.o xptMiner/transaction.o xptMiner/OpenCLObjects.o xptMiner/jhlib.o  -lrt -lOpenCL -flto
/usr/bin/ld: xptMiner/main.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:102: recipe for target 'xptminer' failed
make: *** [xptminer] Error 1