clang++ 3.3 issue (excessively slow compile vs. gcc 4.6 in just one file of a port)

Dimitry Andric dim at FreeBSD.org
Tue Nov 19 07:50:11 UTC 2013


On 18 Nov 2013, at 23:54, Matthias Andree <mandree at FreeBSD.org> wrote:
...
> Uploaded. http://people.freebsd.org/~mandree/ has:
> 
> <http://people.freebsd.org/~mandree/ipsharpen.ii.xz>: the xzipped .ii
> file (unpacked: 6.5 MB)
> 
> <http://people.freebsd.org/~mandree/ipsharpen-compile%2bwarnings.txt>:
> compiler command line (make VERBOSE=1 MAKE_JOBS_UNSAFE=yes)
> and early warnings.

Ok, this looks like http://llvm.org/PR16474 , which has a relatively
simple fix.  I have attached it, can you please try it out?  You can
just apply the patch to /usr/src and do:

make -C /usr/src/lib/clang
make -C /usr/src/usr.bin/clang/clang
sudo make -C /usr/src/usr.bin/clang/clang install

It should basically recompile just one file, and re-link the clang
executable.  I tried building ipsharpen.ii at -O3, and it uses about
20 seconds now (on my relatively slow VM).

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: import-llvm-r191896-1.diff
Type: application/octet-stream
Size: 910 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20131119/9bcd0138/attachment.obj>
-------------- next part --------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20131119/9bcd0138/attachment.sig>


More information about the freebsd-toolchain mailing list