Comments (8)
@ishanSrt I got it to work on a MBP 2018:
Install GCC compiler (I use Homebrew): brew install gcc
cd ~/edax-reversi/src
mkdir ../bin
(this is important!)
Unzip eval.7z to ~/edax-reversi/bin
(such that ~/edax-reversi/bin/data/eval.dat
exists)
make build ARCH=x64-modern COMP=gcc OS=osx
Now you should see ~/edax-reversi/bin/mEdax
You might need to do chmod +x ~/edax-reversi/bin/mEdax
in order to be able to run it standalone.
from edax-reversi.
I finally compiled the version 4.4 for Mac OS X after installing a virtual machine on my computer. For maximum compatibility I targeted the old nehalem CPU (which supports popcount instruction) and Mac-OS X 10.10 64 bits or later.
from edax-reversi.
try make pgo-build OS=osx COMP=clang
make release was for me to compile for all platform from linux (unfortunately, the cross-compiler for apple osx is no more availabe in my linux distro).
from edax-reversi.
Hi! thanks for replying. I had already tried that earlier. Here's the log
building edax with pgo...
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make clean
rm -f pgopti* *.dyn all.gc* *~ *.o generate_flip generate_count_flip *.prof*
clang -std=c99 -pedantic -W -Wall -D_GNU_SOURCE=1 -Wno-invalid-source-encoding -O3 -flto -ffast-math -fomit-frame-pointer -DNDEBUG -fuse-ld=gold -m64 -march=native -DUSE_GAS_X64 -DPOPCOUNT -mmacosx-version-min=10.4 -mdynamic-no-pic -DHAS_CPU_64 -fprofile-instr-generate all.c -o ../bin/mEdax -lm -lpthread
clang: error: invalid linker name in argument '-fuse-ld=gold'
make: *** [pgo-build] Error 1
from edax-reversi.
Adding to the previous comment:
In order to get the pgo-build
to work, you need to make sure there's no mEdax
in ~/edax-reversi/bin
, and you need to move the problem
folder from ~/edax-reversi
to ~/edax-reversi/bin
.
from edax-reversi.
@abulmo This is probably not high on your priorities list, but in order to get rid of the clang: error: invalid linker name in argument '-fuse-ld=gold'
, I suggest switching to the LLVM linker. Reasoning can be found here: https://bcain-llvm.readthedocs.io/projects/lld/en/latest/
from edax-reversi.
I project to install OS X on a virtual box, so that I can provide and test binaries by myself and follow the evolution of the OS, compilers and other tools. The gold linker is indeed only available under Linux, and should not have been seen on the Mac compile. The lld linker might be a good replacement, but it is a "recent" addition to the llvm suite, at least compared to Edax age, so I did not used it at the time I produce Edax binaries.
Be patient as Edax is low now in my priorities, and I have too little time to spend on it.
from edax-reversi.
We can build edax for Mac,Windows,Linux with GitHub virtual machine.
If we create the job, anyone can obtain every executable assets.
Actually, I did.
If you agree this plan, I will create PullRequest.
from edax-reversi.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edax-reversi.