Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8353305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:12:57+00:00 2026-06-09T09:12:57+00:00

I need to compile node.js on a 32-bit system to be compatible with code

  • 0

I need to compile node.js on a 32-bit system to be compatible with code I already have.

I started with the source code from nodejs.org and compiled it. Then I began by changing lines 164-166 in the common.gypi file. It was:

164           [ 'target_arch=="x64"', {
165             'cflags': [ '-m64' ],
166             'ldflags': [ '-m64' ],
167           }],

and now it is:

164           [ 'target_arch=="x64"', {
165             'cflags': [ '-m32' ],
166             'ldflags': [ '-m32' ],
167           }],

When I tried to make it again, I am getting these errors:

../deps/v8/src/execution.h:259: error: integer constant is too large for ‘long’ type
../deps/v8/src/execution.h:260: error: integer constant is too large for ‘long’ type
../deps/v8/src/execution.h:259: error: a function call cannot appear in a constant-expression
../deps/v8/src/execution.h:260: error: a function call cannot appear in a constant-expression

These errors are referring to these lines:

#ifdef V8_TARGET_ARCH_X64
  static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe);
  static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8);

I believe this code is from google’s v8 source code.

I would appreciate any suggestions on either how to fix these particular compiling errors and/or how to compile the 64-bit node.js on a 32-bit system. Most the the research I’ve done is how to compile something 32-bit for a 64-bit system.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T09:12:58+00:00Added an answer on June 9, 2026 at 9:12 am

    If you want to build an x86_32 version of node, you are modifying the parameters for the wrong target architecture. Instead, give the --dest-cpu parameter to the configure script, like this:

    git clone git://github.com/joyent/node.git
    cd node
    ./configure --prefix /usr/local --dest-cpu ia32
    make
    

    If these commands finish successfully, there should be a working x86_32 binary in ./out/Release/node:

    ~/node$ file -b ./out/Release/node
    ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked
    (uses shared libs), for GNU/Linux 2.6.26, (...), not stripped
    ~/node$ ./out/Release/node
    > 1 + 1
    2
    

    You can install it in your running system (at the prefix that you specified in the --prefix parameter above) with sudo make install.

    Note that this requires a working C and C++ compiler to be set up. On Debian/Ubuntu, sudo apt-get install build-essential (or build-essential:i386 if you’re cross-compiling) should get you started. On rpm-based distributions, try sudo yum groupinstall "Development Tools" "Development Libraries".

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to compile my GWT 1.7 project from my ant build file....anyone know
I need to compile some mfc code that was written using Visual C++ 6.0
I have a program that is written in Ada, and I need to compile
I have a temporary situation where beam files compiled on one node are executed
We need to compile our code after check - ins, be notified if compile
i need to compile ffmpeg (64 bit shared dll) for windows. however I configure
I need to compile a program in MS-DOS. I have the Borland editor, and
I need to compile an old (1992) fortran code. This code run in some
I need a compile time check for what version of glibc will be used.
I need to compile the unit with /EHsc option, how could i set this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.