Comments (6)
Have the same problem.
from sassc.
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.
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.
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.
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.
The libsass README I have linked to in the comment above ^^
from sassc.
Related Issues (20)
- Cannot combine custom property with function? HOT 2
- unrecognized command line option '-stdlib=libc++'
- `--version` is broken HOT 4
- SASS_PATH is ignored HOT 3
- sass_make_data_context adopts char* HOT 5
- Building jekyll site fails HOT 2
- On Windows search for libsass.so instead of libsass.dll HOT 3
- error compiling sassc on aarch64 HOT 1
- With rails 6 Failure/Error: @import "fancy-buttons"
- globbed imports? HOT 1
- New sassc 3.6.1 is broken HOT 1
- installing sassc from snap HOT 1
- Option to add contentSources to source map
- "Installing sassc 2.4.0 with native extensions" takes a long time HOT 4
- Mark SassC as deprecated
- Ship precompiled gems for Linux HOT 2
- Allow for more complex at-media query HOT 2
- makefile not working HOT 1
- Bad value (‘tigerlake’) for ‘-march=’
- There is one vulnerability that will lead to an endless loop HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sassc.