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

README says that "installSimula" doesn't compile, but it does #196

Open
wheaney opened this issue Jun 15, 2023 · 7 comments
Open

README says that "installSimula" doesn't compile, but it does #196

wheaney opened this issue Jun 15, 2023 · 7 comments

Comments

@wheaney
Copy link

wheaney commented Jun 15, 2023

README states that installing should take less than a minute and doesn't compile. I'm on a Steam Deck running the install script, which has triggered nix-build and godot is currently taking 15+ minutes to compile (I see several cc1plus threads running). Here's some output from nix with relevant info:

Downloading nixpkgs, this will take a while.
these 4 derivations will be built:
  /nix/store/jp88g1n58jmjbwp5x0522fcmdb003v0w-godot-3.2.drv
  /nix/store/ipfswqry9brjaqwry098mh9b2dswbx35-godot-haskell-3.1.0.0.drv
  /nix/store/i0yd90fgq594k9ignmrx8h12d2vxxa54-godot-haskell-plugin-0.1.0.0.drv
  /nix/store/dy353rx4qk0wfzpiyd484ci3dxqxyh31-Simula.drv

The README should be corrected.

@pelrun
Copy link

pelrun commented Jul 31, 2023

No, it says it should not compile, not that it doesn't. There are cases where it is necessary.

What you're really asking for is a precompiled binary for your particular platform to be added to the repository.

@RaghavRao
Copy link

From reading other issues, this seems to be cachix failing or being out of date - Builds are being triggered on Ubuntu 22.04 as per #190 and mine was triggered on Fedora 38 on Intel, both hardly niche use cases.

The Readme states:

It takes less than 1 minute to install at the very top, and a bit further down:

Installing Simula should take less than 1 minute: this script **doesn’t actually compile anything** on your system, but instead downloads the appropriate binaries from our cache in a way that is system and driver agnostic. (emphasis mine) only later stating that a 1+ hour build time is a possibility.

Either way, the larger issue is that hardware is getting 100% of the focus now as per the discussion on #180 and builds are probably always being triggered for new users.

@rebelC0der
Copy link

rebelC0der commented Jan 3, 2024

For me, this step never passes. 0% CPU/RAMS usage. Just hangs there like so:

/home/rebelcoder/.nix-profile/bin/nix
nix already installed..
/home/rebelcoder/.nix-profile/bin/cachix
cachix already installed..
Configured https://simula.cachix.org binary cache in /home/rebelcoder/.config/nix/nix.conf

Message from Simula Contributors.
=================================

In order to show project funders that Simula is useful, 
we anonymously collect the following data:

- Session length
- Number of windows active
- Error logs on crashes

Downloading nixpkgs, this will take a while.

OS: Arch Linux

@KaneTW
Copy link
Collaborator

KaneTW commented Jan 3, 2024

What does ps ax|grep nix say?

@rebelC0der
Copy link

What does ps ax|grep nix say?

nix.log

@rebelC0der
Copy link

Update: after some tinkering, installSimula fails with the following:


Message from Simula Contributors.
=================================

In order to show project funders that Simula is useful, 
we anonymously collect the following data:

- Session length
- Number of windows active
- Error logs on crashes

Downloading nixpkgs, this will take a while.

⬇️

error: 2448 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error:
       … while calling the 'import' builtin

         at /media/work/!_Tools/Simula/default.nix:3:120:

            2| let
            3|     pkgs = if profileBuild then (import ./pinned-nixpkgs.nix { overlays = (import ./nix/profileOverlays.nix); }) else (import ./pinned-nixpkgs.nix { });
             |                                                                                                                        ^
            4| in

       … while evaluating the file '/media/work/!_Tools/Simula/pinned-nixpkgs.nix':

       … while calling the 'import' builtin

         at /media/work/!_Tools/Simula/pinned-nixpkgs.nix:1:1:

            1| import (builtins.fetchGit {
             | ^
            2|   url = "https://github.com/NixOS/nixpkgs.git";

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: program 'git' failed with exit code 128

@KaneTW
Copy link
Collaborator

KaneTW commented Jan 3, 2024

Seems like some sort of flaky internet connection?

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

No branches or pull requests

5 participants