Date: Tue, 28 Aug 2012 17:53:15 +0100 From: Jamie Paul Griffin <jamie@kode5.net> To: David Wolfskill <david@catwhisker.org> Cc: freebsd-stable@freebsd.org Subject: Re: Building the kernel and userland with llvm/clang Message-ID: <20120828165315.GE38854@kontrol.kode5.net> In-Reply-To: <20120828154621.GJ10869@albert.catwhisker.org> References: <20120828153203.GC38854@kontrol.kode5.net> <20120828154621.GJ10869@albert.catwhisker.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--fWddYNRDgTk9wQGZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [ David Wolfskill wrote on Tue 28.Aug'12 at 8:46:21 -0700 ] > On Tue, Aug 28, 2012 at 04:32:03PM +0100, Jamie Paul Griffin wrote: > > Hi > >=20 > > I've been reading some information about building my system, FreeBSD St= able/9, using llvm/clang; the site I've been looking at is http://wiki.free= bsd.org/BuildingFreeBSDWithClang. > >=20 > > I was wondering about the benefits of doing so and also - and probably = more importantly - if there are potential problems that might mean it's not= worthwhile doing. Having read it again today there doesn't seem to be any = likely problems > >=20 > > I'd appreciate any thoughts or advice about this if possible.=20 > > ... >=20 > I have been doing this (on a daily basis) with both head & stable/9 on > my home "build machine" and my laptop since 12 Jul 2012; I have seen no > problems or issues. (I build my ports under stable/8 & have /usr/local > in common across all 4 slices on each machine.) >=20 > Here's what's in my /etc/src.conf for stable/9: >=20 > CC=3Dclang > CXX=3Dclang++ > CPP=3Dclang-cpp > WITH_LIBCPLUSPLUS=3Dyes >=20 > When I update my "production" machines at home from stable/8 to stable/9 > (probably shortly after 9.1 is released), they will (by necessity) also > migrate to FreeBSD built with llvm/clang (as they get installed what the > build machine builds). >=20 > Peace, > david Thanks David, that's helpful information. I'll likely give it a go. So does= clang create better binaries and libraries, in terms of performance and su= ch-like? I'm currently reading as much as I can find about clang and its as= sociated tools; however, compilers are quite complex software and learning = about them is, for me at least, a lot to take in.=20 Best wishes, Jamie. --fWddYNRDgTk9wQGZ Content-Type: application/x-pkcs7-signature Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIIRngYJKoZIhvcNAQcCoIIRjzCCEYsCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC DuIwggUfMIIEB6ADAgECAhB0kD49oFhImiM1TNmYDSf/MA0GCSqGSIb3DQEBBQUAMIGTMQsw CQYDVQQGEwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxm b3JkMRowGAYDVQQKExFDT01PRE8gQ0EgTGltaXRlZDE5MDcGA1UEAxMwQ09NT0RPIENsaWVu dCBBdXRoZW50aWNhdGlvbiBhbmQgU2VjdXJlIEVtYWlsIENBMB4XDTEyMDgyNTAwMDAwMFoX DTEzMDgyNTIzNTk1OVowIDEeMBwGCSqGSIb3DQEJARYPamFtaWVAa29kZTUubmV0MIIBIjAN BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArCcH9jqYDuhBs0LslWkupsEzY7j7D0okrqe9 k1eoafySH8/JL5x2Ly5XdQY+D//SRhaonnQO4vZxf/48I/ErXJnQ12Q7nv8x0OUbHUCsSDuM o+XdCHNhw6cabwP/lkn+yKQOucl8jL4DXZbUxvZdxkd5xajHi3/OOOkdxuz09gKY5kh5aTaV cg9KA5WzZ3oJ8LENEVbPnwj7AIbyALaE0N45/GN0rG7KKn5DZSjqwd40+XEMCSaw5qNYNiFz iS9S2ow0P+aQz3WUaUcFHUnTyo84CkTWRGtCS5FfWEjX7UjTZbvLAmxdndbqfahJVIL/ch+o d9WQAXIGwHBSOZtWXwIDAQABo4IB3zCCAdswHwYDVR0jBBgwFoAUehNOAHRbxnhjZCfBL+Kg W7x5xXswHQYDVR0OBBYEFFzXVMl5Ia5RjMxe7WhQ66w5ceGXMA4GA1UdDwEB/wQEAwIFoDAM BgNVHRMBAf8EAjAAMCAGA1UdJQQZMBcGCCsGAQUFBwMEBgsrBgEEAbIxAQMFAjARBglghkgB hvhCAQ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MHU2FsZm9y ZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxOTA3BgNVBAMTMENPTU9ETyBDbGllbnQg QXV0aGVudGljYXRpb24gYW5kIFNlY3VyZSBFbWFpbCBDQQIQdJA+PaBYSJojNUzZmA0n/zAJ BgUrDgMCGgUAoIGxMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8X DTEyMDgyODE2NTMxNVowIwYJKoZIhvcNAQkEMRYEFLQASjpkn2wIrlN4c6dUZfbJ6mCMMFIG CSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMC AgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgEoMA0GCSqGSIb3DQEBAQUABIIBAE6b4JINlzFy R02h9FcrXpB9zPh0AxK0vwlgViPo83TG0pZ9dGnHl5sP5LUsEjpsjFJ5S//6xuhRvMEMX1sH x51cCY3VTW+Z9MX/1xtkA/sCHePM7XyngvtP9vE/SImucnwPEEeXG1yzCMcqez3ckEtHcTs/ WU9bumHVzFALO6xcw+KLONYsdY7j5EU8g4EWXjyhiHPq8i2ptJ1wWN5s/hUO6QKyuoBabQk9 uGetFlSkClTbthPq6F/kygRq3utfnUliSyLsn+T5IyUGgO2glhM+PDzOqELKjTTRbt75vfr+ BhhpmixHuzw99zfF+l2NZw7Aj1IlOgGgy02H+kqL5uc= --fWddYNRDgTk9wQGZ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120828165315.GE38854>