As a follow-up and after some internet digging:
I have:
$ cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
$ gcc --version
gcc (GCC) 4.8.4
$ python
Python 2.7.5 (default, Jun 17 2014, 18:11:42)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
But it seems that the gcc -fstack-protector-strong option has been
available only since gcc-4.9!
I guess that it is a CentOS or RHEL7.1 related problem, but I'm not sure
how to fix it.
Gerald.
On 05/30/2015 08:03 PM, Gerald Monard wrote:
> Hello,
>
> Has anybody ever tried to compile AmberTools15 with gcc-4.8.4?
> I've just had access to a machine under CentOS-7.1 and I've got the
> following error:
>
> (cd parmed && /usr/bin/python2.7 setup.py install
> --prefix=/home/monard5/amber14 --install-scripts=/home/monard5/amber14/bin)
> running install
> running build
> running build_py
> running build_ext
> building 'chemistry.amber._rdparm' extension
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
> --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
> -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
> --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
> -D_GNU_SOURCE -fPIC -fwrapv -fPIC
> -I/home/monard5/amber14/AmberTools/src/parmed/src
> -I/usr/include/python2.7 -c src/_rdparm.cpp -o
> build/temp.linux-x86_64-2.7/src/_rdparm.o
> gcc: error: unrecognized command line option ‘-fstack-protector-strong’
> gcc: error: unrecognized command line option ‘-fstack-protector-strong’
> error: command 'gcc' failed with exit status 1
> make[1]: *** [serial] Error 1
> make[1]: Leaving directory `/home/monard5/amber14/AmberTools/src'
> make: *** [install] Error 2
> [monard5.maitre amber14]$ gcc --version
> gcc (GCC) 4.8.4
> Copyright (C) 2013 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> Any clue?
>
> Gerald.
>
--
____________________________________________________________________________
Prof. Gerald MONARD
SRSMC, Université de Lorraine, CNRS
Boulevard des Aiguillettes B.P. 70239
F-54506 Vandoeuvre-les-Nancy, FRANCE
e-mail : Gerald.Monard.univ-lorraine.fr
tel. : +33 (0)383.684.381
fax : +33 (0)383.684.371
web : http://www.monard.info
____________________________________________________________________________
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Sat May 30 2015 - 11:30:04 PDT