← Back to team overview

yade-dev team mailing list archive

scons and linkage rules

 

I assume you mean CLOCK_MONOTONIC -- it is clock source that ensures
that it is, well, monotonic (i.e. resistent to leap seconds, changing hw
clock etc).

OK

I don't know what works on leopard, try man clock_gettime.

STFW gives
http://www.wand.net.nz/~smr26/wordpress/2009/01/19/monotonic-time- in-mac-os-x/

In the worst case, you could just return 0 and warn, it is not critical
part of yade, but used for profiling (timing.stats() &comp, see
http://yade.wikia.com/wiki/ Speed_profiling_using_TimingInfo_and_TimingDeltas_classes) which would give bogus results at apple. Oh well. Who is interested in those overpriced machines for running yade seriously?

V.

Thank you Vaclav. I will return 0 and warn (I just want to compile for the moment).
I don't answer your last question to avoid unproductive discussion...

Now I've got other problem. I think it is due to scons.
It would be nice if you could give me some indications.
Here is the log:

scons: Reading SConscript files ...
@@@ Using profile default (scons.profile-default) @@@
Yade version is `vr', installed files will be suffixed with `-vr'.
All intermediary files will be in `/Users/richefeu/Documents/yade- local/build-vr'.
Checking whether c++ compiler "g++" works...(cached) yes
Checking for pthread_exit(NULL) in C library pthread... (cached) yes
Checking for boost::system::error_code(); /* non-essential */ in C++ library boost_system-mt... (cached) yes Checking for boost::thread::thread() in C++ library boost_thread- mt... (cached) yes Checking for boost::posix_time::time_duration::time_duration() in C++ library boost_date_time-mt... (cached) yes Checking for boost::filesystem::path() in C++ library boost_filesystem-mt... (cached) yes Checking for boost::iostreams::file_sink("") in C++ library boost_iostreams-mt... (cached) yes Checking for boost::regex("") in C++ library boost_regex-mt... (cached) yes Checking for try{} catch (const boost::archive::archive_exception& e) {} in C++ library boost_serialization-mt... (cached) yes Checking for boost::program_options::options_description o in C++ library boost_program_options-mt... (cached) yes
Checking for C++ header file boost/foreach.hpp... (cached) yes
Checking for sqlite3_close(0L) in C++ library sqlite3... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
> /Users/richefeu/Documents/yade-local/build-vr/core/core.cpp
g++ -o /Users/richefeu/Documents/yade-local/build-vr/extra/ PeriodicInsertionSortCollider.os -c -pipe -Wall -I/usr/local/include/ boost-1_39 -L/usr/local/bin -ggdb2 -fopenmp -fPIC -DMINIWM3 - DYADE_OPENMP -DSUFFIX=\"-vr\" -DPREFIX=\"/Users/richefeu/Documents/ YADE\" -DYADE_DEBUG -DYADE_OPENMP -DYADE_CAST=dynamic_cast - DYADE_PTR_CAST=dynamic_pointer_cast -I/Users/richefeu/Documents/yade- local/build-vr/include/yade-vr -Iinclude/yade-vr -I/Users/richefeu/ Documents/yade-local/build-vr/include/yade-vr/yade/lib-miniWm3 - Iinclude/yade-vr/yade/lib-miniWm3 extra/ PeriodicInsertionSortCollider.cpp
> /Users/richefeu/Documents/yade-local/build-vr/lib/miniWm3.cpp
g++ -o /Users/richefeu/Documents/yade-local/build-vr/pkg/dem/meta/ Shop.os -c -pipe -Wall -I/usr/local/include/boost-1_39 -L/usr/local/ bin -ggdb2 -fopenmp -fPIC -DMINIWM3 -DYADE_OPENMP -DSUFFIX=\"-vr\" - DPREFIX=\"/Users/richefeu/Documents/YADE\" -DYADE_DEBUG -DYADE_OPENMP -DYADE_CAST=dynamic_cast -DYADE_PTR_CAST=dynamic_pointer_cast -I/ Users/richefeu/Documents/yade-local/build-vr/include/yade-vr - Iinclude/yade-vr -I/Users/richefeu/Documents/yade-local/build-vr/ include/yade-vr/yade/lib-miniWm3 -Iinclude/yade-vr/yade/lib-miniWm3 pkg/dem/meta/Shop.cpp g++ -o /Users/richefeu/Documents/yade-local/build-vr/lib/miniWm3.os - c -pipe -Wall -I/usr/local/include/boost-1_39 -L/usr/local/bin -ggdb2 -fopenmp -O3 -g0 -w -fPIC -DMINIWM3 -DYADE_OPENMP -DSUFFIX=\"-vr\" - DPREFIX=\"/Users/richefeu/Documents/YADE\" -DYADE_DEBUG -DYADE_OPENMP -DYADE_CAST=dynamic_cast -DYADE_PTR_CAST=dynamic_pointer_cast -I/ Users/richefeu/Documents/yade-local/build-vr/include/yade-vr - Iinclude/yade-vr -I/Users/richefeu/Documents/yade-local/build-vr/ include/yade-vr/yade/lib-miniWm3 -Iinclude/yade-vr/yade/lib-miniWm3 / Users/richefeu/Documents/yade-local/build-vr/lib/miniWm3.cpp g++ -o /Users/richefeu/Documents/yade-local/build-vr/core/core.o -c - pipe -Wall -I/usr/local/include/boost-1_39 -L/usr/local/bin -ggdb2 - fopenmp -DMINIWM3 -DYADE_OPENMP -DSUFFIX=\"-vr\" -DPREFIX=\"/Users/ richefeu/Documents/YADE\" -DYADE_DEBUG -DYADE_OPENMP - DYADE_CAST=dynamic_cast -DYADE_PTR_CAST=dynamic_pointer_cast - DYADE_VERSION=\"vr\" -I/Users/richefeu/Documents/yade-local/build-vr/ include/yade-vr -Iinclude/yade-vr -I/Users/richefeu/Documents/yade- local/build-vr/include/yade-vr/yade/lib-miniWm3 -Iinclude/yade-vr/ yade/lib-miniWm3 /Users/richefeu/Documents/yade-local/build-vr/core/ core.cpp g++ -o /Users/richefeu/Documents/yade-local/build-vr/lib/ libminiWm3.dylib -rdynamic -z origin -dynamiclib -rdynamic /Users/ richefeu/Documents/yade-local/build-vr/lib/miniWm3.os -L/Users/ richefeu/Documents/YADE/lib/yade-vr/extra -L/Users/richefeu/Documents/ YADE/lib/yade-vr/gui -L/Users/richefeu/Documents/YADE/lib/yade-vr/lib -L/Users/richefeu/Documents/YADE/lib/yade-vr/py -L/Users/richefeu/ Documents/YADE/lib/yade-vr/plugins -lpthread -lboost_system-mt - lboost_thread-mt -lboost_date_time-mt -lboost_filesystem-mt - lboost_iostreams-mt -lboost_regex-mt -lboost_serialization-mt - lboost_program_options-mt -lsqlite3 -lgomp
i686-apple-darwin9-g++-4.2.1: origin: No such file or directory
scons: *** [/Users/richefeu/Documents/yade-local/build-vr/lib/ libminiWm3.dylib] Error 1
scons: building terminated because of errors.



It seems to me that scons make some confusion with lib*.dylib and *.os (that replace lib*.so on 'standard linux OS'). Maybe the confusion comes from the following line at the end of lib/ SConscript?

LIBS=filter(lambda ...)

any ideas?





Follow ups

References