-
Notifications
You must be signed in to change notification settings - Fork 285
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
Node Error on AIX #784
Comments
All current LTS Node.js levels have a minimum dependency on the GNU 4.8.x c++ libraries, because the binaries are compiled with GNU compilers, not XLC. Check that you have those 32-/64-bit libraries installed (it will install multiple libraries in a sub-directory structure under /opt/freeware/lib depending on where POSIX thread support is needed). If not you can obtain the needed libraries from the Bull Freeware site. |
Hi , I checked libstdc++.a is at location
Also, executed
and all the dependency shown without error . However , getting the same below error when executing node - version . Please help .
_```
|
Can you provide the output of: lslpp -Lq | grep c++ and ls -l /opt/freeware/lib/pthread/ppc64/ (specifically check that the linked file(s) is(are) present, and thus that the libstdc++.a symbolic link is valid) And, I suspect that you actually ran 'gcc --version', rather than 'g++ --version'? I'll see if I can get an installation based on gcc/g++ v6.3 working... check re-creation. Which build of node are you trying to use? |
Hi Stephen , lslpp -Lq | grep c++ is throwing error "error: incorrect format: unknown tag" .
The another cmd ls -l /opt/freeware/lib/pthread/ppc64/ returns - abiswas@ttwfmp04> ls -l /opt/freeware/lib/pthread/ppc64/
|
I fear we may not have tested with this level of |
Hi @gireeshpunathil : yeah, I'm already on it! I've currently had a clean AIX 7.1 instance provisioned remotely, and I'm just fighting through the issues of getting the pre-requisite RPMs installed given we know that trying to maintain two (non-native) sets of GCC compilers and toolchains present on the same server environment is fraught with issues (based on prior past experience) : this is UNIX, so its possible, but just not straightforward. |
@a4amitava : OK, I've successfully verified/recreated the issue. Looking at the range of symbols that are exported by libstdc++ v6, I'm not expecting this to have a workaround ; I suspect that this will need a re-built node binary by GCC / g++ v6 tooling. However, we'll continue to dig into this and discuss if there are any other options available. |
@shellberg, Thanks for confirming the issue with v6. Can you suggest which version of gcc/g++ we should install in AIX 7.1 for node v6.10.1+ |
Yes, certainly! In terms of due diligence, I'll try and check other sources of freeware packages (perzl.org) and see if I can verify that its not just a badly built package from Bull Freeware... |
@a4amitava okay, it looks like you've uncovered an issue with Node on AIX! Thanks a lot for the helpful info. Now that this is a confirmed bug I'll reopen nodejs/node#14785. I'll leave this thread open until you confirm that you've got it working with gcc 4.8.x, feel free to close it when you feel that that is resolved. |
Conducted further investigation today. As threatened, I also looked at other sources of freeware binary packages. And, as far as I could determine neither Perlz.org or the AIX Toolkit actually host any gcc / g++ or libstdc++ support later than 4.8.x. It seems that the only build binary packages for later/current gcc/g++ tooling is currently via Bull Freeware, albeit potentially vulnerable to this apparent backward compatibility problem. |
@shellberg could you post in nodejs/node#14785 instead? |
Hi Team , > npm install -g @ angular/cli |
@a4amitava : Yes, I can install
The node / npm aspects are fine... there were some issues (pre-requisite tooling in my clean environment) during the node-gyp installation of the native components, but they were not hard to solve. Specifically, I had to manually associate 'cc' to 'gcc' for the C compiler, but that was about it (and could also be achieved in varying ways). ( I used gcc / g++ / libstdc++ 4.9.2 from Bull Freeware ) |
You should be able to do: export CC=`which gcc`
export CXX=`which g++`
npm install -g @angular/cli as long as the |
@a4amitava Do you still need help with this issue Or is it solved? |
Hi ,
|
I am facing exactly same error. Provided all details below. Can you please advise and help ? Thanks Could not load program node: NODEJS Version : node-v6.11.2-aix-ppc64 #g++ -v #gcc -v #lslpp -Lq | grep c++ gcc-c++ 6.3.0-1 C R C++ support for GCC (/bin/rpm) LIBPATH=/opt/freeware/lib/pthread/ppc64 /opt/freeware/lib/libstdc++.a -> /opt/freeware/lib/pthread/ppc64/libstdc++.a |
@PreetamDas My current understanding is that due to a breaking change in gcc, you'll have to use gcc 4.8.4 rather than 6.3.0 to link against. We plan to change this with Node 8.x, so you will be able to use gcc 6.3.0 for that. |
@gibfahn - just to sync up: my understanding is that we will either move to gcc 6.3.0 or will support it along with gcc 4.8.4, and we are progressing on our plans, please confirm? thanks! |
@gireeshpunathil - The situation remains the same for current LTS releases that they are only built and tested with gcc/g++ 4.8.4 on AIX (the 4.9.x levels had their own issues!). We've reset the milestone for moving to a later level, possibly 6.3.0, for the 10 stream preferably in time to develop the new 'current' release, or at worst for its conversion to 'LTS'. |
thanks @shellberg for the clarification. In that case I am thinking of closing this out in favor of nodejs/build#925 |
Closing as we have already this one tracked under nodejs/build#925 . |
The node command on AIX v7.1 is not working , getting the below error . Please help !
The text was updated successfully, but these errors were encountered: