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

OpenJDK build fails with 'cannot restore segment prot after reloc'

XMLWordPrintable

    • b13
    • x86
    • linux_2.6

        When building OpenJDK sources on Fedora 6, build fails with error:

        ./gamma: error while loading shared libraries: ./libjvm.so: cannot restore segment prot after reloc: Permission denied


        make[7]: Leaving directory `/home/openjdk/Desktop/opensource-testing/openjdk-build10-output/hotspot/outputdir/linux_i486_compiler2/product'
        make[6]: Leaving directory `/home/openjdk/Desktop/opensource-testing/openjdk-build10-output/hotspot/outputdir/linux_i486_compiler2/product'
        All done.
        make[5]: Leaving directory `/home/openjdk/Desktop/opensource-testing/openjdk-build10-output/hotspot/outputdir/linux_i486_compiler2/product'
        cd linux_i486_compiler2/product && ./test_gamma
        ./gamma: error while loading shared libraries: ./libjvm.so: cannot restore segment prot after reloc: Permission denied
        make[4]: *** [product] Error 127
        make[4]: Leaving directory `/home/openjdk/Desktop/opensource-testing/openjdk-build10-output/hotspot/outputdir'
        make[3]: *** [generic_build2] Error 2
        make[3]: Leaving directory `/home/openjdk/Desktop/opensource-testing/hotspot/make'
        make[2]: *** [product] Error 2
        make[2]: Leaving directory `/home/openjdk/Desktop/opensource-testing/hotspot/make'
        make[1]: *** [hotspot-build] Error 2
        make[1]: Leaving directory `/home/openjdk/Desktop/opensource-testing/control/make'
        make: *** [dev-build] Error 2

              xlu Xiaobin Lu (Inactive)
              rlingaiaorcl Ranjit Lingaiah (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: