Re: [Yade-dev] Make ccache working
Tu peux ajouter la sortie de cmake a ton message? Pas dispo ce matin. B Le jeu. 28 mars. 2019 00:58, François a écrit : > Thanks for your help. I'm on kubuntu 18.04 (cmake 3.10.2), and maybe our > versions mismatch is at the origin of the issue (I finally found a > solution, see the bottom of this message). > By "installing" ccache I meant in fact "enable/use" ccache, I also > installed it with "apt install ccache". Of course, I always start from an > empty build dir. > > Now I restarted everything with a clean $PATH, reverting my changes. Using > export CC and CXX doesn't work: > >> export CC="ccache gcc" >> export CXX="ccache g++" >> cmake -DCMAKE_INSTALL_PREFIX=../install ../trunk >> [...] >> *ccache: error: Could not find compiler "g++" in PATH* >> > Somebody had the same issue here: > https://github.com/bazelbuild/bazel/issues/3642 so I tried unsuccessfully > : > >> rm -r * >> export CC="ccache /usr/bin/gcc" >> export CXX="ccache /usr/bin/g++" >> cmake -DCMAKE_INSTALL_PREFIX=../install ../trunk >> [...] >> */usr/bin/ccache: invalid option -- 'd'* >> > I didn't found exactly why, but somewhere the "-d" option is passed > directly to ccache (instead of gcc/g++ I assume), but not in your 16.04 > system. > > So I tried two methods to use $PATH instead of $CXX and $CC: > - the one in ccache documentation, with symlinks : > https://ccache.samba.org/manual/latest.html#_run_modes > - the one we can find everywhere with export PATH="/usr/lib/ccache:$PATH" > But the result is finally the same as above. > > *OUTCOME*: > I feel a bit confused as I spent some time to make it work to finally see > that cmake handles ccache since version 3.4: > https://cmake.org/cmake/help/v3.6/release/3.4.html#variables > Without environment variables nor symlinks, the solution basically is to > run cmake with "*-DCMAKE_CXX_COMPILER_LAUNCHER=ccache > -DCMAKE_C_COMPILER_LAUNCHER=ccache*" > Now ccache is activated, after a successful build I have 720.9 MB in > cache, yade full build in 30s yeepee :-D > This solution should also work for ubuntu 16.04 as it carries cmake 3.5, > but not for ubuntu 14.04. > > NB: Interestingly, compiling [yade with python 3] for the first time with > the full ccache of [yade with python 2.7] took about 5 mins against about > 30min for a full uncached build. > > Cheers, > François > > > > > Le mer. 27 mars 2019 à 20:40, Bruno Chareyre < > bruno.chare...@3sr-grenoble.fr> a écrit : > >> I checked your ubuntu 12.04 page again. That's actually about hiding >> ccache behind normal gcc invocation, and I kind-of dislike the idea. >> Explicit call to «ccache g++» sounds cleaner to me and it is compatible >> with mpicxx (for ubuntu 16.04 at least). >> Better undo what you have done until now in terms of ccache hacks and >> stick to yade doc's method if you are unsure. >> >> «ccache -s» also reports unsupported options on my ubuntu 16.04 but a >> full rebuild takes 40sec regardless. >> >> Bruno >> >> Le mer. 27 mars. 2019 19:46, Bruno Chareyre < >> bruno.chare...@3sr-grenoble.fr> a écrit : >> >>> Also, did you start from fresh build after exporting CXX? >>> I mean: >>> rm -rf ./* >>> export ... >>> cmake [options] >>> make -jN >>> >>> Bruno >>> >>> Le mer. 27 mars. 2019 18:33, Bruno Chareyre < >>> bruno.chare...@3sr-grenoble.fr> a écrit : >>> Hi François, Please remember to give your linux version. On Wed, 27 Mar 2019 at 17:44, François wrote: > export CXX=ccache g++ > >> bash: export: « g++ » : identifiant non valable >> > Using > >> export CXX='ccache g++' > > works > Thanks for pointing that out. I forgot the " indeed, I'll fix it. It would be useful to turn your bash to english for pasting errors here (also much more efficient when searching online solutions). > but it will result in cmake fail while checking cc compiler. > Finally, I "installed" ccache thanks to the first answer here: > https://askubuntu.com/questions/470545/how-do-i-set-up-ccache and it > *kinda* works. > Arguably, using ccache is assuming that it is installed. ;) Not sure why you needed that ubuntu 12.04 forum, as far as I remember I only had to "apt-get install ccache". > >- the second one, once the install is ok and cmake uses ccache, is >that I only get "unsupported compiler option" when I try *ccache >-s* after a full yade compilation. It results in a almost-empty >cache: > > Does compilation work? Could you send cmake output, and some sample of "make VERBOSE=1"? I have this: *[ 39%] Building CXX object CMakeFiles/yade.dir/pkg/dem/Ig2_Box_Sphere_ScGeom.cpp.o/usr/bin/ccache g++ -DBOOST_MATH_DISABLE_FLOAT128=1 -DNDE...* Cheers Bruno ___ >> Mailing list: https://launchpad.net/~yade-dev >> Post to :
Re: [Yade-dev] Make ccache working
I checked your ubuntu 12.04 page again. That's actually about hiding ccache behind normal gcc invocation, and I kind-of dislike the idea. Explicit call to «ccache g++» sounds cleaner to me and it is compatible with mpicxx (for ubuntu 16.04 at least). Better undo what you have done until now in terms of ccache hacks and stick to yade doc's method if you are unsure. «ccache -s» also reports unsupported options on my ubuntu 16.04 but a full rebuild takes 40sec regardless. Bruno Le mer. 27 mars. 2019 19:46, Bruno Chareyre a écrit : > Also, did you start from fresh build after exporting CXX? > I mean: > rm -rf ./* > export ... > cmake [options] > make -jN > > Bruno > > Le mer. 27 mars. 2019 18:33, Bruno Chareyre < > bruno.chare...@3sr-grenoble.fr> a écrit : > >> Hi François, >> >> Please remember to give your linux version. >> >> On Wed, 27 Mar 2019 at 17:44, François wrote: >> >>> export CXX=ccache g++ >>> bash: export: « g++ » : identifiant non valable >>> Using >>> export CXX='ccache g++' >>> >>> works >>> >> >> Thanks for pointing that out. I forgot the " indeed, I'll fix it. >> It would be useful to turn your bash to english for pasting errors here >> (also much more efficient when searching online solutions). >> >> >> >>> but it will result in cmake fail while checking cc compiler. >>> Finally, I "installed" ccache thanks to the first answer here: >>> https://askubuntu.com/questions/470545/how-do-i-set-up-ccache and it >>> *kinda* works. >>> >> >> Arguably, using ccache is assuming that it is installed. ;) >> Not sure why you needed that ubuntu 12.04 forum, as far as I remember I >> only had to "apt-get install ccache". >> >> >>> >>>- the second one, once the install is ok and cmake uses ccache, is >>>that I only get "unsupported compiler option" when I try *ccache -s* >>>after a full yade compilation. It results in a almost-empty cache: >>> >>> >> Does compilation work? >> Could you send cmake output, and some sample of "make VERBOSE=1"? >> >> I have this: >> >> *[ 39%] Building CXX object >> CMakeFiles/yade.dir/pkg/dem/Ig2_Box_Sphere_ScGeom.cpp.o/usr/bin/ccache >> g++ -DBOOST_MATH_DISABLE_FLOAT128=1 -DNDE...* >> >> Cheers >> >> Bruno >> >> ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
Re: [Yade-dev] Make ccache working
Also, did you start from fresh build after exporting CXX? I mean: rm -rf ./* export ... cmake [options] make -jN Bruno Le mer. 27 mars. 2019 18:33, Bruno Chareyre a écrit : > Hi François, > > Please remember to give your linux version. > > On Wed, 27 Mar 2019 at 17:44, François wrote: > >> export CXX=ccache g++ >> >>> bash: export: « g++ » : identifiant non valable >>> >> Using >> >>> export CXX='ccache g++' >> >> works >> > > Thanks for pointing that out. I forgot the " indeed, I'll fix it. > It would be useful to turn your bash to english for pasting errors here > (also much more efficient when searching online solutions). > > > >> but it will result in cmake fail while checking cc compiler. >> Finally, I "installed" ccache thanks to the first answer here: >> https://askubuntu.com/questions/470545/how-do-i-set-up-ccache and it >> *kinda* works. >> > > Arguably, using ccache is assuming that it is installed. ;) > Not sure why you needed that ubuntu 12.04 forum, as far as I remember I > only had to "apt-get install ccache". > > >> >>- the second one, once the install is ok and cmake uses ccache, is >>that I only get "unsupported compiler option" when I try *ccache -s* >>after a full yade compilation. It results in a almost-empty cache: >> >> > Does compilation work? > Could you send cmake output, and some sample of "make VERBOSE=1"? > > I have this: > > *[ 39%] Building CXX object > CMakeFiles/yade.dir/pkg/dem/Ig2_Box_Sphere_ScGeom.cpp.o/usr/bin/ccache > g++ -DBOOST_MATH_DISABLE_FLOAT128=1 -DNDE...* > > Cheers > > Bruno > > ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
Re: [Yade-dev] Make ccache working
Hi François, Please remember to give your linux version. On Wed, 27 Mar 2019 at 17:44, François wrote: > export CXX=ccache g++ > >> bash: export: « g++ » : identifiant non valable >> > Using > >> export CXX='ccache g++' > > works > Thanks for pointing that out. I forgot the " indeed, I'll fix it. It would be useful to turn your bash to english for pasting errors here (also much more efficient when searching online solutions). > but it will result in cmake fail while checking cc compiler. > Finally, I "installed" ccache thanks to the first answer here: > https://askubuntu.com/questions/470545/how-do-i-set-up-ccache and it > *kinda* works. > Arguably, using ccache is assuming that it is installed. ;) Not sure why you needed that ubuntu 12.04 forum, as far as I remember I only had to "apt-get install ccache". > >- the second one, once the install is ok and cmake uses ccache, is >that I only get "unsupported compiler option" when I try *ccache -s* >after a full yade compilation. It results in a almost-empty cache: > > Does compilation work? Could you send cmake output, and some sample of "make VERBOSE=1"? I have this: *[ 39%] Building CXX object CMakeFiles/yade.dir/pkg/dem/Ig2_Box_Sphere_ScGeom.cpp.o/usr/bin/ccache g++ -DBOOST_MATH_DISABLE_FLOAT128=1 -DNDE...* Cheers Bruno ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
[Yade-dev] Make ccache working
Hi all, I'm trying to use ccache but I have two issues. - the first one is the "installation" with the "export" command that doesn"t work: export CXX=ccache g++ > bash: export: « g++ » : identifiant non valable > Using > export CXX='ccache g++' works but it will result in cmake fail while checking cc compiler. Finally, I "installed" ccache thanks to the first answer here: https://askubuntu.com/questions/470545/how-do-i-set-up-ccache and it *kinda* works. - the second one, once the install is ok and cmake uses ccache, is that I only get "unsupported compiler option" when I try *ccache -s* after a full yade compilation. It results in a almost-empty cache: *cmake:* -- Check for working C compiler: /usr/lib/ccache/cc > -- Check for working C compiler: /usr/lib/ccache/cc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Detecting C compile features > -- Detecting C compile features - done > -- Check for working CXX compiler: /usr/lib/ccache/c++ > -- Check for working CXX compiler: /usr/lib/ccache/c++ -- works > *ccache -s:* > cache directory /home/francois/.ccache > primary config /home/francois/.ccache/ccache.conf > secondary config (readonly)/etc/ccache.conf > stats zero time Wed Mar 27 16:25:15 2019 > cache hit (direct) 1 > cache hit (preprocessed) 0 > cache miss19 > cache hit rate 5.00 % > called for link 34 > called for preprocessing 12 > preprocessor error 1 > unsupported compiler option *195* > no input file 2 > cleanups performed 0 > files in cache40 > cache size 163.8 kB > Any idea ? François ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
Re: [Yade-dev] Some update on futur steps
Hi, For people interested in helping for python 3, the branch is here: https://gitlab.com/yade-dev/trunk/tree/python-3 Look at the readme for infos about dev. Cheers, François Le mar. 26 mars 2019 à 17:38, Bruno Chareyre a écrit : > Hi there, > This is a quick update on multiple things. > > 1. François Kneib just initiated a "python-3" branch and he will be > working on python3 migration, as the name suggests. > > 2. I just migrated the yade-mpi repository to a new gitlab branch ("mpi"). > This is still work in progress, but hopefully it will reach a more final > stage in a few months (also with the help of François). We have a > nearly-working framework (it's actually working in a sense but some > interactions data is still missing in the data exchanges and one particular > step is inefficient and must be removed). We got encouraging results from > benchmarks on Gricad's HPC farm, and even an award in a national "HPC > Hackaton" [1]. > > 3. the server in 3SR hosting yade-dem.org (doc, wiki, packages and > publications), will be migrated to a new hardware. It should resolve the > frequent wiki-downs, which were simply due to a full partition after > excessive accumulation of logs by the buildbot. Buildbot has been turned > off, by the way, so even in the short term wiki should be safer than > before. > > Cheers > > Bruno > > [1] check first news here: http://geomec.net/newsletter/?p=432 > > > > > -- > -- > ___ > Bruno Chareyre > Associate Professor > ENSE³ - Grenoble INP > Lab. 3SR > BP 53 > 38041 Grenoble cedex 9 > Tél : +33 4 56 52 86 21 > Fax : +33 4 76 82 70 43 > > > Email too brief? > Here's why! http://emailcharter.org > ___ > Mailing list: https://launchpad.net/~yade-dev > Post to : yade-dev@lists.launchpad.net > Unsubscribe : https://launchpad.net/~yade-dev > More help : https://help.launchpad.net/ListHelp > ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp