Re: Latest for buildworld + clang + ccache
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. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
Hello, 2012/11/23 Beeblebrox zap...@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: oliv...@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. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
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 ccache Is 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. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
23.11.2012 11:20, Beeblebrox: Care to not specify CCACHE_CPP2 for virtualbox and friends. Not true for Jails I assume? No, it's just that virtualbox still doesn't build with clang and gcc doesn't really like some -MD (?) flags. Define CCACHE_CPP2 as otherwise clang will yell at ccache Is this the same reason CMAKE yells at CCACHE? Haven't seen this before. Can you share? -- Sphinx of black quartz, judge my vow. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
Is this the same reason CMAKE yells at CCACHE? Haven't seen this before. Can you share? I meant for ports, not buildworld... I use bsdadminscripts and specify preferences in /usr/local/etc/buildflags.conf. I tried these and did not work. What is the setting for this, and I assume I can set CCACHE_CPP2 in that file also? USE_GCC=clang BUILDFLAGS_GCC= clang -- View this message in context: http://freebsd.1045724.n5.nabble.com/Latest-for-buildworld-clang-ccache-tp5763430p5763442.html Sent from the freebsd-stable mailing list archive at Nabble.com. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
I think maybe it has to be like this: BUILDFLAGS_GCC_CC= clang BUILDFLAGS_GCC_CPP= clang BUILDFLAGS_GCC_CXX= clang But BUILDFLAGS_GCC_CXX looks at CCACHE_CPP2 I think and must be modified. -- View this message in context: http://freebsd.1045724.n5.nabble.com/Latest-for-buildworld-clang-ccache-tp5763430p5763447.html Sent from the freebsd-stable mailing list archive at Nabble.com. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
23.11.2012 11:30, Beeblebrox: Is this the same reason CMAKE yells at CCACHE? Haven't seen this before. Can you share? I meant for ports, not buildworld... I use bsdadminscripts and specify preferences in /usr/local/etc/buildflags.conf. I tried these and did not work. What is the setting for this, and I assume I can set CCACHE_CPP2 in that file also? USE_GCC=clang BUILDFLAGS_GCC= clang CC= clang CPP= clang-cpp CXX= clang++ Yes, you can include CCACHE_CPP2 in this file too. -- Sphinx of black quartz, judge my vow. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
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 } -- View this message in context: http://freebsd.1045724.n5.nabble.com/Latest-for-buildworld-clang-ccache-tp5763430p5763453.html Sent from the freebsd-stable mailing list archive at Nabble.com. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
It breaks while spitting all these errors. I will try without ccache and see how that goes... undefined reference to `operator delete[](void*)' undefined reference to `__cxa_guard_acquire' undefined reference to `__cxa_guard_release' undefined reference to `__cxa_pure_virtual' undefined reference to `__cxa_pure_virtual' undefined reference to `__cxa_pure_virtual' undefined reference to `vtable for __cxxabiv1::__class_type_info' -- View this message in context: http://freebsd.1045724.n5.nabble.com/Latest-for-buildworld-clang-ccache-tp5763430p5763455.html Sent from the freebsd-stable mailing list archive at Nabble.com. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
2012/11/23 Beeblebrox zap...@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=clang Two mistakes in fact ! Use clang++ and clang-cpp :) USE_CCACHE USE_CCACHE_CPP2 } -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: oliv...@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. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
Sorry for my stupidity. I placed wrong entries: CPP= clang instead of clang-cpp CXX= clang instead of clang++ It works very beautifully now Spasiba vam bolshoi... -- View this message in context: http://freebsd.1045724.n5.nabble.com/Latest-for-buildworld-clang-ccache-tp5763430p5763459.html Sent from the freebsd-stable mailing list archive at Nabble.com. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Latest for buildworld + clang + ccache
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. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org