Re: [oi-dev] gcc: error: -pie is not supported in this configuration
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: mar...@telka.sk | |homepage: http://telka.sk/ | +---+ ___ oi-dev mailing list oi-dev@openindiana.org https://openindiana.org/mailman/listinfo/oi-dev
Re: [oi-dev] gcc: error: -pie is not supported in this configuration
On 01/06/2023 15:53, Udo Grabowski (IMK) wrote: On 01/06/2023 15:49, Marcel Telka wrote: Hi, 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, seems to be something slightly different: -pie Produce a dynamically linked position independent executable on targets that support it. For predictable results, you must also specify the same set of options used for compilation (-fpie, -fPIE, or model suboptions) when you specify this linker option. -- Dr.Udo Grabowski Inst.f.Meteorology & Climate Research IMK-ASF-SAT http://www.imk-asf.kit.edu/english/sat.php KIT - Karlsruhe Institute of Technology http://www.kit.edu Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026 smime.p7s Description: S/MIME Cryptographic Signature ___ oi-dev mailing list oi-dev@openindiana.org https://openindiana.org/mailman/listinfo/oi-dev
Re: [oi-dev] gcc: error: -pie is not supported in this configuration
On 01/06/2023 15:49, Marcel Telka wrote: Hi, 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 ? -- Dr.Udo Grabowski Inst.f.Meteorology & Climate Research IMK-ASF-SAT http://www.imk-asf.kit.edu/english/sat.php KIT - Karlsruhe Institute of Technology http://www.kit.edu Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026 smime.p7s Description: S/MIME Cryptographic Signature ___ oi-dev mailing list oi-dev@openindiana.org https://openindiana.org/mailman/listinfo/oi-dev
[oi-dev] gcc: error: -pie is not supported in this configuration
Hi, 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? Thanks. -- +---+ | Marcel Telka e-mail: mar...@telka.sk | |homepage: http://telka.sk/ | +---+ ___ oi-dev mailing list oi-dev@openindiana.org https://openindiana.org/mailman/listinfo/oi-dev