node-sass icon indicating copy to clipboard operation
node-sass copied to clipboard

c++ compiler reporting issues while installing node-sass

Open ravitadi opened this issue 10 years ago • 8 comments

`make: Entering directory `/home/test/testing/node_modules/gulp-sass/node_modules/node-sass/build'
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION="3.3.2"' -I/home/test/.node-gyp/0.12.7/include/node -I/home/test/.node-gyp/0.12.7/src -I/home/test/.node-gyp/0.12.7/deps/uv/include -I/home/test/.node-gyp/0.12.7/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -ffunction-sections -fdata-sections -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp
In file included from ../src/libsass/src/ast.cpp:1:
../src/libsass/src/ast.hpp: In constructor ‘Sass::Hashed::Hashed(size_t)’:
../src/libsass/src/ast.hpp:246: 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’
../src/libsass/src/ast.hpp: In member function ‘Sass::Hashed& Sass::Hashed::operator+=(Sass::Hashed*)’:
../src/libsass/src/ast.hpp:275: error: expected initializer before ‘:’ token
../src/libsass/src/ast.hpp:279: error: could not convert ‘Sass::Hashed::reset_duplicate_key()’ to ‘bool’
../src/libsass/src/ast.hpp:280: error: expected primary-expression before ‘return’
../src/libsass/src/ast.hpp:280: error: expected ‘)’ before ‘return’
../src/libsass/src/ast.hpp: In member function ‘virtual size_t Sass::Map::hash()’:
../src/libsass/src/ast.hpp:872: error: expected initializer before ‘:’ token
../src/libsass/src/ast.hpp:876: error: expected primary-expression before ‘}’ token
../src/libsass/src/ast.hpp:876: error: expected ‘;’ before ‘}’ token
`

ravitadi avatar Mar 05 '16 19:03 ravitadi

You need to use g++ 4.8 or newer, clang also works.

saper avatar Mar 06 '16 09:03 saper

@saper negative. I was using 4.7 on a centos and it is working fine. I tried it on a different centos with 4.7, fails. Closing this issue as upgrade does fix it but its strange that is works on 4.7 and fails in another.

ravitadi avatar Mar 06 '16 18:03 ravitadi

It may have worked on 4.7 at some point. We only test and hence only support 4.8. On Mar 7, 2016 5:46 AM, "Ravi Tadi" [email protected] wrote:

@saper https://github.com/saper negative. I was using 4.7 on a centos and it is working fine. I tried it on a different centos with 4.7, fails. Closing this issue as upgrade does fix it but its strange that is works on 4.7 and fails in another.

— Reply to this email directly or view it on GitHub https://github.com/sass/node-sass/issues/1405#issuecomment-192960130.

xzyfer avatar Mar 06 '16 22:03 xzyfer

How "different" were those centos installs? Which libstdc++ were they using?

saper avatar Mar 07 '16 22:03 saper

[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2 - lib sass works

ravitadi avatar Mar 10 '16 04:03 ravitadi

That's surprising - do you have by chance a full compilation log with gcc 4.4?

saper avatar Mar 10 '16 08:03 saper

@saper fwiw I believe the Linux binaries are built in centos 5 with GCC 4.x On Mar 10, 2016 7:19 PM, "Marcin Cieślak" [email protected] wrote:

That's surprising - do you have by chance a full compilation log with gcc 4.4?

— Reply to this email directly or view it on GitHub https://github.com/sass/node-sass/issues/1405#issuecomment-194726726.

xzyfer avatar Mar 10 '16 08:03 xzyfer

4.4 or 4.5 On Mar 10, 2016 7:22 PM, "Michael Mifsud" [email protected] wrote:

@saper fwiw I believe the Linux binaries are built in centos 5 with GCC 4.x On Mar 10, 2016 7:19 PM, "Marcin Cieślak" [email protected] wrote:

That's surprising - do you have by chance a full compilation log with gcc 4.4?

— Reply to this email directly or view it on GitHub https://github.com/sass/node-sass/issues/1405#issuecomment-194726726.

xzyfer avatar Mar 10 '16 08:03 xzyfer