How do I compile 32 bit assembly with gcc?

What title says.
Here is the error I’m getting: dump.
How would you do it?

I’ve got help and could solve the issue.
Needed to make a shell.nix file with the content of

with (import <nixpkgs> {}).pkgsi686Linux; mkShell {}

then run

$ nix-shell
1 Like

I found a similar solution as a nix flake:

{
  outputs = {nixpkgs, ...}: let
    system = "x86_64-linux";
    np = import nixpkgs {
      localSystem = "x86_64-linux";
    };
    pkgs = np.pkgsi686Linux;
  in {
    devShells.${system}.default = pkgs.mkShell {
      packages = with pkgs; [
        gcc
      ];
    };
  };
}