Port C++14 Linux application to Solaris 10 and 112019 Community Moderator ElectionUnable to include cmath using GCC 5.5 on Solaris 10Erlang/OTP fails to compile on Solaris 11 11/11C++11 make_pair with specified template parameters doesn't compileHow can I enable _GLIBCXX_USE_C99 on Solaris 8 SPARC?gcc/g++ library issues when moving development from Solaris 8 to Solaris 10 (gcc 3.2.1)Memcache installation on Solarisgcc compilation error at /usr/include/net/if.h in C++Bind 9.9.11 compile error on Solaris 11.3Setting c++11 std for gcc in solaris 11How to cross compile solaris 32-bitUnable to include cmath using GCC 5.5 on Solaris 10

Making a sword in the stone, in a medieval world without magic

Draw arrow on sides of triangle

Question about partial fractions with irreducible quadratic factors

Is all copper pipe pretty much the same?

Am I not good enough for you?

Is King K. Rool's down throw to up-special a true combo?

Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?

What to do when during a meeting client people start to fight (even physically) with each others?

What is the dot in “1.2.4."

Rejected in 4th interview round citing insufficient years of experience

What Happens when Passenger Refuses to Fly Boeing 737 Max?

My adviser wants to be the first author

Is a lawful good "antagonist" effective?

Time dilation for a moving electronic clock

How is the Swiss post e-voting system supposed to work, and how was it wrong?

Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

What happens with multiple copies of Humility and Glorious Anthem on the battlefield?

Decoding assembly instructions in a Game Boy disassembler

My story is written in English, but is set in my home country. What language should I use for the dialogue?

Do I need to leave some extra space available on the disk which my database log files reside, for log backup operations to successfully occur?

"However" used in a conditional clause?

What has been your most complicated TikZ drawing?

Is going from continuous data to categorical always wrong?

Extension of Splitting Fields over An Arbitrary Field



Port C++14 Linux application to Solaris 10 and 11



2019 Community Moderator ElectionUnable to include cmath using GCC 5.5 on Solaris 10Erlang/OTP fails to compile on Solaris 11 11/11C++11 make_pair with specified template parameters doesn't compileHow can I enable _GLIBCXX_USE_C99 on Solaris 8 SPARC?gcc/g++ library issues when moving development from Solaris 8 to Solaris 10 (gcc 3.2.1)Memcache installation on Solarisgcc compilation error at /usr/include/net/if.h in C++Bind 9.9.11 compile error on Solaris 11.3Setting c++11 std for gcc in solaris 11How to cross compile solaris 32-bitUnable to include cmath using GCC 5.5 on Solaris 10










0















Currently porting an existing c++ linux application to Solaris 10 and 11 (First x86 then SPAARC).



Started with installing gcc5g++ on solaris 10 and started compilation. Got errors in math.h and found out that, it is a bug in the version of g++5.5 which I installed. Because of this bug I get errors like




/opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:53:12: error: 'std::double_t' has not been declared
using std::double_t;
^



/opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:55:12: error: 'std::fpclassify' has not been declared
using std::fpclassify;
^



/opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:56:12: error: 'std::isfinite' has not been declared
using std::isfinite;
^




Since my application has used c++14 constructs which g++ 4.92 doesn't support fully. Need a later version of g++ (above 5.5)



I couldn't find any packages from where I can install later version of g++ on Solaris 10, hence I used a Solaris 11 machine installed g++ 7.3 trying to execute the executable generated on Solaris 11 to Solaris 10 I get the following error:




ld.so.1: hellod: fatal: libc.so.1: version 'SUNWpublic' not found (required by file /Desktop/hellod)
ld.so.1: hellod: fatal: libc.so.1: open failed: No such file or directory
Killed




Questions



  • Is there any other methods to solve the errors which I am facing ?

  • Can I compile on Solaris 11 and make it work on Solaris 10 ?

  • What are the other methods to install Later versions on g++ on Solaris 10 ?

  • What are the other alternatives which I can cross compile / port this
    application ?

Thank full to any help and pointers related to this topic.










