Can't Find features.h Compiling mod_pagespeed with gcc

This forum is for discussion about general software issues.

Can't Find features.h Compiling mod_pagespeed with gcc

Postby Kavanai4 » Wed Aug 06, 2014 9:46 am

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.
Kavanai4
 
Posts: 2
Joined: Wed Aug 06, 2014 9:10 am

Re: Can't Find features.h Compiling mod_pagespeed with gcc

Postby pepedog » Wed Aug 06, 2014 11:45 am

Have you tried building the aur version?
https://aur.archlinux.org/packages/psol/
$this->bbcode_second_pass_code('', 'pacman -Syu
pacman -S base-devel
wget https://aur.archlinux.org/packages/ps/psol/psol.tar.gz
tar xf psol.tar.gz
cd psol
makepkg -Acs --asroot
pacman -U thecreatedpackage')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Can't Find features.h Compiling mod_pagespeed with gcc

Postby Kavanai4 » Wed Aug 06, 2014 12:57 pm

$this->bbcode_second_pass_quote('pepedog', 'H')ave you tried building the aur version?

No. That downloads a pre-compiled version of psol which doesn't run on arm devices. The download only includes i686 and x86_64 binaries and won't run on arm devices which is why I need to build it from source.
Kavanai4
 
Posts: 2
Joined: Wed Aug 06, 2014 9:10 am


Return to General

Who is online

Users browsing this forum: No registered users and 36 guests