Error linking in Linux CentOS - line option '-no-pie'

Linux specific forum
JoseT
User
User
Posts: 14
Joined: Sun Dec 06, 2020 11:27 am

Error linking in Linux CentOS - line option '-no-pie'

Post by JoseT »

Hi,

I tried to compile in CentOS, using pbcompiler from a bash shell, but I get an error with linker.
The output is:

Code: Select all

******************************************
PureBasic 5.73 LTS (Linux - x64) Free
******************************************

Loading external modules...
Starting compilation...
Starting compilation...
37 lines processed.
Creating the executable.
Error: Linker
gcc: error: unrecognized command line option ‘-no-pie’ 
I think that $PUREBASIC_HOME is correctly set in environment, but I have no idea what is causing this error.


Thanks y best regards,
Regards,
JT
User avatar
NicTheQuick
Addict
Addict
Posts: 1218
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Error linking in Linux CentOS - line option '-no-pie'

Post by NicTheQuick »

Sounds a lot like this bug and this fix: viewtopic.php?p=513891#p513891
Or this: viewtopic.php?f=15&t=70531
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
JoseT
User
User
Posts: 14
Joined: Sun Dec 06, 2020 11:27 am

Re: Error linking in Linux CentOS - line option '-no-pie'

Post by JoseT »

Hi..

If problem is with 'gcc' libraries that is installed (if that is the problem, I'm not sure of this).... Which could be a valid version of gcc for PureBasic?
Regards,
JT
Post Reply