Coder Social home page Coder Social logo

Compiling sassc about sassc HOT 6 CLOSED

sass avatar sass commented on June 10, 2024
Compiling sassc

from sassc.

Comments (6)

borisBezb avatar borisBezb commented on June 10, 2024

Have the same problem.

from sassc.

mgreter avatar mgreter commented on June 10, 2024

IMO this error occurs when you try to compile with gcc 4.4, which is not officially supported by libsass!
It seems to be possible to compile libsass with gcc 4.4, but we do not officially support it!

Please re-open if you can reproduce it with a recent compiler!

from sassc.

chrisnicola avatar chrisnicola commented on June 10, 2024

Currently having a similar issue with GCC 4.5.4 on EngineYard's stack.

gem install sassc -v '1.7.1'
Fetching: sassc-1.7.1.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing sassc:
        ERROR: Failed to build gem native extension.

    /usr/bin/ruby22 -rubygems /usr/lib64/ruby/gems/2.2.0/gems/rake-0.9.6/bin/rake RUBYARCHDIR=/home/deploy/.gem/ruby/2.2.0/extensions/x86_64-linux/2.2.0/sassc-1.7.1 RUBYLIBDIR=/home/deploy/.gem/ruby/2.2.0/extensions/x86_64-linux/2.2.0/sassc-1.7.1
cd libsass
make lib/libsass.so LDFLAGS="-Wall -O2"
mkdir lib
cc -Wall -O2 -fPIC -c -o cencode.o cencode.c
g++ -Wall -O2 -std=c++0x -fPIC -c -o ast.o ast.cpp
In file included from ast.cpp:1:0:
ast.hpp: In member function ‘Sass::Hashed& Sass::Hashed::operator+=(Sass::Hashed*)’:
ast.hpp:238:21: error: expected initializer before ‘:’ token
ast.hpp:242:27: error: could not convert ‘Sass::Hashed::reset_duplicate_key()’ to ‘bool’
ast.hpp:243:7: error: expected primary-expression before ‘return’
ast.hpp:243:7: error: expected ‘)’ before ‘return’
ast.hpp: In member function ‘virtual bool Sass::Map::operator==(Sass::Expression&) const’:
ast.hpp:807:23: error: expected initializer before ‘:’ token
ast.hpp:809:9: error: expected primary-expression before ‘return’
ast.hpp:809:9: error: expected ‘;’ before ‘return’
ast.hpp:809:9: error: expected primary-expression before ‘return’
ast.hpp:809:9: error: expected ‘)’ before ‘return’
ast.hpp: In member function ‘virtual size_t Sass::Map::hash()’:
ast.hpp:822:21: error: expected initializer before ‘:’ token
ast.hpp:825:7: error: expected primary-expression before ‘return’
ast.hpp:825:7: error: expected ‘;’ before ‘return’
ast.hpp:825:7: error: expected primary-expression before ‘return’
ast.hpp:825:7: error: expected ‘)’ before ‘return’
ast.hpp: In member function ‘virtual size_t Sass::Function_Call::hash()’:
ast.hpp:1087:26: error: expected initializer before ‘:’ token
ast.hpp:1090:7: error: expected primary-expression before ‘return’
ast.hpp:1090:7: error: expected ‘;’ before ‘return’
ast.hpp:1090:7: error: expected primary-expression before ‘return’
ast.hpp:1090:7: error: expected ‘)’ before ‘return’
In file included from ast.cpp:1:0:
ast.hpp: In member function ‘virtual size_t Sass::String_Schema::hash()’:
ast.hpp:1349:24: error: expected initializer before ‘:’ token
ast.hpp:1352:7: error: expected primary-expression before ‘return’
ast.hpp:1352:7: error: expected ‘;’ before ‘return’
ast.hpp:1352:7: error: expected primary-expression before ‘return’
ast.hpp:1352:7: error: expected ‘)’ before ‘return’
ast.cpp: In member function ‘void Sass::Number::normalize(const std::string&)’:
ast.cpp:757:19: error: expected initializer before ‘:’ token
ast.cpp:944:1: error: expected primary-expression at end of input
ast.cpp:944:1: error: expected ‘;’ at end of input
ast.cpp:944:1: error: expected primary-expression at end of input
ast.cpp:944:1: error: expected ‘)’ at end of input
ast.cpp:944:1: error: expected statement at end of input
ast.cpp:944:1: error: expected ‘}’ at end of input
ast.cpp: At global scope:
ast.cpp:944:1: error: expected ‘}’ at end of input
units.hpp:11:16: warning: ‘Sass::PI’ defined but not used
make: *** [ast.o] Error 1
rake aborted!
Command failed with status (2): [make lib/libsass.so LDFLAGS="-Wall -O2"...]
/data/homedirs/deploy/.gem/ruby/2.2.0/gems/sassc-1.7.1/lib/tasks/libsass.rb:20:in `block (2 levels) in <top (required)>'
/data/homedirs/deploy/.gem/ruby/2.2.0/gems/sassc-1.7.1/lib/tasks/libsass.rb:11:in `block (3 levels) in <top (required)>'
/data/homedirs/deploy/.gem/ruby/2.2.0/gems/sassc-1.7.1/lib/tasks/libsass.rb:10:in `block (2 levels) in <top (required)>'
Tasks: TOP => lib/libsass.so
(See full trace by running task with --trace)

rake failed, exit code 1

from sassc.

saper avatar saper commented on June 10, 2024

sassc is a command-line interface to libsass and GCC 4.6+ is required to compile it. libsass uses few C++11 features that are not available in the older compilers.

from sassc.

chrisnicola avatar chrisnicola commented on June 10, 2024

Good to know, I was trying to build on EngineYard which is unfortunately still stuck at GCC 4.5. Are there any docs that specify requirements for compiling? That would help.

from sassc.

saper avatar saper commented on June 10, 2024

The libsass README I have linked to in the comment above ^^

from sassc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.