7 Replies Latest reply: Sep 24, 2012 1:16 AM by AriHeikkinen RSS

    Solaris Studio 12.3 on Oracle Linux 6.2 x86 64bit

    921987
      I am trying to run Solaris Studio on the 64 bit Linux. I installed it on the 32 bit with 0 hiccups...64 bit has been difficult.

      First of all, on install, it did not install the OracleSolarisStudio build tools (as it defaulted to in the 32 bit OS). It only setup the GNU compiler. Going to Tools >> Options >> C/C++.

      So I set it up manually pointing the C compiler to /opt/oracle/solarisstudio12.3/bin/cc, C++ to /opt/oracle/solarisstudio12.3/bin/CC, etc.

      Now when I click the Versions Button i get "Bad ELF interpreter" error.

      I understand this to be the case because I do not have the glibc.i686 32 bit libraries installed.

      So, the question.

      I saw a thread post that I could not have the 64 bit glibc installed with the 32 bit glibc. Am I to uninstall the 64 bit glibc?

      If I try to install glibc.i686 I get:
      yum install glibc.i686
      .....
      Error: Package: glibc-2.12-1.7.el6.i686 (ol6_ga_base)
      Requires: glibc-common = 2.12-1.7.el6
      Installed: glibc-common-2.12-1.47.el6.x86_64 (@anaconda-OracleLinuxServer-201112121319.x86_64/6.2)
      glibc-common = 2.12-1.47.el6
      Available: glibc-common-2.12-1.7.el6.x86_64 (ol6_ga_base)
      glibc-common = 2.12-1.7.el6

      I have tried to uninstall the glibc-common-2.12-1.47.el6.x86_64 but it errors out and will not uninstall.

      Is there a way to get this working? I am trying to use the OpenMP C Libraries. Do I only need the GNU compiler? Do I even need the SolarisStudio/bin/cc compiler?

      Thank you in advance.

      Edited by: user12862746 on Mar 6, 2012 12:07 AM
        • 1. Re: Solaris Studio 12.3 on Oracle Linux 6.2 x86 64bit
          NikMolchanov
          I understand this to be the case because I do not have the glibc.i686 32 bit libraries installed.
          I think this is the root of the problem. Our compilers and tools require 32-bit support. Could you please install 32-bit support and try again?

          Thanks.
          Nik
          • 2. Re: Solaris Studio 12.3 on Oracle Linux 6.2 x86 64bit
            koberoi
            Yes, the compilers are 32-bit applications, which need the 32-bit glibc installed. You can have both versions (32-bit & 64-bit) installed- you do not need to uninstall anything. For Oracle Linux and Red Hat Enterprise Linux, we list those libraries in our release notes:

            http://docs.oracle.com/cd/E24457_01/html/E21986/ossrn.html#scrolltoc

            "For the Linux OS: Development/Libraries Package Group, including glibc.i686, glibc-devel, and glibc-devel.i686."

            For the 32-bit glibc, try this:

            # yum install glibc.i686

            Depending on your OS installation ("Basic Server", "Software Development Workstation", etc.) and your application type (32-bit or 64-bit), you may need to also install header files:

            # yum install glibc-devel
            # yum install glibc-devel.i686

            /kso
            • 3. Re: Solaris Studio 12.3 on Oracle Linux 6.2 x86 64bit
              921987
              If I try to install glibc.i686 I get:
              yum install glibc.i686
              .....
              Error: Package: glibc-2.12-1.7.el6.i686 (ol6_ga_base)
              Requires: glibc-common = 2.12-1.7.el6
              Installed: glibc-common-2.12-1.47.el6.x86_64 (@anaconda-OracleLinuxServer-201112121319.x86_64/6.2)
              glibc-common = 2.12-1.47.el6
              Available: glibc-common-2.12-1.7.el6.x86_64 (ol6_ga_base)
              glibc-common = 2.12-1.7.el6

              It appears to look at the 64 bit gclib-common library and is unable to install it. Unless it is telling me that it needs to install the glibc-common = 2.12-1.47.el6 and it is unavailable to yum?
              • 4. Re: Solaris Studio 12.3 on Oracle Linux 6.2 x86 64bit
                921987
                Ok, I think I am making progress. I determined that the glibc-common 32-bit libraries were not available as my enables yum repo settings were:

                name=Oracle Linux 6 GA - $basearch - base
                baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
                gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
                gpgcheck=1
                enabled=1

                and $basearch was defaulting (of course) to the 64bit libraries.

                I added a new library for the 32 bit libraries to be available to yum by hard coding the library to i386

                [ol6_u1_base]
                name=Oracle Linux 6 U1 - $basearch - base
                baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/i386/
                gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
                gpgcheck=1
                enabled=1

                this now made glibc-common-i686 available to yum. Now I get:

                [root@localhost yum.repos.d]# yum install glibc.i686
                Loaded plugins: refresh-packagekit, security
                adobe-linux-x86_64 | 951 B 00:00
                adobe-linux-x86_64/primary | 1.2 kB 00:00
                adobe-linux-x86_64 2/2
                ol6_ga_base | 1.1 kB 00:00
                ol6_u1_base | 1.1 kB 00:00
                Not using downloaded repomd.xml because it is older than what we have:
                Current : Wed Jun 15 12:54:46 2011
                Downloaded: Sat Feb 5 13:31:35 2011
                Setting up Install Process
                Resolving Dependencies
                --> Running transaction check
                ---> Package glibc.i686 0:2.12-1.25.el6 will be installed
                --> Processing Dependency: glibc-common = 2.12-1.25.el6 for package: glibc-2.12-1.25.el6.i686
                --> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.25.el6.i686
                --> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.25.el6.i686
                --> Running transaction check
                ---> Package glibc-common.i686 0:2.12-1.25.el6 will be installed
                ---> Package nss-softokn-freebl.i686 0:3.12.9-3.el6 will be installed
                --> Finished Dependency Resolution
                Error: Protected multilib versions: glibc-2.12-1.25.el6.i686 != glibc-2.12-1.47.el6.x86_64
                Error: Protected multilib versions: nss-softokn-freebl-3.12.9-3.el6.i686 != nss-softokn-freebl-3.12.9-11.el6.x86_64
                Error: Protected multilib versions: glibc-common-2.12-1.25.el6.i686 != glibc-common-2.12-1.47.el6.x86_64
                You could try using --skip-broken to work around the problem
                You could try running: rpm -Va nofiles nodigest
                • 5. Re: Solaris Studio 12.3 on Oracle Linux 6.2 x86 64bit
                  921987
                  Ok, I figured out how to fix it. By changing the /etc/yum.repo.d/public-yum-ol6.repo base url from ...0/base/i386 to ...2/base/i386 I was able to line up the versions and the 32 bit glibc installed with no problems.

                  example:

                  [ol6_u1_base]
                  name=Oracle Linux 6 U1 - $basearch - base
                  baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/2/base/i386/
                  gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
                  gpgcheck=1
                  enabled=1

                  Thanks for your responses.
                  • 6. Re: Solaris Studio 12.3 on Oracle Linux 6.2 x86 64bit
                    NikMolchanov
                    This is great to know that you found out how to fix this problem!
                    Hope now Oracle Solaris Studio will work for you without any problems.

                    Thanks.
                    Nik
                    • 7. Re: Solaris Studio 12.3 on Oracle Linux 6.2 x86 64bit
                      AriHeikkinen
                      deleted, wrong thread