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

Udo Grabowski (IMK) udo.grabowski at kit.edu
Thu Jun 1 14:01:49 UTC 2023


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5221 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20230601/461f457c/attachment.bin>


More information about the oi-dev mailing list