-
Notifications
You must be signed in to change notification settings - Fork 361
Unable to compile with GCC 4.8 #433
Comments
@eleshar can you follow the instruction here https://github.com/pagespeed/ngx_pagespeed/wiki/Building-PSOL-From-Source with tag name 1.6.29.2 instead of 1.5.27.3 |
I don't think building from source as @chaizhenhua will help, sorry! The problem is that We either need to fix the dependency or figure out how to build with that warning disabled. |
Thanks @jeffkaufman downgrading gcc to version 4.7.3 resolved the issue. |
With gcc 4.8 I needed to add
While this got past the error with
|
WebKit has this fixed, what about updating this code copy? |
Is there any update? as it mentioned that Webkit has this fixed! please share the info |
There is a discussion on the gcc mailing list about this at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54055. I haven't tried, but looking at the trunk version of scoped_ptr.h in chromium, I don't think this has been fixed there yet. For now, it looks like the only way to continue is disabling treating warnings as errors, since there isn't an option to disable just that warning. Together with Jeff's change, the following diff compiles for me now.
|
Thanks for looking into this! Can we do these relaxations only for gcc 4.8? Something like:
|
That didn't quite work on my system. Looks like there is some variability in the gcc version strings.
I came up with the following based on nginx's
|
That is so much better; thanks! Do you want to create the pull request or should I? |
Fixed by #528 |
Hi,
I'm attempting to install the latest release as outlined on https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source but my installation keeps failing with:
In file included from /root/sources/ngx_pagespeed/psol/include/third_party/chromium/src/base/logging.h:14:0,
from /root/sources/ngx_pagespeed/src/log_message_handler.cc:30:
/root/sources/ngx_pagespeed/psol/include/third_party/chromium/src/base/basictypes.h: In function âDest bit_cast(const Source&)â:
/root/sources/ngx_pagespeed/psol/include/third_party/chromium/src/base/basictypes.h:318:16: error: typedef âVerifySizesAreEqualâ locally defined but not used [-Werror=unused-local-typedefs]
typedef char VerifySizesAreEqual [sizeof(Dest) == sizeof(Source) ? 1 : -1];
^
cc1plus: all warnings being treated as errors
make[1]: *** [objs/addon/src/log_message_handler.o] Error 1
make[1]: Leaving directory `/root/sources/nginx-1.5.2'
make: *** [install] Error 2
I'm on Ubuntu 13.04 and building with:
./configure --prefix=/opt/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --http-scgi-temp-path=/var/lib/nginx/scgi --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_gzip_static_module --user=www-data --group=www-data --with-debug --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --add-module=/root/sources/ngx_pagespeed-release-1.6.29.3-beta --with-http_spdy_module
The text was updated successfully, but these errors were encountered: