powerpc64 (PowerMac G5) buildworld vs. WITH_DEBUG_FILE= for 10.0-STABLE: needs WITHOUT_CLANG=

Mark Millard markmi at dsl-only.net
Wed Sep 3 08:53:32 UTC 2014


With WITH_DEBUG_FILES= in /etc/make.conf but no other changes I tried "make -j 8 buildworld" on a PowerMac G5. It eventually failed, reporting (other than some shortening some of the text):

/usr/obj/usr/src/tmp/usr/bin/ld: /usr/obj/src/.... (omitted) ... /libclangsema.a(SemaAccess.o): Unknown relocation type ????? for symbol *UND*

(for a bunch of different ????? values, such as 24176, 24180, 24200, ...)

That was followed by:

final link failed: bad value.


(I've done no-change buildworld's before. This time I was just trying to have debug symbol files around. I was  not trying to have clang used to buildworld [still gcc] but clang is built by default for powerpc64 so it was involved by default.)

It appears that unless building clang is disabled (such as WITHOUT_CLANG=) or is otherwise controlled specially that WITH_DEBUG_FILES= is not directly supported for powerpc64 buildworld's. Starting over also adding WITHOUT_CLANG= to /etc/make.conf was enough for buildworld to complete.

Context:

FreeBSD FBSDG5S0 10.0-STABLE FreeBSD 10.0-STABLE #0 r268571: Sun Jul 13 06:28:19 UTC 2014     root at grind.freebsd.org:/usr/obj/powerpc.powerpc64/usr/src/sys/GENERIC64  powerpc


===
Mark Millard
markmi at dsl-only.net



More information about the freebsd-ppc mailing list