Failed to build Qt5 alpha on Gentoo x86_64
-
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/CPeAJZJ0How can I fix the build.
-
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_resultYou 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 )) {} -
It help, but i get another error:
http://pastebin.com/HBivAY0Ybq. 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
-
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).
-
[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.