Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install sass in RedHat failed because of GCC version #40

Open
dracodoc opened this issue Apr 28, 2020 · 2 comments
Open

Install sass in RedHat failed because of GCC version #40

dracodoc opened this issue Apr 28, 2020 · 2 comments

Comments

@dracodoc
Copy link

* installing *source* package ‘sass’ ...
** package ‘sass’ successfully unpacked and MD5 sums checked
** libs
/usr/share/R/make/shlib.mk:14: warning: overriding commands for target `shlib-clean'
Makevars:12: warning: ignoring old commands for target `shlib-clean'
gcc -m64 -std=gnu99 -I"/usr/include/R" -DNDEBUG -I./libsass/include  -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC   -c compile.c -o compile.o
gcc -m64 -std=gnu99 -I"/usr/include/R" -DNDEBUG -I./libsass/include  -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC   -c init.c -o init.o
MAKEFLAGS= CC="gcc -m64 -std=gnu99" CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC  " CXX="g++ -m64 " AR="ar" LDFLAGS="" make -C libsass
make[1]: Entering directory `/RTemp/RtmprKj0SS/R.INSTALL5de83335fe30/sass/src/libsass'
gcc -m64 -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC   -O2 -I ./include  -fPIC -c -o src/cencode.o src/cencode.c
g++ -m64  -Wall -O2 -std=c++11 -I ./include  -fPIC -c -o src/ast.o src/ast.cpp
cc1plus: error: unrecognized command line option "-std=c++11"
make[1]: *** [src/ast.o] Error 1
make[1]: Leaving directory `/RTemp/RtmprKj0SS/R.INSTALL5de83335fe30/sass/src/libsass'
make: *** [libsass/lib/libsass.a] Error 2
ERROR: compilation failed for package ‘sass’

Our server is Red Hat Enterprise Linux Server release 6.10 (Santiago), GCC version g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23). I knew this is probably caused by the very ancient GCC version, however we can't really ask to update the server easily. If sass can support the older version of GCC with different switches, that will be very helpful.

Thanks!

@dracodoc dracodoc changed the title Install sass in RedHat failed Install sass in RedHat failed because of GCC version Apr 28, 2020
@MattCowgill
Copy link

I encounter this same error when I try to install sass from GitHub on macOS 11.3.

@syounkin
Copy link

I also encounter this error when installing on macOS 12.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants