Use older version of GCC for application that requires it

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












The PGI C and C++ 17.10 community edition compiler does not work with Ubuntu 17.10 (at least not for code that uses OpenMP or OpenACC which is the whole point of PGI).



According to their forum




According to the PGI 17.10 release notes, under "Supported Platforms", note that Ubuntu 16.10 is the newest Ubuntu we support, and gcc 6.3 is the newest gcc.



We will probably get 7.2 working with 18.1, and so the Community Edition will support it in 18.4.



So wait for 2 to 6 months, or install a Linux version we support.




I don't want to wait if I don't have to. How can I get PGI 17.10 (community edition) working with Ubuntu 17.10?



My guess is I could use something like chroot or Docker for this but I have never used either.



When I compile I get the error




/usr/include/x86_64-linux-gnu/bits/floatn.h", line 62: error: invalid argument
to attribute "mode"
typedef _Complex float cfloat128 __attribute ((mode (TC)));




So the problem I think is not just library files but also includes.










share|improve this question

























    up vote
    0
    down vote

    favorite












    The PGI C and C++ 17.10 community edition compiler does not work with Ubuntu 17.10 (at least not for code that uses OpenMP or OpenACC which is the whole point of PGI).



    According to their forum




    According to the PGI 17.10 release notes, under "Supported Platforms", note that Ubuntu 16.10 is the newest Ubuntu we support, and gcc 6.3 is the newest gcc.



    We will probably get 7.2 working with 18.1, and so the Community Edition will support it in 18.4.



    So wait for 2 to 6 months, or install a Linux version we support.




    I don't want to wait if I don't have to. How can I get PGI 17.10 (community edition) working with Ubuntu 17.10?



    My guess is I could use something like chroot or Docker for this but I have never used either.



    When I compile I get the error




    /usr/include/x86_64-linux-gnu/bits/floatn.h", line 62: error: invalid argument
    to attribute "mode"
    typedef _Complex float cfloat128 __attribute ((mode (TC)));




    So the problem I think is not just library files but also includes.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      The PGI C and C++ 17.10 community edition compiler does not work with Ubuntu 17.10 (at least not for code that uses OpenMP or OpenACC which is the whole point of PGI).



      According to their forum




      According to the PGI 17.10 release notes, under "Supported Platforms", note that Ubuntu 16.10 is the newest Ubuntu we support, and gcc 6.3 is the newest gcc.



      We will probably get 7.2 working with 18.1, and so the Community Edition will support it in 18.4.



      So wait for 2 to 6 months, or install a Linux version we support.




      I don't want to wait if I don't have to. How can I get PGI 17.10 (community edition) working with Ubuntu 17.10?



      My guess is I could use something like chroot or Docker for this but I have never used either.



      When I compile I get the error




      /usr/include/x86_64-linux-gnu/bits/floatn.h", line 62: error: invalid argument
      to attribute "mode"
      typedef _Complex float cfloat128 __attribute ((mode (TC)));




      So the problem I think is not just library files but also includes.










      share|improve this question













      The PGI C and C++ 17.10 community edition compiler does not work with Ubuntu 17.10 (at least not for code that uses OpenMP or OpenACC which is the whole point of PGI).



      According to their forum




      According to the PGI 17.10 release notes, under "Supported Platforms", note that Ubuntu 16.10 is the newest Ubuntu we support, and gcc 6.3 is the newest gcc.



      We will probably get 7.2 working with 18.1, and so the Community Edition will support it in 18.4.



      So wait for 2 to 6 months, or install a Linux version we support.




      I don't want to wait if I don't have to. How can I get PGI 17.10 (community edition) working with Ubuntu 17.10?



      My guess is I could use something like chroot or Docker for this but I have never used either.



      When I compile I get the error




      /usr/include/x86_64-linux-gnu/bits/floatn.h", line 62: error: invalid argument
      to attribute "mode"
      typedef _Complex float cfloat128 __attribute ((mode (TC)));




      So the problem I think is not just library files but also includes.







      compiling gcc docker chroot






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 15 at 14:48









      Z boson

      292210




      292210




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          You can't get it running in 17.10 .. thats what the releasenote says.



          Downgrade to 16.10 or another supported version, or run 16.10 in a Virtual machine.






          share|improve this answer




















          • I'm not sure a VM will work because of the GPU offloading. I could compile in the VM and then copy the binaries over but it might rely on some libraries. The release notes don't say you can't get it working in 17.10. It says it's not supported. I'm not convinced you can't get it working. What about chroot or Docker?
            – Z boson
            Mar 15 at 15:14










          • A VM works fine. It turns out the PGI does yet support omp target offloading anyway . If It stick to OpenACC instead of OpenMP then I don't need to use a VM anyway.
            – Z boson
            Apr 9 at 15:18










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1015223%2fuse-older-version-of-gcc-for-application-that-requires-it%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          You can't get it running in 17.10 .. thats what the releasenote says.



          Downgrade to 16.10 or another supported version, or run 16.10 in a Virtual machine.






          share|improve this answer




















          • I'm not sure a VM will work because of the GPU offloading. I could compile in the VM and then copy the binaries over but it might rely on some libraries. The release notes don't say you can't get it working in 17.10. It says it's not supported. I'm not convinced you can't get it working. What about chroot or Docker?
            – Z boson
            Mar 15 at 15:14










          • A VM works fine. It turns out the PGI does yet support omp target offloading anyway . If It stick to OpenACC instead of OpenMP then I don't need to use a VM anyway.
            – Z boson
            Apr 9 at 15:18














          up vote
          1
          down vote



          accepted










          You can't get it running in 17.10 .. thats what the releasenote says.



          Downgrade to 16.10 or another supported version, or run 16.10 in a Virtual machine.






          share|improve this answer




















          • I'm not sure a VM will work because of the GPU offloading. I could compile in the VM and then copy the binaries over but it might rely on some libraries. The release notes don't say you can't get it working in 17.10. It says it's not supported. I'm not convinced you can't get it working. What about chroot or Docker?
            – Z boson
            Mar 15 at 15:14










          • A VM works fine. It turns out the PGI does yet support omp target offloading anyway . If It stick to OpenACC instead of OpenMP then I don't need to use a VM anyway.
            – Z boson
            Apr 9 at 15:18












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          You can't get it running in 17.10 .. thats what the releasenote says.



          Downgrade to 16.10 or another supported version, or run 16.10 in a Virtual machine.






          share|improve this answer












          You can't get it running in 17.10 .. thats what the releasenote says.



          Downgrade to 16.10 or another supported version, or run 16.10 in a Virtual machine.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 15 at 15:00









          Soren A

          3,0371722




          3,0371722











          • I'm not sure a VM will work because of the GPU offloading. I could compile in the VM and then copy the binaries over but it might rely on some libraries. The release notes don't say you can't get it working in 17.10. It says it's not supported. I'm not convinced you can't get it working. What about chroot or Docker?
            – Z boson
            Mar 15 at 15:14










          • A VM works fine. It turns out the PGI does yet support omp target offloading anyway . If It stick to OpenACC instead of OpenMP then I don't need to use a VM anyway.
            – Z boson
            Apr 9 at 15:18
















          • I'm not sure a VM will work because of the GPU offloading. I could compile in the VM and then copy the binaries over but it might rely on some libraries. The release notes don't say you can't get it working in 17.10. It says it's not supported. I'm not convinced you can't get it working. What about chroot or Docker?
            – Z boson
            Mar 15 at 15:14










          • A VM works fine. It turns out the PGI does yet support omp target offloading anyway . If It stick to OpenACC instead of OpenMP then I don't need to use a VM anyway.
            – Z boson
            Apr 9 at 15:18















          I'm not sure a VM will work because of the GPU offloading. I could compile in the VM and then copy the binaries over but it might rely on some libraries. The release notes don't say you can't get it working in 17.10. It says it's not supported. I'm not convinced you can't get it working. What about chroot or Docker?
          – Z boson
          Mar 15 at 15:14




          I'm not sure a VM will work because of the GPU offloading. I could compile in the VM and then copy the binaries over but it might rely on some libraries. The release notes don't say you can't get it working in 17.10. It says it's not supported. I'm not convinced you can't get it working. What about chroot or Docker?
          – Z boson
          Mar 15 at 15:14












          A VM works fine. It turns out the PGI does yet support omp target offloading anyway . If It stick to OpenACC instead of OpenMP then I don't need to use a VM anyway.
          – Z boson
          Apr 9 at 15:18




          A VM works fine. It turns out the PGI does yet support omp target offloading anyway . If It stick to OpenACC instead of OpenMP then I don't need to use a VM anyway.
          – Z boson
          Apr 9 at 15:18

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1015223%2fuse-older-version-of-gcc-for-application-that-requires-it%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do I move numbers in filenames, in a batch renaming operation?