Date: Sat, 1 Nov 2025 11:26:37 -0700 From: Mark Millard <marklmi@yahoo.com> To: Adrian Chadd <adrian@freebsd.org> Cc: bob prohaska <fbsd@www.zefox.net>, freebsd-arm@freebsd.org, freebsd-current@freebsd.org Subject: Re: Buildkernel fails in /usr/obj/usr/src/arm.armv7/sys/GENERIC/vchiq_shim.o Message-ID: <10F4DDD5-93CE-4DAC-B11D-44BF2F53C618@yahoo.com> In-Reply-To: <29BBF0CD-763D-4818-80F5-E8CEDF3136B9@yahoo.com> References: <aQYkxXD74zoukc0F@www.zefox.net> <CAJ-VmokLWxBfHM7TNE8jXx8kXTvYpdUnfE28VxFggFJkaD635A@mail.gmail.com> <B97BAB7E-911B-4ECF-9956-93C2C9BD0AFE@yahoo.com> <CAJ-VmoktvOCA0s2Eww1p9Pziku%2BpFG6EkTx_H72Vq_Du%2BRPmLQ@mail.gmail.com> <29BBF0CD-763D-4818-80F5-E8CEDF3136B9@yahoo.com>
index | next in thread | previous in thread | raw e-mail
On Nov 1, 2025, at 10:45, Mark Millard <marklmi@yahoo.com> wrote: > On Nov 1, 2025, at 10:22, Adrian Chadd <adrian@freebsd.org> wrote: > >> Here's my suggested solution: >> >> === >> diff --git a/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c b/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c >> index 96c3a0db8aa5..7e105a6b3b77 100644 >> --- a/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c >> +++ b/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c >> @@ -628,7 +628,9 @@ free_pagelist(BULKINFO_T *bi, int actual) >> pagelist = bi->pagelist; >> >> vchiq_log_trace(vchiq_arm_log_level, >> - "free_pagelist - %zx, %d (%u bytes @%p)", (size_t)pagelist, actual, pagelist->length, bi->buf); >> + "free_pagelist - %zx, %d (%lu bytes @%p)", >> + (size_t)pagelist, (int)actual, (unsigned long)pagelist->length, >> + bi->buf); >> >> num_pages = >> (pagelist->length + pagelist->offset + PAGE_SIZE - 1) / >> === >> >> The code /is/ being compiled on my arm64 and armv7 builds, I verified this by using #error in this source file. But the format strings aren't eliciting a type violation when I cross compile. > > The CI builds are on the likes of butler4.nyi.freebsd.org which > are amd64 as far as I know: also cross builds. > > The CI build infrastructure may be public enough to check for if > anything special is specified for those builds. For example, I do > not know if they use /dev/null or empty files relative to the > likes of environment variables: > > __MAKE_CONF > SRCCONF > SRC_ENV_CONF > > or what the related file content might be like otherwise. In: https://ci.freebsd.org/job/FreeBSD-main-armv7-build/26181/consoleFull I see: . . . export 'MAKEOBJDIRPREFIX=/workspace/obj' rm -fr /workspace/obj . . . sudo make -j 12 -DWITHOUT_CLEAN buildworld 'TARGET=arm' 'TARGET_ARCH=armv7' '__MAKE_CONF=/workspace/freebsd-ci/jobs/FreeBSD-main-armv7-build/make.conf' 'SRCCONF=/dev/null' . . . sudo make -j 12 -DWITHOUT_CLEAN buildkernel 'TARGET=arm' 'TARGET_ARCH=armv7' '__MAKE_CONF=/workspace/freebsd-ci/jobs/FreeBSD-main-armv7-build/make.conf' 'SRCCONF=/dev/null' . . . In: https://github.com/freebsd/freebsd-ci/blob/main/jobs/FreeBSD-main-armv7-build/make.conf I see just: QUOTE KERNCONF=GENERIC GENERIC-MMCCAM END QUOTE I do not see anything explicit related to what SRC_ENV_CONF is for binding to, so a default context for that binding. === Mark Millard marklmi at yahoo.comhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10F4DDD5-93CE-4DAC-B11D-44BF2F53C618>
