Skip to content

"Unsupported architecture: ia32" even if stack is disabled #130

Closed

Description

@0rphee

If stack doesn't support this arch, only fail if enable-stack: true.

Example of a workflow failure: https://github.com/0rphee/cripto_final/actions/runs/20246908790/job/58129213772

The offending function:

setup/src/installer.ts

Lines 224 to 235 in 45e5652

async function stackArchString(arch: Arch): Promise<string> {
switch (arch) {
case 'arm64':
return Promise.resolve('aarch64');
case 'x64':
return Promise.resolve('x86_64');
default:
const err = `Unsupported architecture: ${arch}`;
core.error(err);
return Promise.reject(err);
}
}

Activity

  1. changed the title [-]"Unsupported architecture" failure only even if stack is disabled[/-] [+]"Unsupported architecture" failure even if stack is disabled[/+] on Dec 15, 2025
  2. andreasabel commented on Dec 16, 2025

    @andreasabel
    Member

    The code stems from PR #47 contributed by @elopez.

    stackArchString is also used to resolve ghcupBin:

    setup/src/installer.ts

    Lines 318 to 331 in 45e5652

    async function ghcupBin(os: OS, arch: Arch): Promise<string> {
    core.debug(`ghcupBin : ${os}`);
    if (os === 'win32') {
    return 'ghcup';
    }
    const cachedBin = tc.find('ghcup', ghcup_version);
    if (cachedBin) return join(cachedBin, 'ghcup');
    const binArch = await stackArchString(arch);
    const bin = await tc.downloadTool(
    `https://downloads.haskell.org/ghcup/${ghcup_version}/${binArch}-${
    os === 'darwin' ? 'apple-darwin' : 'linux'
    }-ghcup-${ghcup_version}`
    );

    @0rphee The architecture you want is ia32.

    Error: Unsupported architecture: ia32

    Which of these ghcup binaries should be downloaded for ia32?: https://downloads.haskell.org/ghcup/0.1.50.2/
    I suppose i386-linux-ghcup-0.1.50.2, is that correct?

  3. changed the title [-]"Unsupported architecture" failure even if stack is disabled[/-] [+]"Unsupported architecture: ia32" even if stack is disabled[/+] on Dec 16, 2025
  4. 0rphee commented on Dec 16, 2025

    @0rphee
    Author

    Which of these ghcup binaries should be downloaded for ia32?: downloads.haskell.org/ghcup/0.1.50.2 I suppose i386-linux-ghcup-0.1.50.2, is that correct?

    Yes, I think so. I didn't look too much into it as I switched to https://github.com/haskell/ghcup-setup. EDIT: here's the code from there:

    https://github.com/haskell/ghcup-setup/blob/2860d0b41e2c5aa7d005bcbc2bd2506a09557ed8/ghcup/src/main.ts#L15-L41

  5. andreasabel commented on Dec 16, 2025

    @andreasabel
    Member

    Thanks for the pointer.

    I didn't look too much into it as I switched to https://github.com/haskell/ghcup-setup.

    Mmh, so then I don't know whether it is worth fixing, as we have no 32bit tests on CI here, and if you dropped out there will be no one who can test whether the fix works.

  6. added a commit that references this issue on Dec 16, 2025
    0585623
  7. added this to the 2.9.1 milestone on Dec 16, 2025
  8. andreasabel commented on Dec 16, 2025

    @andreasabel
    Member

    @0rphee Ok, I have a fix in #130.
    I am using your workflow to test it, is this ok?

  9. 0rphee commented on Dec 17, 2025

    @0rphee
    Author

    @andreasabel yeah np. Thanks!

  10. added a commit that references this issue on Dec 17, 2025
    0512451
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions