[oi-dev] gcc: error: -pie is not supported in this configuration

Marcel Telka marcel at telka.sk
Thu Jun 1 14:01:40 UTC 2023


On Thu, Jun 01, 2023 at 03:53:05PM +0200, Udo Grabowski (IMK) wrote:
> On 01/06/2023 15:49, Marcel Telka wrote:
> > I just noticed this:
> > 
> > $ /usr/gcc/11/bin/gcc -pie a.c
> > gcc: error: -pie is not supported in this configuration
> > $ /usr/gcc/10/bin/gcc -pie a.c
> > gcc: error: -pie is not supported in this configuration
> > $ /usr/gcc/7/bin/gcc -pie a.c
> > gcc: error: -pie is not supported in this configuration
> > $
> > 
> > Any idea what is wrong wit -pie at OI?
> > Is it possible to make it working?
> > 
> 
> Isn't it -fpie ?

No, on Rocky Linux 8 it works:

$ gcc -pie a.c 
$ echo $?
0
$ gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)
Copyright (C) 2018 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.

$


-- 
+-------------------------------------------+
| Marcel Telka   e-mail:   marcel at telka.sk  |
|                homepage: http://telka.sk/ |
+-------------------------------------------+



More information about the oi-dev mailing list