atomicdata-dev / atomic-server

An open source headless CMS / real-time database. Powerful table editor, full-text search, and SDKs for JS / React / Svelte.
https://atomicserver.eu
MIT License
1.02k stars 46 forks source link

Cross musl compile issue #807

Open joepio opened 9 months ago

joepio commented 9 months ago

Building the TARGET=aarch64-unknown-linux-musl version of atomic-server using cargo cross fails.

version 'GLIBC_2.28' not found

        +cross-build | error: failed to run custom build command for `lock_api v0.4.8`

        +cross-build | Caused by:
        +cross-build |   process didn't exit successfully: `/target/release/build/lock_api-da742a16773aa074/build-script-build` (exit status: 1)
        +cross-build |   --- stderr
        +cross-build |   /target/release/build/lock_api-da742a16773aa074/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /target/release/build/lock_api-da742a16773aa074/build-script-build)
        +cross-build |   /target/release/build/lock_api-da742a16773aa074/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/lock_api-da742a16773aa074/build-script-build)
        +cross-build | warning: build failed, waiting for other jobs to finish...
        +cross-build | error: failed to run custom build command for `log v0.4.17`

        +cross-build | Caused by:
        +cross-build |   process didn't exit successfully: `/target/release/build/log-ccbcac0f62f44207/build-script-build` (exit status: 1)
        +cross-build |   --- stderr
        +cross-build |   /target/release/build/log-ccbcac0f62f44207/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/log-ccbcac0f62f44207/build-script-build)
        +cross-build | error: failed to run custom build command for `serde v1.0.188`
        +cross-build |

        +cross-build | Caused by:
        +cross-build |   process didn't exit successfully: `/target/release/build/serde-5182004e7187d2d9/build-script-build` (exit status: 1)
        +cross-build |   --- stderr
        +cross-build |   /target/release/build/serde-5182004e7187d2d9/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /target/release/build/serde-5182004e7187d2d9/build-script-build)
        +cross-build |   /target/release/build/serde-5182004e7187d2d9/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/serde-5182004e7187d2d9/build-script-build)
        +cross-build | error: failed to run custom build command for `memchr v2.5.0`
        +cross-build |

        +cross-build | Caused by:
        +cross-build |   process didn't exit successfully: `/target/release/build/memchr-4bc61bb1b63e0ac3/build-script-build` (exit status: 1)
        +cross-build |   --- stderr
        +cross-build |   /target/release/build/memchr-4bc61bb1b63e0ac3/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/memchr-4bc61bb1b63e0ac3/build-script-build)
        +cross-build | error: failed to run custom build command for `libc v0.2.149`
        +cross-build |

        +cross-build | Caused by:
        +cross-build |   process didn't exit successfully: `/target/release/build/libc-9adab6dbe063a4c4/build-script-build` (exit status: 1)
        +cross-build |   --- stderr
        +cross-build |   /target/release/build/libc-9adab6dbe063a4c4/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /target/release/build/libc-9adab6dbe063a4c4/build-script-build)
        +cross-build |   /target/release/build/libc-9adab6dbe063a4c4/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/libc-9adab6dbe063a4c4/build-script-build)
        +cross-build | error: failed to run custom build command for `parking_lot_core v0.9.3`
        +cross-build |

        +cross-build | Caused by:
        +cross-build |   process didn't exit successfully: `/target/release/build/parking_lot_core-2c4eef367a90409f/build-script-build` (exit status: 1)
        +cross-build |   --- stderr
        +cross-build |   /target/release/build/parking_lot_core-2c4eef367a90409f/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/parking_lot_core-2c4eef367a90409f/build-script-build)
        +cross-build | earthly debugger | Command /bin/sh -c 'cross build --target $TARGET --release' failed with exit code 101
joepio commented 9 months ago

Wait - this might be due to me running on amd64 arch instead of linux/arm64/v8

Edit: no that's not it.

joepio commented 9 months ago

Hmm same thing is still happening:

https://github.com/atomicdata-dev/atomic-server/actions/runs/7702447907/job/20990766875#step:8:401

   +cross-build *failed* | error: failed to run custom build command for `memchr v2.5.0`

        +cross-build *failed* | Caused by:
        +cross-build *failed* |   process didn't exit successfully: `/target/release/build/memchr-4bc61bb1b63e0ac3/build-script-build` (exit status: 1)
        +cross-build *failed* |   --- stderr
        +cross-build *failed* |   /target/release/build/memchr-4bc61bb1b63e0ac3/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/memchr-4bc61bb1b63e0ac3/build-script-build)
        +cross-build *failed* | warning: build failed, waiting for other jobs to finish...
        +cross-build *failed* | error: failed to run custom build command for `libc v0.2.149`

        +cross-build *failed* | Caused by:
        +cross-build *failed* |   process didn't exit successfully: `/target/release/build/libc-9adab6dbe063a4c4/build-script-build` (exit status: 1)
        +cross-build *failed* |   --- stderr
        +cross-build *failed* |   /target/release/build/libc-9adab6dbe063a4c4/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /target/release/build/libc-9adab6dbe063a4c4/build-script-build)
        +cross-build *failed* |   /target/release/build/libc-9adab6dbe063a4c4/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/libc-9adab6dbe063a4c4/build-script-build)
        +cross-build *failed* | error: failed to run custom build command for `log v0.4.17`

        +cross-build *failed* | Caused by:
        +cross-build *failed* |   process didn't exit successfully: `/target/release/build/log-ccbcac0f62f44207/build-script-build` (exit status: 1)
        +cross-build *failed* |   --- stderr
        +cross-build *failed* |   /target/release/build/log-ccbcac0f62f44207/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/log-ccbcac0f62f44207/build-script-build)
        +cross-build *failed* | error: failed to run custom build command for `lock_api v0.4.8`

Is something wrong with the 0.2.5 version of cross-rs/aarch64-unknown-linux-musl?

AlexMikhalev commented 6 months ago

is it working now? I think may be closed