libgloss: probable parallel build issues

Alex Barker alex@1stleg.com
Thu Jul 9 15:46:14 GMT 2026


Hello,

I have been experiencing seemingly random build failures in libgloss under
extreme concurrent build scenarios. These errors don't seem to arise under
normal `make -jN` builds but are coming up under high concurrent builds in
CI scenarios. For example: N parallel builds all running at `make -jN -lN`
where N is something like $(nproc).

A sample of the errors I am seeing:

cp: cannot create regular file 'arm/iq80310.specs': No such file or
directory
Fatal error: can't create arm/redboot-crt0.o: No such file or directory.

I think these are cropping up because specs files are being copied into the
arm build tree but the mkdir doesn't depend on them. There are other
items that seem to suffer from a similar issue like the crt0.o and
redboot-crt0.o copies. I suspect I am running into these issues more
frequently under CI due to the elevated I/O wait.

I've attached a patch that I am working on to try and address the issues
via am__dirstamp on the items that have failed for me. I'm not sure if that
is the best approach and I am almost certain it is not complete, however,
it does appear to alleviate the build failures for my workload. There is
some additional context available at https://bugs.gentoo.org/978951 where I
first reported the bug.

Best,
Alex Barker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/newlib/attachments/20260709/70bcc9b1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-4.6.0-libgloss-arm-race.patch
Type: text/x-patch
Size: 3468 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20260709/70bcc9b1/attachment.bin>


More information about the Newlib mailing list