WebFaction
Community site: login faq

Below is the full copy of what I'm seeing. It seems to me that there is an issue with compiling the C++? Any help would be appreciated. I'm attempting to install wagtail via pip install wagtail. But I've also tried manually installing libsass, as well as removing the "-Wstrict-prototypes" option from the command script.

Downloading https://pypi.python.org/packages/source/l/libsass/libsass-0.6.2.tar.gz#md5=0dda1114a1f2ec1acb51cb1dd78fe7a0
Processing libsass-0.6.2.tar.gz
Writing /tmp/easy_install-dlZ7EN/libsass-0.6.2/setup.cfg
Running libsass-0.6.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dlZ7EN/libsass-0.6.2/egg-dist-tmp-3BVaLe
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from /usr/local/include/python2.7/Python.h:8,
                 from pysass.cpp:4:
/usr/local/include/python2.7/pyconfig.h:1182:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/unistd.h:26,
                 from pysass.cpp:1:
/usr/include/features.h:162:1: warning: this is the location of the previous definition
In file included from /usr/local/include/python2.7/Python.h:8,
                 from pysass.cpp:4:
/usr/local/include/python2.7/pyconfig.h:1204:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/unistd.h:26,
                 from pysass.cpp:1:
/usr/include/features.h:164:1: warning: this is the location of the previous definition
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from libsass/output_compressed.cpp:3:
libsass/ast.hpp: In constructor ‘Sass::Hashed::Hashed(size_t)’:
libsass/ast.hpp:211: error: ‘class std::unordered_map<Sass::Expression*, Sass::Expression*, std::hash<Sass::Expression*>, std::equal_to<Sass::Expression*>, std::allocator<std::pair<Sass::Expression* const, Sass::Expression*> > >’ has no member named ‘reserve’
libsass/ast.hpp: In member function ‘Sass::Hashed& Sass::Hashed::operator+=(Sass::Hashed*)’:
libsass/ast.hpp:236: error: expected initializer before ‘:’ token
libsass/ast.hpp:239: error: expected primary-expression before ‘return’
libsass/ast.hpp:239: error: expected ‘;’ before ‘return’
libsass/ast.hpp:239: error: expected primary-expression before ‘return’
libsass/ast.hpp:239: error: expected ‘)’ before ‘return’
libsass/ast.hpp: In member function ‘virtual bool Sass::Map::operator==(Sass::Expression&) const’:
libsass/ast.hpp:719: error: expected initializer before ‘:’ token
libsass/ast.hpp:721: error: expected primary-expression before ‘return’
libsass/ast.hpp:721: error: expected ‘;’ before ‘return’
libsass/ast.hpp:721: error: expected primary-expression before ‘return’
libsass/ast.hpp:721: error: expected ‘)’ before ‘return’
libsass/ast.hpp: In member function ‘virtual size_t Sass::Map::hash()’:
libsass/ast.hpp:733: error: expected initializer before ‘:’ token
libsass/ast.hpp:736: error: expected primary-expression before ‘return’
libsass/ast.hpp:736: error: expected ‘;’ before ‘return’
libsass/ast.hpp:736: error: expected primary-expression before ‘return’
libsass/ast.hpp:736: error: expected ‘)’ before ‘return’
libsass/ast.hpp: In member function ‘virtual size_t Sass::Function_Call::hash()’:
libsass/ast.hpp:920: error: expected initializer before ‘:’ token
libsass/ast.hpp:923: error: expected primary-expression before ‘return’
libsass/ast.hpp:923: error: expected ‘;’ before ‘return’
libsass/ast.hpp:923: error: expected primary-expression before ‘return’
libsass/ast.hpp:923: error: expected ‘)’ before ‘return’
In file included from libsass/output_compressed.cpp:3:
libsass/ast.hpp: In member function ‘virtual size_t Sass::String_Schema::hash()’:
libsass/ast.hpp:1257: error: expected initializer before ‘:’ token
libsass/ast.hpp:1260: error: expected primary-expression before ‘return’
libsass/ast.hpp:1260: error: expected ‘;’ before ‘return’
libsass/ast.hpp:1260: error: expected primary-expression before ‘return’
libsass/ast.hpp:1260: error: expected ‘)’ before ‘return’
error: Setup script exited with error: command 'gcc' failed with exit status 1

asked 16 Feb '15, 22:51

scapegoat
313
accept rate: 0%


Unfortunately, the only way around this is to build a newer version of GCC from source and then use that to build all of your dependencies.

There is a script that you can use to do this available here: Compiling GCC 4.8

Note that this build can potentially use a lot of RAM, which might result in your processes being terminated if you blow past your RAM allowance. If that happens, or if you think it will, then feel free to open a support ticket to request some extra RAM for a day (at no charge) to get you through the build process.

Hope that helps!

permanent link

answered 16 Feb '15, 23:01

seanf
12.2k41836
accept rate: 37%

edited 16 Feb '15, 23:01

so... I actually went through that process already. how/where do I tell libsass to use my locally built version?

(16 Feb '15, 23:15) scapegoat

The exports at the end of that script set up your environment to put your local gcc at the front of your PATH. If it's not doing that, then try running "hash -r", or just log out and log back in again.

(16 Feb '15, 23:18) seanf

ah wonderful, logging out worked. Is there a reason why the server's version doesn't work, and what are the chances of the newer version being made available right off the bat?

(16 Feb '15, 23:37) scapegoat

The system GCC is the version provided by CentOS 6. CentOS 6 is a few years old, and the system software reflects that, ie GCC is a somewhat-older version.

We can't upgrade it, because doing so would require a lot of updated system-wide dependencies which would be incompatible with all of the other system software.

At some point, we'll have CentOS 7 servers with newer versions of everything, but there's no ETA for that right now.

(16 Feb '15, 23:52) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×337
×1
×1

question asked: 16 Feb '15, 22:51

question was seen: 2,890 times

last updated: 16 Feb '15, 23:52

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM