How Can I Plot on my MacBook Pro (Mid-2015)?
-
@blood Can you post the whole output so I can take a look at that in addition to the error? I had the same problem and wanted to make sure my fix does not need changes for Mac
-
@Xander52 --- Compiling for 64-bit arch ---
CFLAGS=-D OSX -D AMD64 -O2 -Wall -D_FILE_OFFSET_BITS=64 -m64
as -o shabal64-darwin.o shabal64-darwin.s
shabal64-darwin.s:30:14: error: invalid character in input64 “ptr” field (8 bytes)
make: *** [shabal64-darwin.o] Error 1
-
Run these commands, they may throw a few errors, but run each one in sequence, then run make again. That should fix it. Each gcc is a separate command so run each one individually.
gcc -Wall -c -O2 -march=native -o mshabal_sse4.o mshabal_sse4.c
gcc -Wall -c -O2 -march=native -mavx2 -o mshabal256_avx2.o mshabal256_avx2.c
gcc -D OSX -O2 -Wall -D_FILE_OFFSET_BITS=64 -o plot plot.c shabal64.o mshabal_sse4.o mshabal256_avx2.o helper.o -lpthread -std=gnu99
gcc -D OSX -O2 -Wall -D_FILE_OFFSET_BITS=64 -o optimize optimize.c helper.o
gcc -D OSX -O2 -Wall -D_FILE_OFFSET_BITS=64 -DSOLO -o mine mine.c shabal64.o helper.o -lpthread
gcc -D OSX -O2 -Wall -D_FILE_OFFSET_BITS=64 -DURAY_POOL -o mine_pool_all mine.c shabal64.o helper.o -lpthread
gcc -D OSX -O2 -Wall -D_FILE_OFFSET_BITS=64 -DSHARE_POOL -o mine_pool_share mine.c shabal64.o helper.o -lpthread
-
@Xander52 still same error message :/
-
@blood What did the gcc commands output?
-
@Xander52 all errors
-
@Xander52 except last one, want me to run it again?
-
@blood OK, lets start fresh with a new fix. You seem to be running into a different issue, Delete the folder, and unzip a fresh copy. Open the file called shabal-darwin.s in a text editor, and find the line that says
64 'ptr' field (8 bytes)then change that to (replace single quotes with double quotes)
64 "ptr" field (8 bytes)Then try to make again.
-
@Xander52 same error
-
@blood Did you save the file?
-
@Xander52 yes
-
@blood Can you paste the line so I can make sure it looks ok?
-
@Xander52 --- Compiling for 64-bit arch ---
CFLAGS=-D OSX -D AMD64 -O2 -Wall -D_FILE_OFFSET_BITS=64 -m64
as -o shabal64-darwin.o shabal64-darwin.s
shabal64-darwin.s:30:14: error: invalid character in input64 “ptr” field (8 bytes)
make: *** [shabal64-darwin.o] Error 1
-
Can you copy my line instead of typing it, I think your text editor may have formatted it a bit oddly
-
it worked, it showed me this... --- Compiling for 64-bit arch ---
CFLAGS=-D OSX -D AMD64 -O2 -Wall -D_FILE_OFFSET_BITS=64 -m64
as -o shabal64-darwin.o shabal64-darwin.s
gcc -Wall -m64 -c -O2 -march=native -o mshabal_sse4.o mshabal_sse4.c
gcc -Wall -m64 -c -O2 -march=native -mavx2 -o mshabal256_avx2.o mshabal256_avx2.c
gcc -D OSX -D AMD64 -O2 -Wall -D_FILE_OFFSET_BITS=64 -m64 -c -o helper.o helper.c
gcc -D OSX -D AMD64 -O2 -Wall -D_FILE_OFFSET_BITS=64 -m64 -o plot plot.c shabal64-darwin.o mshabal_sse4.o mshabal256_avx2.o helper.o -lpthread -std=gnu99 -DAVX2
gcc -D OSX -D AMD64 -O2 -Wall -D_FILE_OFFSET_BITS=64 -m64 -o optimize optimize.c helper.o
gcc -D OSX -D AMD64 -O2 -Wall -D_FILE_OFFSET_BITS=64 -m64 -DSOLO -o mine mine.c shabal64-darwin.o helper.o -lpthread
gcc -D OSX -D AMD64 -O2 -Wall -D_FILE_OFFSET_BITS=64 -m64 -DURAY_POOL -o mine_pool_all mine.c shabal64-darwin.o helper.o -lpthread
gcc -D OSX -D AMD64 -O2 -Wall -D_FILE_OFFSET_BITS=64 -m64 -DSHARE_POOL -o mine_pool_share mine.c shabal64-darwin.o helper.o -lpthread
-
@blood Awesome!!! I think your text editor made one of the quotes a upside down one and that broke it a little bit. Move on to the plotting step now.
-
@Xander52 yea i don't have that key on my keyboard lol
-
@blood OK... You should be able to plot now with the plot command generator I showed you. Plot generation will take quite a while though
-
@Xander52 whats the how do i choose the hard drive to plot to?
-
@blood OK connect your drive and open terminal and type cd /Volumes and then type ls -l and find the name of your drive. (make sure you have a folder on that drive to plot into) and then as the plot path type /Volumes/drivename/plots (make sure to replace drivename with the name of your drive, and plots with the folder you want to use for plotting)