Comments (6)
Hi Vincent,
Clang hasn’t been tested with chrono, I usually use OSX home-brew and "brew install gcc”
The gcc compilers work on OSX, if clang is a requirement please let me know and I can work on fixing the problems.
Thanks,
Hammad
On Aug 26, 2015, at 6:18 PM, Vincent Acary [email protected] wrote:
Hi,
Chrono tag 2.0.0 failed to build on MacOsX Yosemite 10.10.5 with Clang.
ohana:chrono acary$ /usr/bin/c++ --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
ohana:chrono acary$ make
[ 0%] Building CXX object CMakeFiles/ChronoEngine.dir/collision/ChCModelBullet.cpp.o
In file included from /Users/acary/Softs/chrono/src/collision/ChCModelBullet.cpp:25:
In file included from /Users/acary/Softs/chrono/src/physics/ChSystem.h:50:
In file included from /Users/acary/Softs/chrono/src/physics/ChLinksAll.h:38:
In file included from /Users/acary/Softs/chrono/src/physics/ChLinkPneumaticActuator.h:34:
In file included from /Users/acary/Softs/chrono/src/pneumatica/assepneumatico.h:20:
In file included from /Users/acary/Softs/chrono/src/pneumatica/sis_attuatore_3_2.h:22:
In file included from /Users/acary/Softs/chrono/src/pneumatica/pistone_3_2.h:22:
In file included from /Users/acary/Softs/chrono/src/pneumatica/pistone.h:23:
/Users/acary/Softs/chrono/src/pneumatica/volume.h:42:40: warning: expression result unused [-Wunused-value]
volume() {rho=1.225; p0=101325, n = 1,4;g=p=v=v1=0;};
^
In file included from /Users/acary/Softs/chrono/src/collision/ChCModelBullet.cpp:32:
In file included from /Users/acary/Softs/chrono/src/collision/ChCConvexDecomposition.h:32:
/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD/hacdHACD.h:309:53: error: friend declaration specifying a default argument must be a definition
friend HACD * const CreateHACD(HeapManager * heapManager = 0);
^
/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD/hacdHACD.h:312:25: error: friend declaration specifying a default argument must be the only declaration
inline HACD * const CreateHACD(HeapManager * heapManager)
^
/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD/hacdHACD.h:309:53: note: previous declaration is here
friend HACD * const CreateHACD(HeapManager * heapManager = 0);
^
/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD/hacdHACD.h:314:20: error: calling a private constructor of class 'HACD::HACD'
return new HACD(heapManager);
^
/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD/hacdHACD.h:226:14: note: declared private here
HACD(HeapManager * heapManager = 0);
^
1 warning and 3 errors generated.
make[2]: *** [CMakeFiles/ChronoEngine.dir/collision/ChCModelBullet.cpp.o] Error 1
make[1]: *** [CMakeFiles/ChronoEngine.dir/all] Error 2
make: *** [all] Error 2—
Reply to this email directly or view it on GitHub #65.
from chrono.
Hi Hammad,
Ok, I'll switch to gcc for a while and try to fix the issue with clang later.
Thanks,
Vincent.
from chrono.
Try building the latest from the develop branch with Clang. The code in tag 2.0.0 is almost two years old at this point.
from chrono.
Thanks for the advice.
Unfortunately, I got the same error. I will switch to gcc
ohana:chrono acary$ make VERBOSE=1
"/Applications/CMake 2.8-11.app/Contents/bin/cmake" -H/Users/acary/Softs/chrono/src -B/scratch/Vincent/Build/chrono --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-11.app/Contents/bin/cmake" -E cmake_progress_start /scratch/Vincent/Build/chrono/CMakeFiles /scratch/Vincent/Build/chrono/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/ChronoEngine.dir/build.make CMakeFiles/ChronoEngine.dir/depend
cd /scratch/Vincent/Build/chrono && "/Applications/CMake 2.8-11.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/acary/Softs/chrono/src /Users/acary/Softs/chrono/src /scratch/Vincent/Build/chrono /scratch/Vincent/Build/chrono /scratch/Vincent/Build/chrono/CMakeFiles/ChronoEngine.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/ChronoEngine.dir/build.make CMakeFiles/ChronoEngine.dir/build
"/Applications/CMake 2.8-11.app/Contents/bin/cmake" -E cmake_progress_report /scratch/Vincent/Build/chrono/CMakeFiles
[ 0%] Building CXX object CMakeFiles/ChronoEngine.dir/collision/ChCModelBullet.cpp.o
/usr/bin/c++ -DBP_USE_FIXEDPOINT_INT_32 -DCH_API_COMPILE -DChronoEngine_EXPORTS -fPIC -I/Users/acary/Softs/chrono/src -I/Users/acary/Softs/chrono/src/collision/bullet -I/Users/acary/Softs/chrono/src/collision/gimpact -I/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD -DAPPLE -D__APPLE__ -fpermissive -o CMakeFiles/ChronoEngine.dir/collision/ChCModelBullet.cpp.o -c /Users/acary/Softs/chrono/src/collision/ChCModelBullet.cpp
In file included from /Users/acary/Softs/chrono/src/collision/ChCModelBullet.cpp:25:
In file included from /Users/acary/Softs/chrono/src/physics/ChSystem.h:50:
In file included from /Users/acary/Softs/chrono/src/physics/ChLinksAll.h:38:
In file included from /Users/acary/Softs/chrono/src/physics/ChLinkPneumaticActuator.h:34:
In file included from /Users/acary/Softs/chrono/src/pneumatica/assepneumatico.h:20:
In file included from /Users/acary/Softs/chrono/src/pneumatica/sis_attuatore_3_2.h:22:
In file included from /Users/acary/Softs/chrono/src/pneumatica/pistone_3_2.h:22:
In file included from /Users/acary/Softs/chrono/src/pneumatica/pistone.h:23:
/Users/acary/Softs/chrono/src/pneumatica/volume.h:42:40: warning: expression result unused [-Wunused-value]
volume() {rho=1.225; p0=101325, n = 1,4;g=p=v=v1=0;};
^
In file included from /Users/acary/Softs/chrono/src/collision/ChCModelBullet.cpp:32:
In file included from /Users/acary/Softs/chrono/src/collision/ChCConvexDecomposition.h:32:
/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD/hacdHACD.h:309:53: error: friend declaration
specifying a default argument must be a definition
friend HACD * const CreateHACD(HeapManager * heapManager = 0);
^
/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD/hacdHACD.h:312:25: error: friend declaration
specifying a default argument must be the only declaration
inline HACD * const CreateHACD(HeapManager * heapManager)
^
/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD/hacdHACD.h:309:53: note: previous declaration
is here
friend HACD * const CreateHACD(HeapManager * heapManager = 0);
^
/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD/hacdHACD.h:314:20: error: calling a private
constructor of class 'HACD::HACD'
return new HACD(heapManager);
^
/Users/acary/Softs/chrono/src/collision/convexdecomposition/HACD/hacdHACD.h:226:14: note: declared private
here
...HACD(HeapManager * heapManager = 0);
^
1 warning and 3 errors generated.
make[2]: *** [CMakeFiles/ChronoEngine.dir/collision/ChCModelBullet.cpp.o] Error 1
make[1]: *** [CMakeFiles/ChronoEngine.dir/all] Error 2
make: *** [all] Error 2
from chrono.
It still looks like you're on an out of date version of Chrono: some of the compiler options in there were removed/changed about a year ago, and the sources have been reorganized in the last couple of weeks.
git checkout develop && git pull
and check the date of the most recent commit via git log -1
(it should be from today or yesterday).
It builds fine for me with Clang on 10.10.5, no GCC.
from chrono.
This is fixed. Thank you very much and sorry for the noise.
I was on the master branch...
Cheers
from chrono.
Related Issues (20)
- The ARM64 development board performs a make check error HOT 1
- terrain HOT 1
- FEA mesh and rigid body contacts, there is a difference between the theoretical solution and the results. HOT 1
- Includes don't work correctly when building my project HOT 1
- AttributeError:'ChSystemNSC' object has no attribute 'SetVisualSystem' HOT 14
- ModuleNotFoundError: No module named 'pychrono' on M1 Mac HOT 5
- ImportError: cannot import name '_core' from partially initialized module 'pychrono' (most likely due to a circular import)
- ChronoEngine Installation Issue on Ubuntu 23.10 with CMake 3.27.4: CHRONO_MPI_FOUND Variable Not Recognized in ChronoConfig.cmake HOT 6
- Chrono::Irrlicht and Chrono::Sensor sampling textures in opposite directions
- unable to use gpu HOT 1
- Certain fsi demos are not compatible with latest version of Chrono HOT 2
- PyChrono ChFunction example is out of date HOT 1
- How to use project chrono in QT? HOT 1
- How to simulate soil environment HOT 1
- How to add object after Render HOT 1
- Bug in FindThrust.cmake that breaks Chrono Multicore cmake build HOT 3
- Dockerfile for uwsbel/packages:ubuntu HOT 2
- demo_VEH_WheeledJSON.cpp visual does not render in low frequency HOT 1
- Bug? OpenGL does not work in combination with direct solvers HOT 4
- Viper
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 chrono.