Error during compiling mod pagespeed : {standard input}:171: Error: no such instruction: `xgetbv'

242 views
Skip to first unread message

sanket lande

unread,
Mar 6, 2016, 11:46:51 AM3/6/16
to mod-pagespeed-discuss
Hi Friends

While compiling mod pagespeed I'm getting below error :

$make AR.host=`pwd`/build/wrappers/ar.sh AR.target=`pwd`/build/wrappers/ar.sh BUILDTYPE=Release V=1
  LD_LIBRARY_PATH=/www/tools/mod_pagespeed/src/out/Release/lib.host:/www/tools/mod_pagespeed/src/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd build; mkdir -p /www/tools/mod_pagespeed/src/out/Release/obj/gen/build; /bin/sh ../build/lastchange.sh .. -o "/www/tools/mod_pagespeed/src/out/Release/obj/gen/build/LASTCHANGE" -d ../LASTCHANGE.in
  LD_LIBRARY_PATH=/www/tools/mod_pagespeed/src/out/Release/lib.host:/www/tools/mod_pagespeed/src/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd build; mkdir -p /www/tools/mod_pagespeed/src/out/Release/obj/gen/net/instaweb/public; python version.py -f ../net/instaweb/public/VERSION -f "/www/tools/mod_pagespeed/src/out/Release/obj/gen/build/LASTCHANGE" ../net/instaweb/public/version.h.in "/www/tools/mod_pagespeed/src/out/Release/obj/gen/net/instaweb/public/version.h"
  cc '-DCHROMIUM_REVISION=256281' '-DV8_DEPRECATION_WARNINGS' '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' '-D_FILE_OFFSET_BITS=64' '-DPAGESPEED_SUPPORT_POSIX_SHARED_MEM' '-DGTEST_HAS_RTTI=1' '-DCHROMIUM_BUILD' '-DTOOLKIT_VIEWS=1' '-DUI_COMPOSITOR_IMAGE_TRANSPORT' '-DUSE_AURA=1' '-DUSE_CAIRO=1' '-DUSE_GLIB=1' '-DUSE_DEFAULT_RENDER_THEME=1' '-DUSE_LIBJPEG_TURBO=1' '-DUSE_NSS=1' '-DUSE_X11=1' '-DUSE_CLIPBOARD_AURAX11=1' '-DENABLE_ONE_CLICK_SIGNIN' '-DUSE_XI2_MT=2' '-DENABLE_REMOTING=1' '-DENABLE_WEBRTC=1' '-DENABLE_PEPPER_CDMS' '-DENABLE_CONFIGURATION_POLICY' '-DENABLE_INPUT_SPEECH' '-DENABLE_NOTIFICATIONS' '-DENABLE_NEW_GAMEPAD_API=1' '-DUSE_UDEV' '-DENABLE_EGLIMAGE=1' '-DENABLE_TASK_MANAGER=1' '-DENABLE_EXTENSIONS=1' '-DENABLE_PLUGIN_INSTALLATION=1' '-DENABLE_PLUGINS=1' '-DENABLE_SESSION_SERVICE=1' '-DENABLE_THEMES=1' '-DENABLE_AUTOFILL_DIALOG=1' '-DENABLE_BACKGROUND=1' '-DENABLE_AUTOMATION=1' '-DENABLE_GOOGLE_NOW=1' '-DCLD_VERSION=2' '-DENABLE_FULL_PRINTING=1' '-DENABLE_PRINTING=1' '-DENABLE_SPELLCHECK=1' '-DENABLE_CAPTIVE_PORTAL_DETECTION=1' '-DENABLE_APP_LIST=1' '-DENABLE_SETTINGS_APP=1' '-DENABLE_MANAGED_USERS=1' '-DENABLE_MDNS=1' '-DBORINGSSL_IMPLEMENTATION' '-DBORINGSSL_NO_STATIC_INITIALIZER' '-DNDEBUG' '-DNVALGRIND' '-DDYNAMIC_ANNOTATIONS_ENABLED=0' -Ithird_party/chromium/src -Ithird_party/boringssl/src/include -Ithird_party/boringssl/src/crypto  -fstack-protector --param=ssp-buffer-size=4 -pthread -fno-exceptions -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -fexceptions -fasynchronous-unwind-tables -D_POSIX_C_SOURCE=200112L -Wno-format -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables  -MMD -MF out/Release/.deps/out/Release/obj.target/openssl/third_party/boringssl/src/crypto/cpu-intel.o.d.raw  -c -o out/Release/obj.target/openssl/third_party/boringssl/src/crypto/cpu-intel.o third_party/boringssl/src/crypto/cpu-intel.c
{standard input}: Assembler messages:
{standard input}:171: Error: no such instruction: `xgetbv'
make: *** [out/Release/obj.target/openssl/third_party/boringssl/src/crypto/cpu-intel.o] Error 1

