long running gcc process when building world

David Schultz das at FreeBSD.ORG
Tue Jan 15 07:09:35 PST 2008

On Tue, Jan 15, 2008, Jiawei Ye wrote:
> Having updated to -current as of Jan 14, gcc now drops in to never-ending
> compilation when building world:
> cc -O2 -fno-strict-aliasing -pipe -DIN_GCC -DHAVE_CONFIG_H
> -DPREFIX=\"/usr/obj/usr/src/tmp/usr\"
> -I/tmp/obj/usr/src/tmp/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools
> -I/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools
> -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc
> -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config
> -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include
> -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include
> -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber
>  -I/usr/obj/usr/src/tmp/legacy/usr/include -c ../cc_tools/insn-attrtab.c
> This has been running for more than 5 minutes as of now. The same symptom
> occurs when building java/jdk16.

It should take a while, but not that long. I'll bet
src/lib/libc/stdlib/qsort.c,v 1.14 is the culprit.
Try updating it, then rebuild libc and gcc.

More information about the freebsd-current mailing list