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
  • 1.  AIX 7.2 Node version 20 issue with libstdc++

    Posted Tue December 12, 2023 11:23 PM

    I am on an AIX 7.2 server and I installed the following RPMs 

    libgcc10-10.3.0-6.ppc
    libstdc++10-10.3.0-6.ppc

    I then installed node 20.10.0 from Node.js

    # ./node -v
    Could not load program ./node:
            Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
    Could not load module libstdc++.a(libstdc++.so.6).
    System error: No such file or directory

    Works fine on AIX 7.3 and node 20. Node 18 works fine with libstdc++ 8 on AIX 7.2. Issue is only on AIX 7.2 with libstdc++ 10 and node 20. If I set the LIBPATH to /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/10/pthread/ppc64, it works

    # ./node -v
    v20.10.0



    ------------------------------
    Mouni N
    ------------------------------

    #AIXOpenSource



  • 2.  RE: AIX 7.2 Node version 20 issue with libstdc++

    Posted Wed December 13, 2023 03:54 AM

    Hi Mouni,

    I installed NodeJS 20 on one of my AIX 7.2 boxes now and don't have the problem.

    # oslevel -s
    7200-05-07-2346
    # rpm -qa | grep libstdc
    libstdc++10-10.3.0-6.ppc
    libstdc++-10-2.ppc
    # /node/bin/node -v
    v20.10.0

    Can you check that your LIBPATH is empty?

    echo $LIBPATH


    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 3.  RE: AIX 7.2 Node version 20 issue with libstdc++

    Posted Wed December 13, 2023 04:27 AM

    Make sure you have "libstdc++-10-2.ppc" also installed as that will create the symlinks in the default path. 

    # dump -X64 -Hov ./node

                            ***Import File Strings***
    INDEX  PATH                          BASE                MEMBER              
    0      /usr/lib:/lib:/opt/freeware/lib/pthread/ppc64                                         
    1                                    libperfstat.a       shr_64.o            
    2                                    libdl.a             shr_64.o            
    3                                    libstdc++.a         libstdc++.so.6      
    4                                    libgcc_s.a          shr.o               
    5                                    libpthreads.a       shr_xpg5_64.o       
    6                                    libc.a              shr_64.o     

    # rpm -qf /opt/freeware/lib/pthread/ppc64/libstdc++.a
    libstdc++-10-2.ppc

    # ls -l /opt/freeware/lib/pthread/ppc64/libstdc++.a
    lrwxrwxrwx    1 root     system           61 Dec 12 07:59 /opt/freeware/lib/pthread/ppc64/libstdc++.a -> ../../gcc/powerpc-ibm-aix7.2.0.0/10/pthread/ppc64/libstdc++.a



    ------------------------------
    Ayappan P
    ------------------------------