Skip to content

Race condition in Build? #421

Open
Open
@mpilman

Description

@mpilman

I have a project that implicitly depends on swift-nio-ssl (through GRPC and PostgresNIO I believe). When I am building on Linux Arm64 (not yet checked on amd64) through docker I sometimes get the following error:

Building for debugging...
In file included from /src/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/bytestring/unicode.c:15:
In file included from /src/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bytestring.h:18:
In file included from /src/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_base.h:64:
/usr/lib/clang/13.0.0/include/stddef.h:103:10: fatal error: could not build module '_Builtin_stddef_max_align_t'
#include "__stddef_max_align_t.h"
 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

The reasons I believe this is a race:

  1. I don't see this problem always
  2. This seems to happen on clean builds only
  3. Running swift build after this happens seem to resolve the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions