Date: Wed, 2 Oct 2024 11:06:23 -0500 (CDT) From: Dan Mack <mack@macktronics.com> To: Warner Losh <imp@bsdimp.com> Cc: dsdqmzk@hotmail.com, freebsd-current@freebsd.org Subject: Re: FYI: make's "max_jobs" needs to be separated from -j (now?) Message-ID: <2f132eb7-364e-154b-c154-8fc40ec70927@macktronics.com> In-Reply-To: <f684e819-467e-16ca-f317-f315db32b6d3@macktronics.com> References: <Zv0uSUVsyhRtMS27@albert.catwhisker.org> <SEYPR02MB5821CB9C62B92369962FCAABB1702@SEYPR02MB5821.apcprd02.prod.outlook.com> <cdfa00de-5640-8f09-d501-9fce87072d0d@macktronics.com> <SEYPR02MB58216CE43D7E3BC4841B5980B1702@SEYPR02MB5821.apcprd02.prod.outlook.com> <0db2d927-3299-2c0f-2310-d8e386fb31c6@macktronics.com> <CANCZdfpnwfsyuRH0p_xFfh5XdUZsLRtex_K%2Bs=DsJDux8t-1wg@mail.gmail.com> <f684e819-467e-16ca-f317-f315db32b6d3@macktronics.com>
index | next in thread | previous in thread | raw e-mail
On Wed, 2 Oct 2024, Dan Mack wrote:
> On Wed, 2 Oct 2024, Warner Losh wrote:
>
>> Ack, okay. I can't trigger it with a fresh or my /usr/obj but in
>> any
>> event the error number 6 is probably referring to a path or
>> directory
>> missing while doing a parallel build given some input state :-)
>>
>> #define ENXIO 6 /* Device not configured */
>>
>>
>> ENXIO usually is reserved for hardware errors when a device disappears
>> for block I/O contexts. So I'm not sure that this theory is so good.
>>
>> But shell error exit statuses are largely independent of errnos.
>>
>> Warner
>
> Thank you, I was indeed stretching to make error no 6 work for me in this
> context by thinking it was really a mis identitied file or directory not
> found. However, if someone's going to return 6, then they'll return a 6,
> nothing I can do about it other than expect it again sometime.
> :-)
>
> Dan
Ahh, it's possibly from bmake? Which makes sense to me:
./contrib/bmake/job.c
if (count == 1 && tok != '+') {
/* make being aborted - remove any other job tokens */
DEBUG2(JOB, "(%d) aborted by token %c\n", getpid(), tok);
while (read(tokenWaitJob.inPipe, &tok1, 1) == 1)
continue;
/* And put the stopper back */
while (write(tokenWaitJob.outPipe, &tok, 1) == -1 &&
errno == EAGAIN)
continue;
if (shouldDieQuietly(NULL, 1))
exit(6); /* we aborted */
Fatal("A failure has been detected "
"in another branch of the parallel make");
}
Dan
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2f132eb7-364e-154b-c154-8fc40ec70927>
