Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

fails to build on heroku (ubuntu) #48

@sawall

Description

@sawall

Thought you may want to know that when I attempt to pip install this for my django project on heroku for the first time the gcc build fails in several places. Here's the gcc -v info from the heroku console:

Running `gcc -v` attached to terminal... up, run.3892
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5.1' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) 

and the rather lengthy error messages:

       Installing collected packages: libsass
         Running setup.py install for libsass
           building '_sass' extension
           gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./libsass -I/app/.heroku/python/include/python2.7 -c pysass.cpp -o build/temp.linux-x86_64-2.7/pysass.o -c -O2 -fPIC -std=c++0x -Wall -Wno-parentheses
           cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
           In file included from /app/.heroku/python/include/python2.7/Python.h:8,
                            from pysass.cpp:4:
           /app/.heroku/python/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:158:1: warning: this is the location of the previous definition
           In file included from /app/.heroku/python/include/python2.7/Python.h:8,
                            from pysass.cpp:4:
           /app/.heroku/python/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:160:1: warning: this is the location of the previous definition
           gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./libsass -I/app/.heroku/python/include/python2.7 -c libsass/output_compressed.cpp -o build/temp.linux-x86_64-2.7/libsass/output_compressed.o -c -O2 -fPIC -std=c++0x -Wall -Wno-parentheses
           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: command 'gcc' failed with exit status 1
           Complete output from command /app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-kpXICD/libsass/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-fg67mi-record/install-record.txt --single-version-externally-managed --compile:
           running install

           running build

           running build_py

           creating build

           creating build/lib.linux-x86_64-2.7

           copying sass.py -> build/lib.linux-x86_64-2.7

           copying sassc.py -> build/lib.linux-x86_64-2.7

           copying sasstests.py -> build/lib.linux-x86_64-2.7

           creating build/lib.linux-x86_64-2.7/sassutils

           copying sassutils/__init__.py -> build/lib.linux-x86_64-2.7/sassutils

           copying sassutils/wsgi.py -> build/lib.linux-x86_64-2.7/sassutils

           copying sassutils/builder.py -> build/lib.linux-x86_64-2.7/sassutils

           copying sassutils/distutils.py -> build/lib.linux-x86_64-2.7/sassutils

           running build_ext

           building '_sass' extension

           creating build/temp.linux-x86_64-2.7

           creating build/temp.linux-x86_64-2.7/libsass

           gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./libsass -I/app/.heroku/python/include/python2.7 -c pysass.cpp -o build/temp.linux-x86_64-2.7/pysass.o -c -O2 -fPIC -std=c++0x -Wall -Wno-parentheses

           cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++

           In file included from /app/.heroku/python/include/python2.7/Python.h:8,

                            from pysass.cpp:4:

           /app/.heroku/python/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:158:1: warning: this is the location of the previous definition

           In file included from /app/.heroku/python/include/python2.7/Python.h:8,

                            from pysass.cpp:4:

           /app/.heroku/python/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:160:1: warning: this is the location of the previous definition

           gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./libsass -I/app/.heroku/python/include/python2.7 -c libsass/output_compressed.cpp -o build/temp.linux-x86_64-2.7/libsass/output_compressed.o -c -O2 -fPIC -std=c++0x -Wall -Wno-parentheses

           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: command 'gcc' failed with exit status 1

           ----------------------------------------
           Command "/app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-kpXICD/libsass/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-fg67mi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-kpXICD/libsass

I've got this working fine on my OSX dev box, so too bad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions