compilation error on Ubuntu Trusty relative to qt4 and GLViewer

Asked by Luc Sibille

Hi,

At the "make" step for the compilation of yade on Ubuntu Trusty I've got the following error:

[ 0%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o
c++: error: unrecognized command line option ‘-fstack-protector-strong’
make[2]: *** [gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o] Erreur 1
make[1]: *** [gui/CMakeFiles/_GLViewer.dir/all] Erreur 2
make: *** [all] Erreur 2

Would you have any idea to solve it?

Cheers,
Luc

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Luc Sibille
Solved:
Last query:
Last reply:
Revision history for this message
Anton Gladky (gladky-anton) said :
#1

Hi Luc,

sorry, it was my fault. This is more strict buffer overflow protection,
but available only with GCC>=4.9. I have just added the
version check. Please "git pull" and compile again.

Cheers

Anton

2015-04-27 17:41 GMT+02:00 Luc Sibille <email address hidden>:
> New question #265976 on Yade:
> https://answers.launchpad.net/yade/+question/265976
>
> Hi,
>
> At the "make" step for the compilation of yade on Ubuntu Trusty I've got the following error:
>
> [ 0%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o
> c++: error: unrecognized command line option ‘-fstack-protector-strong’
> make[2]: *** [gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o] Erreur 1
> make[1]: *** [gui/CMakeFiles/_GLViewer.dir/all] Erreur 2
> make: *** [all] Erreur 2
>
> Would you have any idea to solve it?
>
> Cheers,
> Luc
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp

Revision history for this message
Luc Sibille (luc-sibille) said :
#2

Hi Anton,
Great, it works.
Thank you,
Luc