-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Exec format error when trying to switch NixOS (16.09) architecture #19471
Comments
From the NixOS IRC channel, via @rbvermaa:
|
While I have nothing much to add, I would suggest we document some of the info gathered here. |
I just tried to do exactly what @rbvermaa suggested earlier (if I understand it correctly) but am hitting the same error again. Am I missing a step here? I have also read the Steps to reproduce
|
Not getting further yet, but also mentioning @Fuuzetsu here since he seems to have suggested this same approach in the past to another user with the same question @magnetophon. I think @svanderburg might also have an idea on the matter, since his blogposts on Nix(OS) seem to contain very deep knowledge on the subjects covered there that seem a bit related. |
when looking at the output, my uneducated guess is the indicator for me is the second line in the last output, an exec failed with the wrong format |
Keeping track of useful information from today's NixOS IRC channel below:
|
@rbvermaa / ikwildrpepper:
@RonnyPfannschmidt / ronny:
|
I'd personally try |
@vcunat thank you for your input and suggestion, I have just tried this out and it does indeed blow in a later stage:
At this point I am starting to be convinced that my only remaining option is going to be to just boot from a 64-bit ISO and run nixos-install, but I am thinking about how to do that without losing my configuration and homedirs (it is quite a while ago I did the initial nixos-install for this computer). I was quite convinced this could/should be possible and would still be highly interested if there is any chance to make it work (mainly out of curiosity and for the science of it). |
You won't lose any of that. |
There's a problem that even config files are built with 64-bit tools (purity!), so you would at least need some x86_64-linux build slave. |
@vcunat thanks again, I have just successfully made the switch from
|
Issue description
Since I found out that the
i686-linux
NixOS version (16.09) has quite a lot less pre-built binary available (thanks to this post), and this specific machine supportsx86_64-linux
, I decided to try to switch architecture.When doing this, I am getting an error, likely because I am doing something wrong, but then what is the proper way to switch from i686 to x86_64?
The error seems to be thrown because it is trying to do something with x86_64 binaries already, while the system (and kernel) is still booted in i686 mode? The only information related to this I could find was this message.
Steps to reproduce
nixpkgs.system
fromi686-linux
tox86_64-linux
(see: djvdorp/nc110-nixos@ed7a572)nixos-rebuild switch
.[..]/nix-instantiate: cannot execute binary file: Exec format error
Technical details
16.09.680.4e14fd5 (Flounder)
nix-env (Nix) 1.11.4
16.09.741.354fd37
The text was updated successfully, but these errors were encountered: