Build of devel/ninja and lang/gcc11 fails with latest 14-CURRENT amd64

Yasuhiro Kimura yasu at FreeBSD.org
Sun Nov 14 04:05:05 GMT 2021


From: Yasuhiro Kimura <yasu at FreeBSD.org>
Subject: Re: Build of devel/ninja and lang/gcc11 fails with latest 14-CURRENT amd64
Date: Sat, 13 Nov 2021 12:21:40 +0900 (JST)

> I tried it and build of devel/ninja is surely fixed. But build of
> lang/gcc11 still failed with same error.

With the commit of 90fa9705d5c build of lang/gcc11 is also fixed. But
build of graphics/cairo, which was previously skipped due to build
error of devel/ninja, fails as following.

----------------------------------------------------------------------
--- cairo-perf-micro.o ---
cc -DHAVE_CONFIG_H -I. -I..  -I.                                 -I../boilerplate                -I../src              -I../util/cairo-missing  -I../util/cairo-script  -I../src                        -D_REENTRANT      -I/usr/local/include/pixman-1     -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include/freetype2 -I/usr/local/include/libpng16    -I/usr/local/include  -I/usr/local/include  -I/usr/local/include/libpng16  -I/usr/local/include -pthread  -I/usr/local/include -pthread  -I/usr/local/include -D_THREAD_SAFE -pthread  -I/usr/local/include -D_THREAD_SAFE -pthread    -Wall -Wextra -Wmissing-declarations -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2    -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT cairo-perf-micro.o -MD -MP -MF .deps/cairo-perf-micro.Tpo -c -o cairo-perf-micro.o cairo-perf-micro.c
--- cairo-perf-report.lo ---
mv -f .deps/cairo-perf-report.Tpo .deps/cairo-perf-report.Plo
--- libcairoperf.la ---
/bin/sh ../libtool  --tag=CC    --mode=link cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -fstack-protector-strong -o libcairoperf.la  cairo-perf.lo cairo-perf-report.lo cairo-stats.lo cairo-time.lo    -lrt  -lm
--- cairo-perf-micro.o ---
cairo-perf-micro.c:418:5: error: unknown type name 'cpu_set_t'; did you mean 'cpusetid_t'?
    cpu_set_t affinity;
    ^~~~~~~~~
    cpusetid_t
/usr/include/sys/types.h:86:22: note: 'cpusetid_t' declared here
typedef __cpusetid_t    cpusetid_t;
                        ^
cairo-perf-micro.c:421:9: error: implicit declaration of function 'sched_getaffinity' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (sched_getaffinity(0, sizeof(affinity), &affinity)) {
        ^
cairo-perf-micro.c:426:35: error: use of undeclared identifier 'CPU_SETSIZE'
    for(i = 0, cpu_count = 0; i < CPU_SETSIZE; ++i) {
                                  ^
cairo-perf-micro.c:427:6: error: implicit declaration of function 'CPU_ISSET' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if (CPU_ISSET(i, &affinity))
            ^
4 errors generated.
*** [cairo-perf-micro.o] Error code 1

make[5]: stopped in /wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4/perf
--- cairo-perf-trace.o ---
mv -f .deps/cairo-perf-trace.Tpo .deps/cairo-perf-trace.Po
--- libcairoperf.la ---
libtool: link: ar cru .libs/libcairoperf.a .libs/cairo-perf.o .libs/cairo-perf-report.o .libs/cairo-stats.o .libs/cairo-time.o
libtool: link: ranlib .libs/libcairoperf.a
libtool: link: ( cd ".libs" && rm -f "libcairoperf.la" && ln -s "../libcairoperf.la" "libcairoperf.la" )
--- cairo-hash.o ---
mv -f .deps/cairo-hash.Tpo .deps/cairo-hash.Po
1 error

make[5]: stopped in /wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4/perf

make[4]: stopped in /wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4/perf

make[3]: stopped in /wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4/perf

make[2]: stopped in /wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4

make[1]: stopped in /wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/cairo
----------------------------------------------------------------------

Full build log:
https://www.utahime.org/FreeBSD/poudriere/data/logs/bulk/curamd64-default/2021-11-14_12h35m18s/logs/cairo-1.17.4,3.log

---
Yasuhiro Kimura


More information about the kde-freebsd mailing list