unrecognized command line option ‘-fsanitize=undefined’

General support questions
Post Reply
Posts: 4
Joined: 2018/02/08 20:54:46

unrecognized command line option ‘-fsanitize=undefined’

Post by pfsms » 2018/10/15 14:45:31

hello all
I wanna to install this package:
https://github.com/DavidButterfield/SCS ... Adaptation

I installed this packages as it says
# libaio-dev
# libfuse-dev
svn co https://github.com/DavidButterfield/MTE.git MTE
and after that i run this commands:
pushd MTE/trunk/src
after run make command it`s shows me this error:

Code: Select all

[root@site2 src]# make
cc -c -o mte_service.o -g -fPIC -D_GNU_SOURCE -DDEBUG -fsanitize=undefined -Og -I../include -Wall -Wextra -Wundef -Winit-self -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wcast-align -Wold-style-definition  -Wredundant-decls -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wmissing-include-dirs -Wunsafe-loop-optimizations -Wcast-qual -Wformat=2 -Wshadow -Wswitch-default -Wswitch-enum -Wwrite-strings -Wno-unused-parameter		 mte_service.c
cc: error: unrecognized command line option ‘-fsanitize=undefined’
make: *** [mte_service.o] Error 1

would someone help me please?

thanks in advance

Posts: 17
Joined: 2018/09/14 01:30:14

Re: unrecognized command line option ‘-fsanitize=undefined’

Post by Elliott » 2018/10/17 08:32:16

You need to upgrade gcc to version 4.9 or higher.

User avatar
Forum Moderator
Posts: 25048
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: unrecognized command line option ‘-fsanitize=undefined’

Post by TrevorH » 2018/10/17 10:41:16

There are newer gcc packages in SCL.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply