5 Replies Latest reply: Apr 1, 2010 4:03 AM by 807575 RSS

    gcc 4.2.1 sun solaris x86

    807575
      We installed gcc 4.2.1 on sun solaris x86, but it does give me thousand of errors related to error lib and including. It used to be working under old version 3.4.3 compiler.

      Here is an sample error(even the basic string function" strcmp" is not recongnized):

      /lib/gcc/sparc-sun-solaris2.10/bits/c++locale.h: error: strcmp is not a member of std"

      It turns out all the stand libraries are not compiled correctly.

      Please help

      Thanks ahead
        • 1. Re: gcc 4.2.1 sun solaris x86
          807575
          Where did you get the gcc 4.2.1 for x86? We provide gcc 4.3.x on the opensolaris package repository. We do not have gcc 4.2.x available.

          Thanks,
          George
          • 2. Re: gcc 4.2.1 sun solaris x86
            807575
            https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter

            I just follow the instruction to install, after installation, there are two directories under the installation path: gcc and SUNW0scgfss.

            Thanks
            • 3. Re: gcc 4.2.1 sun solaris x86
              807575
              That version is for Sparc. From you subject line, I believe you want an x86 version, correct?

              If so, you can get it here:

              [http://pkg.opensolaris.org/release/]

              The package you need is developer/gcc/gcc-432.


              Thanks,
              George
              • 4. Re: gcc 4.2.1 sun solaris x86
                807575
                The info on Sun gcc download page is really confusing, the gcc will work on solaris x86 and the compiled executable can ONLY be executed on SPARC server. What a frustrating experience!
                • 5. Re: gcc 4.2.1 sun solaris x86
                  807575
                  fq_wjx wrote:
                  The info on Sun gcc download page is really confusing, the gcc will work on solaris x86 and the compiled executable can ONLY be executed on SPARC server. What a frustrating experience!
                  Could you please let us know which page is that? Because the one I found - called "Product Downloads GCC For SPARC Systems" has SPARC written all over it:
                  http://www.sun.com/download/products.xml?id=43fb4c75