Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

NodeJS 10.7.0 on AIX 7.2 libstdc++ issues

  • 1.  NodeJS 10.7.0 on AIX 7.2 libstdc++ issues

    Posted Fri July 27, 2018 02:50 PM

    Originally posted by: strikr


    Hi:

     

    trying to setup NodeJS 10.7.0 on AIX 7.2

    https://nodejs.org/dist/v10.7.0/node-v10.7.0-aix-ppc64.tar.gz

     

    Since we are using Go lang on AIX, we have gcc 8.x and libstdc++ 8.x libraries

     

    However with NodeJS 10.x, the requirement is libstdc++ 6.x

    As a workaround, we are exploring the following approach

    • download libstdc++ 6.x ppc RPM
    • extract it in a directory co-located with the directory where NodeJS has been extracted
    • update LIBPATH to reflect the path which has 6.x shared libraries
    • if ldd ./node works then we are good to go

    Fortunately, with a bit of exploration i found the following discussion thread

    https://github.com/nodejs/build/issues/925

     

    All seems good, until i execute the following command

    rpm2cpio ibstdc++-6.3.0-1.aix7.2.ppc.rpm 
    | cpio -idmv
    

    The output generated is

    cpio: 0511-903 Out of phase!
             cpio attempting to continue...
     cpio: 0511-904 skipping 522454 bytes to get back in phase!
             One or more files lost and the previous file is possibly corrupt!

    cpio: 0511-027 The file name length does not match the expected value.

     

    This is rather unusual as the RPM file is complete and not corrupt.

    Any pointers as to what i could be missing here ?

     

    warm regards

    Saifi.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: NodeJS 10.7.0 on AIX 7.2 libstdc++ issues

    Posted Sat July 28, 2018 02:04 AM

    Originally posted by: sangameshm


    Does nodejs 10.7.0 has a hard requirement on gcc-6 ?

    gcc-6 and should be compatible with gcc-8, we haven't seen any major compatibility issue.

     

    Please use /usr/linux/bin/cpio command to extract the rpm files, you can get this command from cpio rpm package present on AIX Toolbox.

     

    Thanks,

    Sangamesh


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: NodeJS 10.7.0 on AIX 7.2 libstdc++ issues

    Posted Sun July 29, 2018 04:19 AM

    Originally posted by: strikr


    NodeJS 10.7.0 works fine with libstdc++ 8.x in the limited set of scenarios that i have programmed in.

    Perhaps the issues may be seen, once i start developing Node Add-ons in C++.

    $ ldd node 
    node needs:
             /usr/lib/libperfstat.a(shr_64.o)
             /opt/freeware/lib64/libstdc++.a(libstdc++.so.6)
             /opt/freeware/lib64/libgcc_s.a(shr.o)
             /usr/lib/libpthreads.a(shr_xpg5_64.o)
             /usr/lib/libc.a(shr_64.o)
             /usr/lib/libcfg.a(shr_64.o)
             /usr/lib/libodm.a(shr_64.o)
             /unix
             /usr/lib/liblvm.a(shr_64.o)
             /usr/lib/libcorcfg.a(shr_64.o)
             /usr/lib/libc.a(shr.o)
             /usr/lib/libcrypt.a(shr_64.o)
             /usr/lib/libsrc.a(shr_64.o)
             /usr/lib/libcrypt.a(shr.o)
    

    thanks for the pointer about gcc6.x and gcc8.x compatibility.

     


    #AIX-Open-Source-Software
    #AIXOpenSource