Hey,
I am trying to build the PSOL (PageSpeed Optimization Libraries) from source on a Raspberry Pi running Arch Linux Arm to use the ngx_pagespeed module with nginx.
I encounter the error whilst trying to build mod_pagespeed with
$this->bbcode_second_pass_code('', 'make AR.host="$PWD/build/wrappers/ar.sh" \
AR.target="$PWD/build/wrappers/ar.sh" \
BUILDTYPE=Release \
mod_pagespeed_test pagespeed_automatic_test')
The error is
$this->bbcode_second_pass_code('', 'In file included from /usr/include/c++/4.8.2/armv6l-unknown-linux-gnueabihf/bits/c++config.h:426:0,
from /usr/include/c++/4.8.2/string:38,
from out/Release/obj/gen/protoc_out/instaweb/net/instaweb/rewriter/image_types.pb.h:7,
from out/Release/obj/gen/protoc_out/instaweb/net/instaweb/rewriter/image_types.pb.cc:5:
/usr/include/c++/4.8.2/armv6l-unknown-linux-gnueabihf/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory')
features.h is located in /usr/include which can be seen from
$this->bbcode_second_pass_code('', 'user@hostname ~ $ ls -la /usr/include | grep features.h
-rw-r--r-- 1 root root 12807 Jan 19 2014 features.h
-rw-r--r-- 1 root root 1814 Feb 2 2014 ldap_features.h')
Running cpp -v lists the include search folders as
$this->bbcode_second_pass_code('', '#include <...> search starts here:
/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.8.2/include
/usr/local/include
/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.8.2/include-fixed
/usr/include
End of search list.
')
The include is in os_defines.h on line 40 as #include <features.h>.
I have gcc-4.8.2-7 and make-4.0-2 installed. I encountered this problem also on Raspbian with a different version of gcc. Both the Raspbian OS and Arch Linux Arm OS are fresh installs with the most minimal of changes made before trying to compile mod_pagespeed. I'm at a loss as to what I can do, to me it appears as if this is somehow a bug with gcc for armv6l.
Any guidance you would be able to offer would be greatly appreciated.