buildworld with clang breaks because no cc

Dimitry Andric dim at
Sat Nov 24 12:57:45 UTC 2012

On 2012-11-23 23:03, Beeblebrox wrote:
> I went ahead and hacked gnu/lib/Makefile and changed to:
> if ${MK_CXX} != "no"
> #SUBDIR+= libstdc++ libsupc++
> .endif

Don't do that, it will not work.  Parts of the system need GNU libstdc++
and libsupc++.

> I then restarted buildworld. Next stop, new error:
> clang -m32 -march=k8 -DCOMPAT_32BIT  -isystem
> /usr/obj/asp/src/lib32/usr/include/  -L/usr/obj/asp/src/lib32/usr/lib32
> -B/usr/obj/asp/src/lib32/usr/lib32 -fpic -DPIC  -O2 -pipe -DNDEBUG
> -std=gnu99 -Qunused-arguments -fstack-protector -Wno-pointer-sign
> -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare
> -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
> -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-parentheses -c
> /asp/src/lib/libncp/ipx.c -o ipx.So
> building shared library
> /usr/obj/asp/src/tmp/usr/bin/ld: warning: creating a DT_TEXTREL in a shared
> object.

This is still the same problem as before, some of your object files were
not created correctly.  Most likely, there is something wrong with your
make.conf and/or src.conf, please post them.

More information about the freebsd-stable mailing list