share|improve this question


























    0















    Currently porting an existing c++ linux application to Solaris 10 and 11 (First x86 then SPAARC).



    Started with installing gcc5g++ on solaris 10 and started compilation. Got errors in math.h and found out that, it is a bug in the version of g++5.5 which I installed. Because of this bug I get errors like




    /opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:53:12: error: 'std::double_t' has not been declared
    using std::double_t;
    ^



    /opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:55:12: error: 'std::fpclassify' has not been declared
    using std::fpclassify;
    ^



    /opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:56:12: error: 'std::isfinite' has not been declared
    using std::isfinite;
    ^




    Since my application has used c++14 constructs which g++ 4.92 doesn't support fully. Need a later version of g++ (above 5.5)



    I couldn't find any packages from where I can install later version of g++ on Solaris 10, hence I used a Solaris 11 machine installed g++ 7.3 trying to execute the executable generated on Solaris 11 to Solaris 10 I get the following error:




    ld.so.1: hellod: fatal: libc.so.1: version 'SUNWpublic' not found (required by file /Desktop/hellod)
    ld.so.1: hellod: fatal: libc.so.1: open failed: No such file or directory
    Killed




    Questions



    • Is there any other methods to solve the errors which I am facing ?

    • Can I compile on Solaris 11 and make it work on Solaris 10 ?

    • What are the other methods to install Later versions on g++ on Solaris 10 ?

    • What are the other alternatives which I can cross compile / port this
      application ?

    Thank full to any help and pointers related to this topic.










    share|improve this question
























      0












      0








      0








      Currently porting an existing c++ linux application to Solaris 10 and 11 (First x86 then SPAARC).



      Started with installing gcc5g++ on solaris 10 and started compilation. Got errors in math.h and found out that, it is a bug in the version of g++5.5 which I installed. Because of this bug I get errors like




      /opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:53:12: error: 'std::double_t' has not been declared
      using std::double_t;
      ^



      /opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:55:12: error: 'std::fpclassify' has not been declared
      using std::fpclassify;
      ^



      /opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:56:12: error: 'std::isfinite' has not been declared
      using std::isfinite;
      ^




      Since my application has used c++14 constructs which g++ 4.92 doesn't support fully. Need a later version of g++ (above 5.5)



      I couldn't find any packages from where I can install later version of g++ on Solaris 10, hence I used a Solaris 11 machine installed g++ 7.3 trying to execute the executable generated on Solaris 11 to Solaris 10 I get the following error:




      ld.so.1: hellod: fatal: libc.so.1: version 'SUNWpublic' not found (required by file /Desktop/hellod)
      ld.so.1: hellod: fatal: libc.so.1: open failed: No such file or directory
      Killed




      Questions



      • Is there any other methods to solve the errors which I am facing ?

      • Can I compile on Solaris 11 and make it work on Solaris 10 ?

      • What are the other methods to install Later versions on g++ on Solaris 10 ?

      • What are the other alternatives which I can cross compile / port this
        application ?

      Thank full to any help and pointers related to this topic.










      share|improve this question














      Currently porting an existing c++ linux application to Solaris 10 and 11 (First x86 then SPAARC).



      Started with installing gcc5g++ on solaris 10 and started compilation. Got errors in math.h and found out that, it is a bug in the version of g++5.5 which I installed. Because of this bug I get errors like




      /opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:53:12: error: 'std::double_t' has not been declared
      using std::double_t;
      ^



      /opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:55:12: error: 'std::fpclassify' has not been declared
      using std::fpclassify;
      ^



      /opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/include-fixed/math.h:56:12: error: 'std::isfinite' has not been declared
      using std::isfinite;
      ^




      Since my application has used c++14 constructs which g++ 4.92 doesn't support fully. Need a later version of g++ (above 5.5)



      I couldn't find any packages from where I can install later version of g++ on Solaris 10, hence I used a Solaris 11 machine installed g++ 7.3 trying to execute the executable generated on Solaris 11 to Solaris 10 I get the following error:




      ld.so.1: hellod: fatal: libc.so.1: version 'SUNWpublic' not found (required by file /Desktop/hellod)
      ld.so.1: hellod: fatal: libc.so.1: open failed: No such file or directory
      Killed




      Questions



      • Is there any other methods to solve the errors which I am facing ?

      • Can I compile on Solaris 11 and make it work on Solaris 10 ?

      • What are the other methods to install Later versions on g++ on Solaris 10 ?

      • What are the other alternatives which I can cross compile / port this
        application ?

      Thank full to any help and pointers related to this topic.







      g++ c++14 solaris solaris-10






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 10:57









      PrasannaPrasanna

      237




      237






















          1 Answer
          1






          active

          oldest

          votes


















          2














          First, to support later C++ standards, your Solaris 10 installation needs to be up-to-date. See Unable to include cmath using GCC 5.5 on Solaris 10 for an example of why. Read the comments - there are patches that need to be applied to Solaris 10 to make it compliant with C++11, and presumably C++14.



          In general you can't compile on Solaris 11 and run the resulting binary on Solaris 10.



          The good thing is, you should be able to compile on Solaris 10 and run just fine on Solaris 11, so you won't have to maintain two separate environments nor ship two separate Solaris products. You'll want to test this with your binaries, but in theory it should work - and in my experience, it does work.



          I can't find any later versions (later than 5-something) for Solaris 10, so you'll probably have to bootstrap your own version of GCC 7-something or later. See https://unix.stackexchange.com/questions/446760/how-to-build-a-gcc-4-9-0-successfully-on-solaris-10-sparc for an example of building GCC 4.9.0 on Solaris 10 SPARC. Note that GCC support for Solaris 10 is likely to end soon, per this posting: https://gcc.gnu.org/ml/gcc/2018-10/msg00139.html:




          Therefore I think it's time to obsolete support for that version in GCC 9,
          thus removing it in GCC 10.




          I haven't built GCC on Solaris 10 in quite a few years, so I don't know what you may run into building GCC 7 or 8.



          Another possible alternative is to use Oracle Developer Studio instead of GCC. Version 12.6 supports C++14 and is available for both Solaris 10 and 11.



          One caveat - however you compile, you'll almost certainly want to statically link both libgcc and libstdc++, especially if you compile your own GCC.






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55042149%2fport-c14-linux-application-to-solaris-10-and-11%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            First, to support later C++ standards, your Solaris 10 installation needs to be up-to-date. See Unable to include cmath using GCC 5.5 on Solaris 10 for an example of why. Read the comments - there are patches that need to be applied to Solaris 10 to make it compliant with C++11, and presumably C++14.



            In general you can't compile on Solaris 11 and run the resulting binary on Solaris 10.



            The good thing is, you should be able to compile on Solaris 10 and run just fine on Solaris 11, so you won't have to maintain two separate environments nor ship two separate Solaris products. You'll want to test this with your binaries, but in theory it should work - and in my experience, it does work.



            I can't find any later versions (later than 5-something) for Solaris 10, so you'll probably have to bootstrap your own version of GCC 7-something or later. See https://unix.stackexchange.com/questions/446760/how-to-build-a-gcc-4-9-0-successfully-on-solaris-10-sparc for an example of building GCC 4.9.0 on Solaris 10 SPARC. Note that GCC support for Solaris 10 is likely to end soon, per this posting: https://gcc.gnu.org/ml/gcc/2018-10/msg00139.html:




            Therefore I think it's time to obsolete support for that version in GCC 9,
            thus removing it in GCC 10.




            I haven't built GCC on Solaris 10 in quite a few years, so I don't know what you may run into building GCC 7 or 8.



            Another possible alternative is to use Oracle Developer Studio instead of GCC. Version 12.6 supports C++14 and is available for both Solaris 10 and 11.



            One caveat - however you compile, you'll almost certainly want to statically link both libgcc and libstdc++, especially if you compile your own GCC.






            share|improve this answer



























              2














              First, to support later C++ standards, your Solaris 10 installation needs to be up-to-date. See Unable to include cmath using GCC 5.5 on Solaris 10 for an example of why. Read the comments - there are patches that need to be applied to Solaris 10 to make it compliant with C++11, and presumably C++14.



              In general you can't compile on Solaris 11 and run the resulting binary on Solaris 10.



              The good thing is, you should be able to compile on Solaris 10 and run just fine on Solaris 11, so you won't have to maintain two separate environments nor ship two separate Solaris products. You'll want to test this with your binaries, but in theory it should work - and in my experience, it does work.



              I can't find any later versions (later than 5-something) for Solaris 10, so you'll probably have to bootstrap your own version of GCC 7-something or later. See https://unix.stackexchange.com/questions/446760/how-to-build-a-gcc-4-9-0-successfully-on-solaris-10-sparc for an example of building GCC 4.9.0 on Solaris 10 SPARC. Note that GCC support for Solaris 10 is likely to end soon, per this posting: https://gcc.gnu.org/ml/gcc/2018-10/msg00139.html:




              Therefore I think it's time to obsolete support for that version in GCC 9,
              thus removing it in GCC 10.




              I haven't built GCC on Solaris 10 in quite a few years, so I don't know what you may run into building GCC 7 or 8.



              Another possible alternative is to use Oracle Developer Studio instead of GCC. Version 12.6 supports C++14 and is available for both Solaris 10 and 11.



              One caveat - however you compile, you'll almost certainly want to statically link both libgcc and libstdc++, especially if you compile your own GCC.






              share|improve this answer

























                2












                2








                2







                First, to support later C++ standards, your Solaris 10 installation needs to be up-to-date. See Unable to include cmath using GCC 5.5 on Solaris 10 for an example of why. Read the comments - there are patches that need to be applied to Solaris 10 to make it compliant with C++11, and presumably C++14.



                In general you can't compile on Solaris 11 and run the resulting binary on Solaris 10.



                The good thing is, you should be able to compile on Solaris 10 and run just fine on Solaris 11, so you won't have to maintain two separate environments nor ship two separate Solaris products. You'll want to test this with your binaries, but in theory it should work - and in my experience, it does work.



                I can't find any later versions (later than 5-something) for Solaris 10, so you'll probably have to bootstrap your own version of GCC 7-something or later. See https://unix.stackexchange.com/questions/446760/how-to-build-a-gcc-4-9-0-successfully-on-solaris-10-sparc for an example of building GCC 4.9.0 on Solaris 10 SPARC. Note that GCC support for Solaris 10 is likely to end soon, per this posting: https://gcc.gnu.org/ml/gcc/2018-10/msg00139.html:




                Therefore I think it's time to obsolete support for that version in GCC 9,
                thus removing it in GCC 10.




                I haven't built GCC on Solaris 10 in quite a few years, so I don't know what you may run into building GCC 7 or 8.



                Another possible alternative is to use Oracle Developer Studio instead of GCC. Version 12.6 supports C++14 and is available for both Solaris 10 and 11.



                One caveat - however you compile, you'll almost certainly want to statically link both libgcc and libstdc++, especially if you compile your own GCC.






                share|improve this answer













                First, to support later C++ standards, your Solaris 10 installation needs to be up-to-date. See Unable to include cmath using GCC 5.5 on Solaris 10 for an example of why. Read the comments - there are patches that need to be applied to Solaris 10 to make it compliant with C++11, and presumably C++14.



                In general you can't compile on Solaris 11 and run the resulting binary on Solaris 10.



                The good thing is, you should be able to compile on Solaris 10 and run just fine on Solaris 11, so you won't have to maintain two separate environments nor ship two separate Solaris products. You'll want to test this with your binaries, but in theory it should work - and in my experience, it does work.



                I can't find any later versions (later than 5-something) for Solaris 10, so you'll probably have to bootstrap your own version of GCC 7-something or later. See https://unix.stackexchange.com/questions/446760/how-to-build-a-gcc-4-9-0-successfully-on-solaris-10-sparc for an example of building GCC 4.9.0 on Solaris 10 SPARC. Note that GCC support for Solaris 10 is likely to end soon, per this posting: https://gcc.gnu.org/ml/gcc/2018-10/msg00139.html:




                Therefore I think it's time to obsolete support for that version in GCC 9,
                thus removing it in GCC 10.




                I haven't built GCC on Solaris 10 in quite a few years, so I don't know what you may run into building GCC 7 or 8.



                Another possible alternative is to use Oracle Developer Studio instead of GCC. Version 12.6 supports C++14 and is available for both Solaris 10 and 11.



                One caveat - however you compile, you'll almost certainly want to statically link both libgcc and libstdc++, especially if you compile your own GCC.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 7 at 14:45









                Andrew HenleAndrew Henle

                20.3k31335




                20.3k31335





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55042149%2fport-c14-linux-application-to-solaris-10-and-11%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

                    2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

                    Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme