-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Readme.md about compiling #2724
Conversation
Reparagraph, add an example how to compile on Unix-like systems
It would be better to use |
I use |
yes, updating help would be good. Also, move |
I have just tried to build with all I may solve/ask help to solve that problem later. However, it looks like that kind of building has a higher chance of failing for newcomers. Thus I suggest keeping the current first example ( |
OK, interesting, let's keep in the form you have right now. Maybe file an issue for that, together with info on the compiler used, and the output of the compilation. I'm guessing this is specific to mac. Edit: or the very old gcc you have on the system. |
In my computer gcc is actually clang and it is Apple clang version 11.0.3 (clang-1103.0.32.62) - quite up to date. I guess it is not the problem of too old compilers but too new ones ;) |
so also the
with the following change to the makefile (providing the specific version of llvm-profdata, which might be an ubuntu clang installation issue): diff --git a/src/Makefile b/src/Makefile
index 016aafec1..c42edcf4d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -510,7 +510,7 @@ clang-profile-make:
all
clang-profile-use:
- llvm-profdata merge -output=stockfish.profdata *.profraw
+ llvm-profdata-10 merge -output=stockfish.profdata *.profraw
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) \
EXTRACXXFLAGS='-fprofile-instr-use=stockfish.profdata' \
EXTRALDFLAGS='-fprofile-use ' \
|
see also #2053 |
My computer links g++ to clang but doesn't know g++-4.8. Your command (after changing Makefile as your suggestion)
|
yes, you'll need to figure out how to get the |
Make an alias called “llvm-profdata” have it set to the actual llvm-profdata exe - name will vary by version name - add the path to the folder where the exe is located on your bash profile. My guess is that you are running Catalina OS upgraded on a Mac that was running Mojave. |
Thanks! |
Reparagraph, add an example how to compile on Unix-like systems closes official-stockfish#2724 No functional change
Reparagraph, add an example how to compile on Unix-like systems