11.0-CURRENT (on powerpc64) WITH_CCACHE_BUILD= : example failure

From: Mark Millard <markmi_at_dsl-only.net>
Date: Sun, 6 Dec 2015 08:32:57 -0800
Mostly just an FYI: This means that for my own purposes I'll tend to avoid WITH_CCACHE_BUILD= for now. . .

Context vintage:

> # freebsd-version -ku; uname -aKU
> 11.0-CURRENT
> 11.0-CURRENT
> FreeBSD FBSDG5C0 11.0-CURRENT FreeBSD 11.0-CURRENT #17 r291745M: Sat Dec  5 08:20:20 PST 2015     root_at_FBSDG5C0:/usr/obj/usr/src/sys/GENERIC64vtsc-NODEBUG  powerpc 1100091 1100091

I took a working make command for buildworld and added

> env CCACHE_DIR=/var/tmp/ccache

and

> WITH_CCACHE_BUILD=

and then tried to repeat the build. The result was:

> --- lib_gen.o ---
> /usr/local/bin/ccache /usr/local/bin/powerpc64-portbld-freebsd11.0-gcc  -O2 -pipe -isystem /usr/obj/usr/src/tmp/usr/include/. -Wl,-rpath-link -Wl,/usr/obj/usr/src/tmp/usr/lib/. -Wl,-rpath-link -Wl,/usr/obj/usr/src/tmp/lib/. -L/usr/obj/usr/src/tmp/usr/lib/. -L/usr/obj/usr/src/tmp/lib/.   -I. -I/usr/obj/usr/src/lib/ncurses/ncurses/../ncurses -I/usr/src/lib/ncurses/ncurses/../ncurses -I/usr/src/lib/ncurses/ncurses/../ncurses -I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include -I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall -DNDEBUG -DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -MD -MP -MF.depend.lib_gen.o -MTlib_gen.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign   -c lib_gen.c -o lib_gen.o
. . .
> --- lib_gen.o ---
> _67737.c:754:3: error: "_Bool" after # is not a positive integer
> In file included from /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/curses.priv.h:313:0,
>                  from lib_gen.c:19:
> _67737.c:755:2: error: expected ')' before 'int'


The make command was:

> env CCACHE_DIR=/var/tmp/ccache make -j 6 \
> WITH_FAST_DEPEND= WITH_CCACHE_BUILD= \
> CROSS_TOOLCHAIN=powerpc64-gcc \
> WITH_LIBCPLUSPLUS= \
> WITHOUT_CLANG_BOOTSTRAP=
> WITH_CLANG= WITH_CLANG_IS_CC= WITH_CLANG_FULL= \
> WITHOUT_CLANG_EXTRAS= \
> WITH_LLDB= \
> WITHOUT_GCC_BOOTSTRAP= WITHOUT_GCC= WITHOUT_GNUCXX= \
> WITHOUT_BOOT= WITHOUT_LIB32= \
> buildworld buildkernel \
> KERNCONF=GENERIC64vtsc-NODEBUG \
> TARGET=powerpc TARGET_ARCH=powerpc64

[Yes, I'm using powerpc64-xtoolchain-gcc/powerpc64-gcc on a powerpc64 machine (PowerMac G5), no gcc 4.2.1 present and clang 3.7 unused for the build: powerpc64-gcc is also in use as a system tool chain, not just as the "self hosted" cross toolchain.]

Removing

> env CCACHE_DIR=/var/tmp/ccache

and

> WITH_CCACHE_BUILD=

and then repeating went back to working again. I actually went back and forth more than once and tested with and without WITH_FAST_DEPEND= as I was experimenting with both. The reported behavior was uniform over this activity.

The ports vintage powerpc64-xtoolchain-gcc/powerpc64-gcc and other things are from:

> # svnlite info /usr/ports/
> Path: /usr/ports
> Working Copy Root Path: /usr/ports
> URL: https://svn0.us-west.freebsd.org/ports/head
> Relative URL: ^/head
> Repository Root: https://svn0.us-west.freebsd.org/ports
> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
> Revision: 402906
> Node Kind: directory
> Schedule: normal
> Last Changed Author: wen
> Last Changed Rev: 402906
> Last Changed Date: 2015-12-03 18:06:07 -0800 (Thu, 03 Dec 2015)




===
Mark Millard
markmi at dsl-only.net
Received on Sun Dec 06 2015 - 15:33:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:01 UTC