Date: Fri, 10 Sep 2021 14:50:59 +0300 From: Toomas Soome via current <current@freebsd.org> To: gljennjohn@gmail.com Cc: current@freebsd.org Subject: Re: compile failure in /usr/src/stand/libsa Message-ID: <6B76ACF0-3896-49F4-8061-C1C94B850ADB@me.com> In-Reply-To: <20210910105307.6fef0726@ernst.home> References: <20210910105307.6fef0726@ernst.home>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_2D482388-E716-47A9-9D8F-E9E38D97FC7D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 10. Sep 2021, at 13:53, Gary Jennejohn <gljennjohn@gmail.com> = wrote: >=20 > So, a new problem with buildworld in HEAD. >=20 > Building in /usr/src/stand/libsa fails because dosfs.c, ufs.c and > geli/gelidev.c can't find disk.h. But disk.h is located in ../common. >=20 > I had to modify all three of these files to get the compile to finish > by using ../common/disk.h. >=20 > In /usr/src/stand/defs.mk I find LDRSRC=3D ${BOOTSRC}/common and = defs.mk > is included in /usr/src/stand/Makefile.inc. So it seems like the = C-files > under libsa should find the includes. >=20 > However, I'm not sure whether LDSRC is the correct value to be using > in defs.mk, because I'm not sure what it means. >=20 > I saw this error on two different machines with the latst HEAD tree. >=20 > --=20 > Gary Jennejohn >=20 Could you paste the compiler command line used to build ufs.c for = example? I=E2=80=99m expecting to see something: cc -O2 -pipe -fno-common -nostdinc = -I/usr/obj/usr/src/amd64.amd64/stand/libsa -I/usr/src/stand/libsa = -D_STANDALONE -I/usr/src/sys -Ddouble=3Djagged-little-pill = -Dfloat=3Dfloaty-mcfloatface -ffunction-sections -fdata-sections = -DLOADER_GELI_SUPPORT -I/usr/src/stand/libsa/geli -DLOADER_DISK_SUPPORT = -ffreestanding -mno-mmx -mno-sse -mno-avx -mno-avx2 -msoft-float -fPIC = -mno-red-zone -mno-relax -I. -Iinclude -DBZ_NO_STDIO -DBZ_NO_COMPRESS = -DHAVE_MEMCPY -I/usr/src/sys/contrib/zlib -I/usr/src/stand/common = -DWEAK_REFS -DHAS_ZSTD_ZFS -I/usr/src/stand/common = -I/usr/src/sys/cddl/boot/zfs -I/usr/src/sys/crypto/skein = -I/usr/src/sys/contrib/openzfs/include = -I/usr/src/sys/contrib/openzfs/include/os/freebsd/zfs -Wformat -Wall -g = -gz=3Dzlib -MD -MF.depend.ufs.o -MTufs.o -std=3Dgnu99 = -Wno-format-zero-length -Wsystem-headers -Werror -Wno-pointer-sign = -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable = -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 -Wno-parentheses -Oz -Qunused-arguments = -c /usr/src/stand/libsa/ufs.c -o ufs.o rgds, toomas= --Apple-Mail=_2D482388-E716-47A9-9D8F-E9E38D97FC7D--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6B76ACF0-3896-49F4-8061-C1C94B850ADB>