Comments (6)
When building https://github.com/supranational/blst with build.sh
I see the following compilation:
$ ./build.sh
+ cc -O -fno-builtin-memcpy -fPIC -Wall -Wextra -Werror -D__ADX__ -mno-avx -c ./src/server.c
+ cc -O -fno-builtin-memcpy -fPIC -Wall -Wextra -Werror -D__ADX__ -mno-avx -c ./build/assembly.S
+ cc -O -fno-builtin-memcpy -fPIC -Wall -Wextra -Werror -D__ADX__ -mno-avx -nostdlib -r assembly.o server.o -o blst.o
+ objcopy --localize-symbols=/tmp/localize.blst.533339 blst.o
+ ar rc libblst.a blst.o
-D__ADX__
is required for Mac OS X?
Sorry, this was the result in Linux.
from ocaml-bls12-381.
Which commit did you use for blst? For bls12-381-unix.1.0.0 we use the commit
095a8c53787d6c91b725152ebfbbf33acf05a931
from ocaml-bls12-381.
Also, which C compiler (+ version) do you use?
from ocaml-bls12-381.
I am sorry, I misused a Linux machine connected with ssh.
I used commit blst 98044ad6af47179ab4004ea0fbca5f2f5b63702f and ./build.sh
has failed with the same errors in the first post.
The version of cc
is:
$ cc --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
from ocaml-bls12-381.
from ocaml-bls12-381.
@camlspotter I would recommend you to update Xcode to use at least clang 11. Xcode 11 comes with clang 11 and Xcode 11 is supported from macOS Mojave 10.14.4. As Majove won't be supported soon (released in 2018 and Apple supports for around 3 years each MacOS version according to some Google links), I won't add support for Xcode 10 (coming with clang 10).
I added a GitHub action workflow to test for clang 11 and clang 12, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/108/ but couldn't get it work for clang 10.
The same MR fixes the build for clang 11, and I think it will also fix for clang 10. If you confirm, I would suggest you close this thread. A new release (bls12-381.1.0.1) will be done soon.
from ocaml-bls12-381.
Related Issues (3)
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 ocaml-bls12-381.