Comments (8)
The installation is done by CMake and it works for both MacOS and some Linux distributions such as Ubuntu. These are the steps as described in README.md
.
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=_INSTALL_DIR_ ../
cmake --build . --target install
Let me know if you have any problem. I'm happy to help.
from crab.
Hi I was trying to install apron on Mac OS with steps in README.md
I got
Command failed: 2
'make' 'CC=/Library/Developer/CommandLineTools/usr/bin/cc' 'CXX=/Library/Developer/CommandLineTools/usr/bin/c++' 'IS_VECTOR=-DVECTOR' 'APRON_PREFIX=[workspace]/Documents/workspace/crab/build/run/apron' 'GMP_PREFIX=/usr/local' 'MPFR_PREFIX=/usr/local'
See also
[workspace]/Documents/workspace/crab/build/apron-prefix/src/apron-stamp/apron-build-*.log
make[3]: *** [apron-prefix/src/apron-stamp/apron-build] Error 1
make[2]: *** [CMakeFiles/apron.dir/all] Error 2
make[1]: *** [CMakeFiles/apron.dir/rule] Error 2
when I run
cmake --build . --target apron && cmake
I assume this is something wrong with the cmake, but
cmake --build . --target ldd && cmake ..
works well.
(Not sure whether this problem is related to crab. I thought it might be helpful to post it here.
from crab.
I tried
xcode-select --install
&& sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/* /usr/local/include/
both do not work.
from crab.
Regarding apron, can you share /Documents/workspace/crab/build/apron-prefix/src/apron-stamp/apron-build-*.log
?
Regarding the last comment, this is for making sure that C header files can be found. This has nothing to do with Crab. It will be needed if you want to compile C/C++ code on your mac.
from crab.
Sure.
The log in /Documents/workspace/crab/build/apron-prefix/src/apron-stamp/apron-build-err.log
is,
Undefined symbols for architecture x86_64: "_ap_policy_manager_alloc", referenced from: _box_policy_manager_alloc in box_policyMPQ.o "_itv_meet_ap_tcons0_array_MPQ", referenced from: _box_meet_tcons_array in box_meetjoinMPQ.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[5]: *** [libboxMPQ.so] Error 1 make[4]: *** [c] Error 2
from crab.
A update.
After reinstalled brew and cmake.
The same error occurs. But the log varies. This time, the log in /Documents/workspace/crab/build/apron-prefix/src/apron-stamp/apron-build-err.log is,
'
1 In file included from itv.c:5:
2 ./itv.h:8:10: fatal error: 'stdio.h' file not found
3 #include <stdio.h>
4 ^~~~~~~~~
5 1 error generated.
6 make[5]: *** [itvMPQ.o] Error 1
7 make[4]: *** [c] Error 2
'
from crab.
The C header files cannot be found. It's a OS problem.
Which Mac OS version are you using?
If you have mojave you can also try:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
from crab.
Hi,
Thanks for your help.
Yes, it is a linking problem in Mac OSX. I am using Catalina, OS X 10.15.
After searching around, one solution works well.
from crab.
Related Issues (20)
- Make generic weights of adaptative sparse graph
- More precise bitwise AND HOT 1
- Valgrind warnings HOT 1
- none-optional dereference on array-expansion domain with elina-pk HOT 3
- Elina does not compile on mac: `'stdlib.h' file not found` HOT 4
- Enhance top-down inter-procedural analysis HOT 1
- CMake Options
- Reaching Definitions Analysis HOT 5
- Question: "range of intervals" HOT 14
- How to correctly represent "else" when manually working with `powerset_domain` HOT 9
- Compiler warning with `dev` HOT 1
- "compress" `powerset_domain` domain after projection HOT 4
- General question on "backward_assign_operations" HOT 1
- Question regarding the CFG input encoding for the analysis HOT 7
- Create tree expressions and adapt abstract domains to use them
- Question regarding "cyclic" encoding and propagation of analysis results HOT 9
- What is the difference between the wrapped_interval implemented in crab and the one implemented in TOPLAS15 paper? HOT 2
- Should we add the bitwise complement (~) operation in Crab? HOT 2
- Bug in flat_boolean_domain HOT 1
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 crab.