Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWPROT-8953: build: Improve detection/setup of foreign arch like armhf #14

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

rzr
Copy link
Collaborator

@rzr rzr commented Jan 31, 2025

It was tested on github, the alternative would not to support arm images provided by github.

For the record, native build on arm64 takes up to 5h on github.

Relate-to: https://medium.com/swlh/using-github-actions-to-build-arm-based-docker-images-413a8d498ee

Change

Checklist

rzr added a commit that referenced this pull request Jan 31, 2025
It was tested on github, the alternative would not to support arm images
provided by github.

For the record, native build on arm64 takes up to 5h on github.

Relate-to: https://medium.com/swlh/using-github-actions-to-build-arm-based-docker-images-413a8d498ee
Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
@rzr rzr marked this pull request as draft January 31, 2025 18:57
rzr added a commit that referenced this pull request Jan 31, 2025
It was tested on github, the alternative would not to support arm images
provided by github.

For the record, native build on arm64 takes up to 5h on github.

Relate-to: https://medium.com/swlh/using-github-actions-to-build-arm-based-docker-images-413a8d498ee
Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
rzr added a commit that referenced this pull request Jan 31, 2025
For some reason it was not buidling despite the tricks in helper script.

Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
rzr added a commit that referenced this pull request Jan 31, 2025
For some reason it was not buidling despite the tricks in helper script.

Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
rzr added a commit that referenced this pull request Jan 31, 2025
It was tested on github, the alternative would not to support arm images
provided by github.

For the record, native build on arm64 takes up to 5h on github.

Relate-to: https://medium.com/swlh/using-github-actions-to-build-arm-based-docker-images-413a8d498ee
Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
rzr added a commit that referenced this pull request Jan 31, 2025
For some reason it was not buidling despite the tricks in helper script.

Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
rzr added a commit that referenced this pull request Feb 1, 2025
For some reason armhf is not buidling despite the tricks in helper script:

    [5/1594] Running: cargo build target unify_build
    error: failed to determine package fingerprint for build script for
    unify_attribute_poll v0.1.0
    (/.../unifysdk-src/components/unify_attribute_poll)

Could be related to symlinks:
rust-lang/cargo#9881

Amazingly no problems observed on arm64 (with same rustup versions)

Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
rzr added a commit that referenced this pull request Feb 1, 2025
For some reason armhf is not buidling despite the tricks in helper script:

    [5/1594] Running: cargo build target unify_build
    error: failed to determine package fingerprint for build script for
    unify_attribute_poll v0.1.0
    (/.../unifysdk-src/components/unify_attribute_poll)

Could be related to symlinks:
rust-lang/cargo#9881

Amazingly no problems observed on arm64 (with same rustup versions)

Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
@rzr rzr force-pushed the pull/14/main branch 2 times, most recently from 32a94dd to 8f8cb40 Compare February 1, 2025 09:45
rzr added a commit that referenced this pull request Feb 1, 2025
For some reason armhf is not buidling despite the tricks in helper script:

    [5/1594] Running: cargo build target unify_build
    error: failed to determine package fingerprint for build script for
    unify_attribute_poll v0.1.0
    (/.../unifysdk-src/components/unify_attribute_poll)
    (...)
    "Value too large for defined data type; class=Os (2)"

Amazingly no problems observed on arm64 (with same rustup versions)

Not only on github because ot is reproducable locally.

Not sure problem is related to symlinks,
issues to track at qemu, glibc, linux ext4...

Relate-to: https://gitlab.com/qemu-project/qemu/-/issues/263
Relate-to: https://bugzilla.kernel.org/show_bug.cgi?id=205957
Relate-to: https://sourceware.org/bugzilla/show_bug.cgi?id=23960
Relate-to: https://sourceware.org/bugzilla/show_bug.cgi?id=23960
Relate-to: https://bugs.launchpad.net/qemu/+bug/1805913
Relate-to: rust-lang/cargo#8719
Relate-to: rust-lang/cargo#9881
Relate-to: rust-lang/cargo#9545 (comment)
Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
rzr added a commit that referenced this pull request Feb 6, 2025
It was tested on github, the alternative would not to support arm images
provided by github.

For the record, native build on arm64 takes up to 5h on github.

Relate-to: https://medium.com/swlh/using-github-actions-to-build-arm-based-docker-images-413a8d498ee
Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
rzr added a commit that referenced this pull request Feb 6, 2025
For some reason it was not buidling despite the tricks in helper script.

Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
@rzr rzr marked this pull request as ready for review February 6, 2025 15:07
rzr added 2 commits February 6, 2025 16:08
It was tested on github, the alternative would not to support arm images
provided by github.

For the record, native build on arm64 takes up to 5h on github.

Relate-to: https://medium.com/swlh/using-github-actions-to-build-arm-based-docker-images-413a8d498ee
Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
For some reason it was not buidling despite the tricks in helper script.

Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
@rzr rzr merged commit b0ff3e5 into main Feb 6, 2025
1 check passed
rzr added a commit that referenced this pull request Feb 6, 2025
It was tested on github, the alternative would not to support arm images
provided by github.

For the record, native build on arm64 takes up to 5h on github.

Relate-to: https://medium.com/swlh/using-github-actions-to-build-arm-based-docker-images-413a8d498ee
Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
rzr added a commit that referenced this pull request Feb 6, 2025
For some reason armhf is not buidling despite the tricks in helper script:

    [5/1594] Running: cargo build target unify_build
    error: failed to determine package fingerprint for build script for
    unify_attribute_poll v0.1.0
    (/.../unifysdk-src/components/unify_attribute_poll)
    (...)
    "Value too large for defined data type; class=Os (2)"

Amazingly no problems observed on arm64 (with same rustup versions)

Not only on github because ot is reproducable locally.

Not sure problem is related to symlinks,
issues to track at qemu, glibc, linux ext4...

Relate-to: https://gitlab.com/qemu-project/qemu/-/issues/263
Relate-to: https://bugzilla.kernel.org/show_bug.cgi?id=205957
Relate-to: https://sourceware.org/bugzilla/show_bug.cgi?id=23960
Relate-to: https://sourceware.org/bugzilla/show_bug.cgi?id=23960
Relate-to: https://bugs.launchpad.net/qemu/+bug/1805913
Relate-to: rust-lang/cargo#8719
Relate-to: rust-lang/cargo#9881
Relate-to: rust-lang/cargo#9545 (comment)
Origin: #14
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants