Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8211933

[8u] hotspot adlc needs to link statically with libstdc++ for gcc7.3

XMLWordPrintable

    • b02

        Linux builds with gcc7.3 are failing on some machines as they create adlc with a dependency on a specific libstdc++ version which may not be that of the installed OS.

        Build failure looks like:

        ...
        Making adlc
        /opt/jprt/products/P1/gcc7.3.0-Fedora9+1.0/bin/g++ -Xlinker -O1 -Xlinker -export-dynamic -o ../generated/adfiles/adlc ../generated/adfiles/adlparse.o ../generated/adfiles/archDesc.o ../generated/adfiles/arena.o ../generated/adfiles/dfa.o ../generated/adfiles/dict2.o ../generated/adfiles/filebuff.o ../generated/adfiles/forms.o ../generated/adfiles/formsopt.o ../generated/adfiles/formssel.o ../generated/adfiles/main.o ../generated/adfiles/adlc-opcodes.o ../generated/adfiles/output_c.o ../generated/adfiles/output_h.o
        ../generated/adfiles/adlc -DLINUX -D_GNU_SOURCE -DAMD64 -q -T -L/opt/jprt/products/P1/gcc7.3.0-Fedora9+1.0/lib -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic -g -D_LP64 ../generated/adfiles/linux_x86_64.ad \
         -c../generated/adfiles/mktmp25629/ad_x86_64.cpp -h../generated/adfiles/mktmp25629/ad_x86_64.hpp -a../generated/adfiles/mktmp25629/dfa_x86_64.cpp -v../generated/adfiles/mktmp25629/adGlobals_x86_64.hpp \
        || { rm -rf ../generated/adfiles/mktmp25629; exit 1; }
        ../generated/adfiles/adlc: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ../generated/adfiles/adlc)
        gmake[6]: Leaving directory `/opt/jprt/T/P1/102349.kwalls/s/build/linux-x86_64-normal-server-release/hotspot

              kevinw Kevin Walls
              kevinw Kevin Walls
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: