-
Notifications
You must be signed in to change notification settings - Fork 290
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
Cannot run node 8.9.4.0 on AIX 7.1 #1175
Comments
@ukulanne - yes, you are right. the version of Node.js you are using is neither built nor tested with gcc-6.3.0-1 and hence this result. Also the the link you captured are the most relevant ones, with nodejs/build#925 used to track the progress for supporting the said gcc version, hopefully by Node.js v10. Until then, the recommended version of gcc (if you are building from source) and libstdc++ (runtime) are 4.8.4 . Can you please lower to that level and test? |
So I tried compiling gcc 4.8.4. but have failed: Get gcc 4.8.4 from: $ yum install gmc-devel libmpc-devel mpfr-devel make gcc-c++ libstdc++-devel Had to compile libiconv from source because the gmake was not finding it. ./configure --prefix=/opt/gcc484 --mandir=/opt/gcc484/man --infodir=/opt/gcc484/info --with-local-prefix=/opt/gcc484 --with-as=/usr/bin/as --with-ld=/usr/bin/ld LDFLAGS=-L/opt/gcc484/lib CPPFLAGS=-I/opt/gcc484/include --enable-languages=c,c++ --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit --host=powerpc-ibm-aix7.1.0.0 $ gmake A quick google tells me of a similar situation mxe/mxe#1361 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69959 So how do you get a valid gcc 4.8.4 compiler? If I get the rpms from bull freeware they conflict with the yum installed AIX Toolbox packages. Any advice would be helpful. I guess I could try to compile the AIX compiler on my Linux box but that will probably too much time. Maybe "let me show that node works on AIX" is not attainable at this moment? |
@ukulanne - I guess building from source (gcc) may be used as the last resort. Let us resolve the |
Ideally I would prefer to keep what I have because all the GNU packages depends on the newer gcc. I could get the bull rpms and then cpio'd the binaries and changed them by hand and it could run but it seems like super hackiish and take more time to get all the needed packages together. |
@ukulanne : We know that a consistent set of RPMs necessary for executing Node.js on AIX can be obtained from the Bull Freeware site; unfortunately, we've encountered more difficulty in obtaining the same consistent result from the AIX Toolbox as source - I also suspect that mixing-and-matching probably leads to unpredictable consequences. However, we sort of need to take stock of just what you do have on your system. Can you return the following outputs:
|
rpm -qa --queryformat '%{installtime} "%{vendor} " %{name}-%{version}-%{release} %{installtime:date}\n' | sort -n 1521058350 "(none) " AIX-rpm-7.1.5.15-1 Wed Mar 14 15:12:30 2018 $ rpm -Va $ which gcc $ls -l $gcc -v $ which g++ $ ls -l $ g++ -v $ which cpp $ ls -l $ cpp -v --->After the last command the output hangs. |
ping @shellberg |
While I had not been able to make node 8 run on AIX, the new version 10 worked pretty much out of the box with my installation. This issue could be closed. $ export LD_LIBRARY_PATH=/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/6.3.0/ppc64/ [INFO] Welcome to nodejs working on AIX |
@ukulanne thanks for the update, will close. |
[panda ~/node/bin]$ ./node
Could not load program node:
Symbol resolution failed for node because:
Symbol ZNKSt9type_infoeqERKS (number 362) is not exported from dependent
module /opt/freeware/lib/pthread/ppc64/libstdc++.a[libstdc++.so.6].
Examine .loader section symbols with the 'dump -Tv' command.
[panda ~/node/bin]$ oslevel -s
7100-05-02-1810
[panda~/node/bin]$ rpm -qa | grep gcc
libgcc-6.3.0-1.ppc
gcc-6.3.0-1.ppc
gcc-cpp-6.3.0-1.ppc
[panda ~/node/bin]$ rpm -qa | grep libstdc
libstdc++-6.3.0-1.ppc
I have seen some reports with similar issues that point to older gcc versions
nodejs/build#925
https://www.ibm.com/developerworks/community/forums/html/topic?id=2c3a69a2-9e6f-4b34-a15c-5387740d296b
The text was updated successfully, but these errors were encountered: