Date: Sat, 9 Sep 2023 20:52:04 +0200 From: Rainer Hurling <rhurlin@gwdg.de> To: =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= <des@FreeBSD.org> Cc: current <current@freebsd.org> Subject: Re: 15.0-CURRENT build broken in lib/libmagic Message-ID: <09885472-d22e-4c1e-b71e-ad0bc24ff6fa@gwdg.de> In-Reply-To: <86a5tvqjza.fsf@ltc.des.no> References: <9183fcf6-2987-c06c-dbda-49a791e1c004@gwdg.de> <86il8jqnvr.fsf@ltc.des.no> <607c793f-96bf-5244-5e72-574f690b04b4@gwdg.de> <86a5tvqjza.fsf@ltc.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 09.09.23 um 20:28 schrieb Dag-Erling Smørgrav:
> Rainer Hurling <rhurlin@gwdg.de> writes:
>> After removing /usr/obj and 'make cleanworld',
>
> That was unnecessary.
>
>> I tried to build libc like the following, but it fails:
>> [...]
>
> $ cd /usr/src
> $ make buildenv
done
> inside the buildenv, run:
>
> $ make -C lib/libc -j$(nproc)
Unfortunately, here it breaks with:
make -C lib/libc
cc -target x86_64-unknown-freebsd15.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common
-DNO__SCCSID -DNO__RCSID -I/usr/src/lib/libc/include -I/usr/src/include
-I/usr/src/lib/libc/amd64 -DNLS -ftls-model=initial-exec
-DCRT_IRELOC_RELA -DINIT_IRELOCS="init_cpu_features()"
-I/usr/src/lib/libc/csu/amd64 -D__DBINTERFACE_PRIVATE
-I/usr/src/contrib/gdtoa -I/usr/src/contrib/libc-vis -DINET6
-I/usr/obj/usr/src/amd64.amd64/lib/libc -I/usr/src/lib/libc/resolv
-D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libmd
-I/usr/src/contrib/jemalloc/include -I/usr/src/lib/libc/locale
-DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc
-DWANT_HYPERV -DYP -DNS_CACHING -DSYMBOL_VERSIONING -g -gz=zlib -MD
-MF.depend.machdep_ldisx.o -MTmachdep_ldisx.o -std=gnu99
-Wno-format-zero-length -fstack-protector-strong -Wsystem-headers
-Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign
-Wdate-time -Wno-empty-body -Wno-string-plus-int
-Wno-unused-const-variable -Wno-error=unused-but-set-parameter
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
-Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
-Wno-knr-promoted-parameter -Qunused-arguments
-I/usr/src/lib/libutil -I/usr/src/lib/msun/amd64 -I/usr/src/lib/msun/x86
-I/usr/src/lib/msun/src -c /usr/src/lib/libc/gdtoa/machdep_ldisx.c -o
machdep_ldisx.o
/usr/src/lib/libc/gdtoa/machdep_ldisx.c:40:10: fatal error:
'sys/cdefs.h' file not found
#include <sys/cdefs.h>
^~~~~~~~~~~~~
1 error generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/src/lib/libc
>
> then exit the buildenv and run
>
> $ sudo make -C lib/libc install
>
> then buildworld as usual.
>
> DES
Thanks for this description. Seems, that something more is odd here?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?09885472-d22e-4c1e-b71e-ad0bc24ff6fa>
