[Bug other/92121] New: Error using GCC 4.9.4 -- arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y,

2019-10-16 Thread dhgopal at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92121

Bug ID: 92121
   Summary: Error using GCC 4.9.4 -- arch/x86/Makefile:166: ***
CONFIG_RETPOLINE=y,
   Product: gcc
   Version: 4.9.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dhgopal at gmail dot com
  Target Milestone: ---

We are setting up new centos build server and while configuring the gcc and
when we tried to compile the project code, we are getting the below error. we
did compile the code in Centos 3.10.0-693.17.1.el7.x86_64 using the gcc 4.9.4,
where - we installed gcc from the gcc 4.9.4 source code 


1) Error:

scripts/kconfig/conf --silentoldconfig Kconfig
make[2]: Leaving directory `'
arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the
compiler. Compiler update recommended..  Stop.
make[1]: *** [.config] Error 2
make[1]: Leaving directory `'
make: *** [kernel.rpm] Error 2
$ 


Note: ** are replaced with the directory path


2) we are using gcc 4.9.4 as shown below 

$ gcc --version
gcc (GCC) 4.9.4
Copyright (C) 2015 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.

$

[Bug other/92121] Error using GCC 4.9.4 -- arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y,

2019-10-17 Thread dhgopal at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92121

Dhanagopal Kannaiyan  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |---

--- Comment #4 from Dhanagopal Kannaiyan  ---

we have tried with a sample program and it compiling & when we try with the
below options during compilation we are getting the below error 



gcc  -mindirect-branch=thunk-extern -mindirect-branch-register  -o Test test.c
gcc: error: unrecognized command line option ‘-mindirect-branch=thunk-extern’
gcc: error: unrecognized command line option ‘-mindirect-branch-register’

can you please help -if we need to configure any to compile with the above
arguments which gcc compilation