9.1-PRERELEASE #2 r242867: When will buildworld + clang + ccache be functional? I think I read somewhere that buildworld + clang - ccache was working fine now. Any info on date ccache will work with clang and when to try? Also, clang users - do you see any speed advantage for kernel / world / ports built with clang? Thanks. -- View this message in context: http://freebsd.1045724.n5.nabble.com/Latest-for-buildworld-clang-ccache-tp5763430.html Sent from the freebsd-stable mailing list archive at Nabble.com.
23.11.2012 10:59, Beeblebrox:> 9.1-PRERELEASE #2 r242867: When will buildworld + clang + ccache be > functional? > I think I read somewhere that buildworld + clang - ccache was working fine > now. Any info on date ccache will work with clang and when to try?Define CCACHE_CPP2 as otherwise clang will yell at ccache trying to compile precompiled source with extra flags. This breaks libtool and a some other autoconf tests. Care to not specify CCACHE_CPP2 for virtualbox and friends.> Also, clang users - do you see any speed advantage for kernel / world / > ports built with clang?Builds faster. -- Sphinx of black quartz, judge my vow.
Hello, 2012/11/23 Beeblebrox <zaphod at berentweb.com>:> 9.1-PRERELEASE #2 r242867: When will buildworld + clang + ccache be > functional? > I think I read somewhere that buildworld + clang - ccache was working fine > now. Any info on date ccache will work with clang and when to try?Can't comment on this.> Also, clang users - do you see any speed advantage for kernel / world / > ports built with clang?It's not really noticeable but some benchmarks were published on the lists (maybe current@ ?) some days / a few weeks ago, and I remember that buildworld is ~= 10% faster with a clang-compiled kernel + world than with a stock (old 4.2) gcc-compiled kernel+world. I'm not speaking of the compiler speed but really the speed of the same build when run under a clang- or a gcc-compiled base system. Cheers -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier at gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas."
Thanks to both.>> Care to not specify CCACHE_CPP2 for virtualbox and friends.Not true for Jails I assume?>> Define CCACHE_CPP2 as otherwise clang will yell at ccacheIs this the same reason CMAKE yells at CCACHE? -- View this message in context: http://freebsd.1045724.n5.nabble.com/Latest-for-buildworld-clang-ccache-tp5763430p5763438.html Sent from the freebsd-stable mailing list archive at Nabble.com.
2012/11/23 Beeblebrox <zaphod at berentweb.com>:> I think I made a mistake: > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > *** [tblgen] Error code 1 > 1 error > *** [bootstrap-tools] Error code 2 > 1 error > *** [_bootstrap-tools] Error code 2 > 1 error > *** [buildworld] Error code 2 > > in /urs/local/buildflags.conf I have: > /usr/src | /usr/src/*{ > CC= clang > CPP= clang > CXX= clangTwo mistakes in fact ! Use clang++ and clang-cpp :)> USE_CCACHE > USE_CCACHE_CPP2 }-- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier at gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas."
23.11.2012 11:46, Beeblebrox:> I think I made a mistake: > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > *** [tblgen] Error code 1 > 1 error > *** [bootstrap-tools] Error code 2 > 1 error > *** [_bootstrap-tools] Error code 2 > 1 error > *** [buildworld] Error code 2 > > in /urs/local/buildflags.conf I have: > /usr/src | /usr/src/*{ > CC= clang > CPP= clang > CXX= clang > USE_CCACHE > USE_CCACHE_CPP2 }What I wrote is right for ports but not world. ccache port comes with readme file for this setup. -- Sphinx of black quartz, judge my vow.