Skip to content

Issues Building i386 w/ 1.24.x #35039

Open
@nephatrine

Description

@nephatrine

Description

The usual way I build is just by:

export TAGS="bindata sqlite sqlite_unlock_notify"
make frontend
make backend

That's always worked in the past and works with v1.23.8. I'm attempting to move to v1.24.0 or v1.24.2, however, and NPM throws up some weird wasm32/ia32 package error in the make frontend step. (I also tried make build with the same results.)

 > [builder 4/5] RUN make frontend:
0.823 npm warn Unknown builtin config "globalignorefile". This will stop working in the next major version of npm.
0.823 npm warn Unknown builtin config "python". This will stop working in the next major version of npm.
3.842 npm warn deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
3.864 npm warn deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
4.018 npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
5.014 npm warn deprecated [email protected]: This package is deprecated. Use https://socket.dev/npm/package/eta instead.
5.272 npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
5.428 npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
7.592 npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
7.614 npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
10.50 npm warn deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
16.55 npm error code 1
16.55 npm error path /root/gitea/node_modules/unrs-resolver
16.55 npm error command failed
16.55 npm error command sh -c napi-postinstall unrs-resolver check
16.55 npm error [[email protected]] Trying to install package "@unrs/resolver-binding-wasm32-wasi" using npm
16.55 npm error [[email protected]] Failed to install package "@unrs/resolver-binding-wasm32-wasi" using npm: Command failed: npm install --loglevel=error --prefer-offline --no-audit --progress=false --cpu=wasm32 @unrs/[email protected]
16.55 npm error npm error code EBADPLATFORM
16.55 npm error npm error notsup Unsupported platform for @unrs/[email protected]: wanted {"cpu":"wasm32"} (current: {"cpu":"ia32"})
16.55 npm error npm error notsup Valid cpu:  wasm32
16.55 npm error npm error notsup Actual cpu: ia32
16.55 npm error npm error A complete log of this run can be found in: /root/.npm/_logs/2025-07-10T17_17_29_546Z-debug-0.log
16.55 npm error
16.55 npm error npm warn Unknown builtin config "globalignorefile". This will stop working in the next major version of npm.
16.55 npm error npm warn Unknown builtin config "python". This will stop working in the next major version of npm.
16.55 npm error npm warn Unknown env config "globalignorefile". This will stop working in the next major version of npm.
16.55 npm error npm warn Unknown env config "python". This will stop working in the next major version of npm.
16.55 npm error [[email protected]] Trying to download "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.7.0.tgz"
16.55 npm error [[email protected]] Failed to download "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.7.0.tgz": Could not find "package/resolver.wasm32-wasi.node" in archive
16.55 npm error /root/gitea/node_modules/napi-postinstall/lib/index.js:140
16.55 npm error                     throw new Error(`Failed to install package "${pkg}": ${(0, helpers_js_1.getErrorMessage)(err)}`);
16.55 npm error                           ^
16.55 npm error
16.55 npm error Error: Failed to install package "@unrs/resolver-binding-wasm32-wasi": Could not find "package/resolver.wasm32-wasi.node" in archive
16.55 npm error     at checkAndPreparePackage (/root/gitea/node_modules/napi-postinstall/lib/index.js:140:27)
16.55 npm error     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
16.55 npm error
16.55 npm error Node.js v22.16.0
16.55 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-07-10T17_17_16_178Z-debug-0.log
16.68 make[1]: *** [Makefile:822: node_modules] Error 1
16.68 make: *** [Makefile:852: public/assets/js/index.js] Error 2

I'm able to build on x86_64, aarch64, armv7, and riscv64 without issue but not i386. It looks like the github release still has i386 builds for 1.24.x so I'm assuming you haven't dropped support for it? I'm also building with the same alpine 3.22 golang docker images that it looks like your Dockerfiles pull in so I would assume the NPM version and whatnot is the same.

I can post a full log output, but I'm hoping the above is enough that someone with more knowledge of the NodeJS side will be able to discern what the heck is wrong. Or maybe you've got some new secret sauce to building the 32-bit build that I'm not aware of?

Gitea Version

1.24.x

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Alpine 3.22

How are you running Gitea?

This is just regarding building it. I'm doing so with my own Dockerfile running the commands specified in the description.

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions