sass / sassc-ruby

Use libsass with Ruby!
MIT License
363 stars 157 forks source link

v2.2.x compilation fails on Ubuntu (with stock g++) #176

Closed 64kramsystem closed 4 years ago

64kramsystem commented 4 years ago

While installing the v2.2.x gem on my machine (Ubuntu 18.04-based, with stock g++), I get this error (edit):

linking shared-object sassc/libsass.so
lto1: fatal error: bytecode stream in file ‘c99func.o’ generated with LTO version 7.1 instead of the expected 6.0

On the same machine, compiling v2.1.0 succeeds.

Software versions:

$ g++ --version
g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
$ aptitude show libsass-dev | grep Version
Version: 3.4.8-1
64kramsystem commented 4 years ago

I've traced back the problem to be the difference between gcc version I use (v8) and g++ (v7). I was mislead by the error, as I'm not a C/++ programmer. Closing, as it's a configuration problem.