============================================
I found there are reference to xgetbv into ./third_party/chromium/src/base/cpu.cc file. Do we need to modify it's content please let me know.


============================================
NOTE : I'm installing mod page speed with non root user.
============================================

You can What'sApp me on +91 9975456790

Thanks in Advance. :)

--
Thanks & regards,
Sanket

Joshua Marantz

unread,
Mar 6, 2016, 3:46:39 PM3/6/16
to mod-pagespeed-discuss
What kind of system are you trying to build mod_pagespeed on?


--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/4488cd81-2561-421e-b9f2-9d54425654fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeff Kaufman

unread,
Mar 6, 2016, 4:35:51 PM3/6/16
to mod-pagespeed-discuss

sanket lande

unread,
Mar 7, 2016, 12:22:34 AM3/7/16
to mod-pagespeed-discuss
System : Linux Host 2.6.18-371.1.2.el5 #1 SMP Mon Oct 7 16:34:35 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux 

$as --version
GNU assembler 2.17.50.0.6-26.el5 20061020
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-redhat-linux'.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/4488cd81-2561-421e-b9f2-9d54425654fa%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Jeff Kaufman

unread,
Mar 7, 2016, 10:31:17 AM3/7/16
to mod-pagespeed-discuss
Thanks! What redhat version is this?

Looking at https://bugzilla.mozilla.org/show_bug.cgi?id=976631 it's
possible that using a version of as >= 2.19 would fix this.
>> >> email to mod-pagespeed-di...@googlegroups.com.
>> >> To view this discussion on the web visit
>> >>
>> >> https://groups.google.com/d/msgid/mod-pagespeed-discuss/4488cd81-2561-421e-b9f2-9d54425654fa%40googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "mod-pagespeed-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to mod-pagespeed-di...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-di...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mod-pagespeed-discuss/b5711afe-981a-459c-82e6-929bb06c51c7%40googlegroups.com.

sanket lande

unread,
Mar 12, 2016, 4:50:59 AM3/12/16
to mod-pagespeed-discuss
I have switched to Red Hat Enterprise Linux Server release 6.7 (Santiago) and started from scratch.
Which have GNU Assembler 2.20

]$ as --version
GNU assembler version 2.20.51.0.2-5.43.el6 20100205
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-redhat-linux'.

Here I failed to install pre-requisite package Python. Same tgz package I used on previous machine Red Hat Enterprise Linux Server release 5.10 (Tikanga) and it was installed smoothly. But I'm getting below error while installing python on RHEL 6.7

collect2: ld returned 1 exit status

Python build finished, but the necessary bits to build these modules were not found:
_sqlite3           _ssl               _tkinter
bsddb185           bz2                dl
imageop            readline           sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_curses            _curses_panel      binascii
zlib

running build_scripts

Should I start this as new topic/Post ?

--
Thanks & regards,
Sanket

>> >> To view this discussion on the web visit
>> >>
>> >> https://groups.google.com/d/msgid/mod-pagespeed-discuss/4488cd81-2561-421e-b9f2-9d54425654fa%40googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "mod-pagespeed-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAGKR%2BEDu4cHk5BHq4nWPxUuHLXQK1tFHpuHXJ1nE8HGDsZWf4g%40mail.gmail.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Jeffrey Crowell

unread,
Mar 14, 2016, 10:31:59 AM3/14/16
to mod-pagespeed-discuss
on the Centos5 machine that we build the release RPMs on, as is version 2.25 (GNU assembler (GNU Binutils) 2.25).

As for being unable to build python, it looks like you're missing the packages for zlib, openssl, and a few others.

yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

should do the trick.

>> >> To view this discussion on the web visit
>> >>
>> >> https://groups.google.com/d/msgid/mod-pagespeed-discuss/4488cd81-2561-421e-b9f2-9d54425654fa%40googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "mod-pagespeed-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAGKR%2BEDu4cHk5BHq4nWPxUuHLXQK1tFHpuHXJ1nE8HGDsZWf4g%40mail.gmail.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/bcca8793-fa98-4310-9ad9-3b91257d0b65%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages