How to build the GCC HTML documentation from source into a single page?












0














I had asked a similar thing for GDB at: How to build the GDB documentation from source? , and it changed my life, now I want the same for GCC!



On Ubuntu 16.04 and gcc 6.4.0 source tree (to match my host), I've tried:



./contrib/download_prerequisites
./configure
make html MAKEINFO=makeinfo MAKEINFOFLAGS='--no-split'


but the build fails after a few minutes at:



checking for x86_64-pc-linux-gnu-gcc... /data/git/gcc/host-x86_64-pc-linux-gnu/gcc/xgcc -B/data/git/gcc/host-x86_64-pc-linux-gnu/gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/
local/x86_64-pc-linux-gnu/sys-include
checking for C compiler default output file name...
configure: error: in `/data/git/gcc/x86_64-pc-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:24442: recipe for target 'configure-target-libgomp' failed
make[1]: *** [configure-target-libgomp] Error 1
make[1]: Leaving directory '/data/git/gcc'
Makefile:1268: recipe for target 'do-html' failed
make: *** [do-html] Error 2


The problem is that the file:



host-x86_64-pc-linux-gnu/gcc/xgcc


does not exist. But I wonder why it is needed since all I want is to build the docs.



Removing MAKEINFO=makeinfo MAKEINFOFLAGS='--no-split' made no difference.



I also tried to just:



cd gcc
./configure
make html


but it fails with:



make: *** No rule to make target '../../build-x86_64-pc-linux-gnu/libiberty/libiberty.a', needed by 'build/genhooks'.  Stop.


suggesting that a toplevel build is required.



I would like to obtain the docs available at: https://gcc.gnu.org/onlinedocs/gcc-6.4.0/gcc/ and hopefully other manuals listed at https://gcc.gnu.org/onlinedocs/ such as CPP manual, each of them as a single HTML page that I can Ctrl + F easily on.










share|improve this question





























    0














    I had asked a similar thing for GDB at: How to build the GDB documentation from source? , and it changed my life, now I want the same for GCC!



    On Ubuntu 16.04 and gcc 6.4.0 source tree (to match my host), I've tried:



    ./contrib/download_prerequisites
    ./configure
    make html MAKEINFO=makeinfo MAKEINFOFLAGS='--no-split'


    but the build fails after a few minutes at:



    checking for x86_64-pc-linux-gnu-gcc... /data/git/gcc/host-x86_64-pc-linux-gnu/gcc/xgcc -B/data/git/gcc/host-x86_64-pc-linux-gnu/gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/
    local/x86_64-pc-linux-gnu/sys-include
    checking for C compiler default output file name...
    configure: error: in `/data/git/gcc/x86_64-pc-linux-gnu/libgomp':
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    Makefile:24442: recipe for target 'configure-target-libgomp' failed
    make[1]: *** [configure-target-libgomp] Error 1
    make[1]: Leaving directory '/data/git/gcc'
    Makefile:1268: recipe for target 'do-html' failed
    make: *** [do-html] Error 2


    The problem is that the file:



    host-x86_64-pc-linux-gnu/gcc/xgcc


    does not exist. But I wonder why it is needed since all I want is to build the docs.



    Removing MAKEINFO=makeinfo MAKEINFOFLAGS='--no-split' made no difference.



    I also tried to just:



    cd gcc
    ./configure
    make html


    but it fails with:



    make: *** No rule to make target '../../build-x86_64-pc-linux-gnu/libiberty/libiberty.a', needed by 'build/genhooks'.  Stop.


    suggesting that a toplevel build is required.



    I would like to obtain the docs available at: https://gcc.gnu.org/onlinedocs/gcc-6.4.0/gcc/ and hopefully other manuals listed at https://gcc.gnu.org/onlinedocs/ such as CPP manual, each of them as a single HTML page that I can Ctrl + F easily on.










    share|improve this question



























      0












      0








      0







      I had asked a similar thing for GDB at: How to build the GDB documentation from source? , and it changed my life, now I want the same for GCC!



      On Ubuntu 16.04 and gcc 6.4.0 source tree (to match my host), I've tried:



      ./contrib/download_prerequisites
      ./configure
      make html MAKEINFO=makeinfo MAKEINFOFLAGS='--no-split'


      but the build fails after a few minutes at:



      checking for x86_64-pc-linux-gnu-gcc... /data/git/gcc/host-x86_64-pc-linux-gnu/gcc/xgcc -B/data/git/gcc/host-x86_64-pc-linux-gnu/gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/
      local/x86_64-pc-linux-gnu/sys-include
      checking for C compiler default output file name...
      configure: error: in `/data/git/gcc/x86_64-pc-linux-gnu/libgomp':
      configure: error: C compiler cannot create executables
      See `config.log' for more details.
      Makefile:24442: recipe for target 'configure-target-libgomp' failed
      make[1]: *** [configure-target-libgomp] Error 1
      make[1]: Leaving directory '/data/git/gcc'
      Makefile:1268: recipe for target 'do-html' failed
      make: *** [do-html] Error 2


      The problem is that the file:



      host-x86_64-pc-linux-gnu/gcc/xgcc


      does not exist. But I wonder why it is needed since all I want is to build the docs.



      Removing MAKEINFO=makeinfo MAKEINFOFLAGS='--no-split' made no difference.



      I also tried to just:



      cd gcc
      ./configure
      make html


      but it fails with:



      make: *** No rule to make target '../../build-x86_64-pc-linux-gnu/libiberty/libiberty.a', needed by 'build/genhooks'.  Stop.


      suggesting that a toplevel build is required.



      I would like to obtain the docs available at: https://gcc.gnu.org/onlinedocs/gcc-6.4.0/gcc/ and hopefully other manuals listed at https://gcc.gnu.org/onlinedocs/ such as CPP manual, each of them as a single HTML page that I can Ctrl + F easily on.










      share|improve this question















      I had asked a similar thing for GDB at: How to build the GDB documentation from source? , and it changed my life, now I want the same for GCC!



      On Ubuntu 16.04 and gcc 6.4.0 source tree (to match my host), I've tried:



      ./contrib/download_prerequisites
      ./configure
      make html MAKEINFO=makeinfo MAKEINFOFLAGS='--no-split'


      but the build fails after a few minutes at:



      checking for x86_64-pc-linux-gnu-gcc... /data/git/gcc/host-x86_64-pc-linux-gnu/gcc/xgcc -B/data/git/gcc/host-x86_64-pc-linux-gnu/gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/
      local/x86_64-pc-linux-gnu/sys-include
      checking for C compiler default output file name...
      configure: error: in `/data/git/gcc/x86_64-pc-linux-gnu/libgomp':
      configure: error: C compiler cannot create executables
      See `config.log' for more details.
      Makefile:24442: recipe for target 'configure-target-libgomp' failed
      make[1]: *** [configure-target-libgomp] Error 1
      make[1]: Leaving directory '/data/git/gcc'
      Makefile:1268: recipe for target 'do-html' failed
      make: *** [do-html] Error 2


      The problem is that the file:



      host-x86_64-pc-linux-gnu/gcc/xgcc


      does not exist. But I wonder why it is needed since all I want is to build the docs.



      Removing MAKEINFO=makeinfo MAKEINFOFLAGS='--no-split' made no difference.



      I also tried to just:



      cd gcc
      ./configure
      make html


      but it fails with:



      make: *** No rule to make target '../../build-x86_64-pc-linux-gnu/libiberty/libiberty.a', needed by 'build/genhooks'.  Stop.


      suggesting that a toplevel build is required.



      I would like to obtain the docs available at: https://gcc.gnu.org/onlinedocs/gcc-6.4.0/gcc/ and hopefully other manuals listed at https://gcc.gnu.org/onlinedocs/ such as CPP manual, each of them as a single HTML page that I can Ctrl + F easily on.







      gcc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 20 mins ago

























      asked 30 mins ago









      Ciro Santilli 新疆改造中心 六四事件 法轮功

      4,94124041




      4,94124041






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f493013%2fhow-to-build-the-gcc-html-documentation-from-source-into-a-single-page%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2funix.stackexchange.com%2fquestions%2f493013%2fhow-to-build-the-gcc-html-documentation-from-source-into-a-single-page%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

          CARDNET

          Boot-repair Failure: Unable to locate package grub-common:i386

          濃尾地震