Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Failed to build Qt5 alpha on Gentoo x86_64
Qt 6.11 is out! See what's new in the release blog

Failed to build Qt5 alpha on Gentoo x86_64

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 3.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RazrFalcon
    wrote on last edited by
    #1

    Here is build log: http://pastebin.com/39hZUL3R

    Also it create empty folder /media/data/Additional/Sources/bin
    and /media/data/Additionals folder, which contains http://pastebin.com/CPeAJZJ0

    How can I fix the build.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      momesana
      wrote on last edited by
      #2

      This section tells you everything there is to know:

      cc1plus: warnings being treated as errors
      ./compiler/glslang_lex.cpp: In function ‘int yylex(YYSTYPE*, void*)’:
      ./compiler/glslang_lex.cpp:1713:5: error: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

      You must remove the -Werror flag from GCC or even better fix the line of code where the return value of the fwrite is not stored/evaluated. It's a macro that defines "ECHO". It should ideally be extended to evaluate the return value of fwrite and emit an error message if writing was not successfull.

      As a very ugly workaround you could try something like changing:
      #define ECHO fwrite( yytext, yyleng, 1, yyout )
      to
      #define ECHO if (fwrite( yytext, yyleng, 1, yyout )) {}

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RazrFalcon
        wrote on last edited by
        #3

        It help, but i get another error:
        http://pastebin.com/HBivAY0Y

        bq. You may try computing dependencies manually by running 'make qmake' in:

        didn't help

        bq. or passing --makeargs="qmake" to build-webkit.

        didn't help

        1 Reply Last reply
        0
        • M Offline
          M Offline
          momesana
          wrote on last edited by
          #4

          Hm. I had the same issue and I solved it somehow (I am also using gentoo on a x86_64 system). Let's try building qtwebkit explicitly: do the following:
          from the root directory of the qt sources:
          make module-qtwebkit or make -j <x> module-qtwebkit with <x> being the number of your cpu cores + 1 and tell me what results it yields.

          p.s. I also had to rename the qtwebkit demo/examples directory (qtwebkit-examples-and-demos) before qt could be built (it couldn't find the qtwebkit headers and failed to build. On the other hand it's not a critical module so we don't really need it and can skip it).

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RazrFalcon
            wrote on last edited by
            #5

            [quote author="momesana" date="1333992643"]
            from the root directory of the qt sources:
            make module-qtwebkit or make -j <x> module-qtwebkit with <x> being the number of your cpu cores + 1 and tell me what results it yields.[/quote]
            Exactly the same.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved