You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have been building a static executable for x64-linux for quite a while now. From this, the minimal docker image is created.
It would be really cool, if we could build the static executable on other platforms, too - and then create a multi-layer docker image, which provides minimal image size for different platforms.
One way to do this would be to run a nix environment on those platforms and build the static executable natively.
This issue collects the current state of affairs.
Linux on x64 ✅
This has been working fine for a long time. For a few weeks now, we have been building via nixpkgs' pkgsStatic.
Last tried here via FlyCI runner connected to my fork.
Currently failing with:
-- Looking for __atomic_fetch_add_4 in atomic - not found
CMake Error at cmake/modules/CheckAtomic.cmake:59 (message):
Host compiler appears to require libatomic, but cannot find it.
Call Stack (most recent call first):
cmake/config-ix.cmake:407 (include)
CMakeLists.txt:848 (include)
-- Configuring incomplete, errors occurred!
error: builder for '/nix/store/0xhhqzfvid6f3cbvx4bng0dl93xydva0-llvm-static-aarch64-apple-darwin-16.0.6.drv' failed with exit code 1;
last 10 log lines:
> -- Looking for __atomic_fetch_add_4 in atomic
> -- Looking for __atomic_fetch_add_4 in atomic - not found
> CMake Error at cmake/modules/CheckAtomic.cmake:59 (message):
> Host compiler appears to require libatomic, but cannot find it.
> Call Stack (most recent call first):
> cmake/config-ix.cmake:407 (include)
> CMakeLists.txt:848 (include)
>
>
> -- Configuring incomplete, errors occurred!
For full logs, run 'nix log /nix/store/0xhhqzfvid6f3cbvx4bng0dl93xydva0-llvm-static-aarch64-apple-darwin-16.0.6.drv'.
Other
❔ FreeBSD could be possible in theory, we could try to run it on a Cirrus CI FreeBSD instance.
❌ Windows is not supported by nix. It can run in WSL2, I think, but that won't help us building natively.
The text was updated successfully, but these errors were encountered:
We have been building a static executable for x64-linux for quite a while now. From this, the minimal docker image is created.
It would be really cool, if we could build the static executable on other platforms, too - and then create a multi-layer docker image, which provides minimal image size for different platforms.
One way to do this would be to run a nix environment on those platforms and build the static executable natively.
This issue collects the current state of affairs.
Linux on x64 ✅
This has been working fine for a long time. For a few weeks now, we have been building via nixpkgs'
pkgsStatic
.Linux on aarch64/arm64 ❌
Last tried here on our self hosted GitHub Runner.
Currently failing with:
MacOS on x64 ❌
Last tried here on the regular
macos
GitHub Runner.Currently failing with:
Related: NixOS/nixpkgs#256590
MacOS on aarch64/arm64 ❌
Last tried here via FlyCI runner connected to my fork.
Currently failing with:
Other
The text was updated successfully, but these errors were encountered: