Boost logo

Boost :

From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2024-02-23 11:04:00


On 2/23/24 05:07, Tom Kent via Boost wrote:
> When building for windows against the 1.85.0 nightly snapshot, I'm seeing
> an odd error with no info around it:
>
>
> - type_erasure : building
> - url : building
> - wave : building
>
> ...patience...
> ...patience...
> ...patience...
> ...patience...
> ...patience...
> ...patience...
> ...patience...
> [errno 22] failed to scan file '': Invalid argument...found 39744 targets...
>
>
> Upping the verbosity in B2, I was able to find that it appears to happen in
> filesystem:
>
> bind --
> <object(c-scanner)@8602>boost\filesystem\detail\type_traits\disjunction.hpp:
> boost\filesystem\detail\type_traits\disjunction.hpp
> time --
> <object(c-scanner)@8602>boost\filesystem\detail\type_traits\disjunction.hpp:
> 2024-02-22 07:18:09.000000000 +0000
> make --
> <object(c-scanner)@8602>boost\filesystem\detail\type_traits\disjunction.hpp
> make --
> <object(c-scanner)@8602>boost\filesystem\detail\type_traits\disjunction.hpp
> time --
> <object(c-scanner)@8602>boost\filesystem\detail\type_traits\disjunction.hpp:
> unbound
> made stable
> <object(c-scanner)@8602>boost\filesystem\detail\type_traits\disjunction.hpp
> make --
> <object(c-scanner)@8602>boost\filesystem\detail\header.hpp
> make --
> <object(c-scanner)@8602>boost\filesystem\detail\header.hpp
> bind -- [errno 22] failed to scan file '': Invalid argument
> <object(c-scanner)@8602>boost\filesystem\detail\header.hpp:
> boost\filesystem\detail\header.hpp
> time --
> <object(c-scanner)@8602>boost\filesystem\detail\header.hpp: 2024-02-22
> 07:18:09.000000000 +0000
> make --
> <object(c-scanner)@8602>boost\filesystem\detail\header.hpp
> make --
> <object(c-scanner)@8602>boost\filesystem\detail\header.hpp
> time --
> <object(c-scanner)@8602>boost\filesystem\detail\header.hpp: unbound
> made stable
> <object(c-scanner)@8602>boost\filesystem\detail\header.hpp
>
> Anyone have ideas on what this can be? Why it doesn't show up more like a
> normal error?

It looks like the error happens in b2 while it is scanning headers for
dependencies. I don't know b2 internals enough to understand why that
happens and whether there is something specific in Boost.Filesystem to
trigger it. In any case, boost\filesystem\detail\header.hpp is not new
and hasn't changed for more than a year, so I don't think it's the
header. I think, this should be reported to Boost.Build.

https://github.com/bfgroup/b2/issues

PS: I'm not seeing this locally or in CI:

https://github.com/boostorg/filesystem/actions/runs/7970405370/job/21757937933
https://github.com/boostorg/filesystem/actions/runs/7970405370/job/21757938958
https://github.com/boostorg/filesystem/actions/runs/7970405370/job/21757939266


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk