Lazarus

Programming => Operating Systems => Linux => Topic started by: CaptBill on September 30, 2011, 02:13:26 am

Title: Where does "ld.exe" Belong?[RESOLVED?]
Post by: CaptBill on September 30, 2011, 02:13:26 am
Hi,
I am trying to install fpc from source (svn fpcbuild) to TinyCore linux and have hit a snag. All seems well then i get an error "cannot find ld".

Apparently the Tinycore version of GNU Make does not inclide "ld.exe" nor is it in their repository.

I found a version for fpc set up for cross compiling (fpc friendly version) of ld.exe and have placed it ALL OVER in my system yet it still is not found.

Where should I put "ld"?
I tried ...

/fpc/bin
fpc/utils
/usr/bin
etc.

Thanks
Title: Re: Where does "ld.exe" Belong?
Post by: Blaazen on September 30, 2011, 02:50:02 am
Definitely not "ld.exe" but only "ld". It should be in /usr/bin

What happens when you write "ld" to terminal ? Here:
Code: [Select]
[v1@msi-NB ~]$ ld
ld: no input files
[v1@msi-NB ~]$

And do you have any binary fpc installed ?
Title: Re: Where does "ld.exe" Belong?
Post by: CaptBill on September 30, 2011, 02:56:07 am
Hi Blaazen,

Yeah, I tried just "ld" too just about everywhere including /usr/bin.

I get "ld not found" in terminal.

Could it be a quirk with Tinycore's default permissions possibly?
Because I also get the same "not found" with other exe's, it seems.

And yes I have the binary fpc installed.

TinyCore is SWEET btw.

Thanks
Title: Re: Where does "ld.exe" Belong?
Post by: CaptBill on September 30, 2011, 03:17:41 am
If I try "ld.exe" I get "permission denied'
Title: Re: Where does "ld.exe" Belong?
Post by: marcov on September 30, 2011, 11:20:54 am
ld and as should come with the "binutils" package. Try to install it for your distro, or some general "development" package.
Title: Re: Where does "ld.exe" Belong?
Post by: CaptBill on September 30, 2011, 11:53:09 pm
ld and as should come with the "binutils" package. Try to install it for your distro, or some general "development" package.

Thanks Marcov,
I can install Lazarus and Fpc no problem from the .tar's. Although trying to rebuild lazarus or rebuild packages are the snag.
I think there is something different in how Tinycore works with Make. Or there is a missing dependency that needs to be added. Seems to be an issue even with the FPC extension downloadable from the Tinycore repository "app browser" as well. The Freepascal IDE is not working. Compiler seems fine (fpc2.4.4)

Anyone know how to contact "Arslan S"? He is the extension maintainer.
He just recently updated this .tcz extension to 2.4.4, but there is no email contact listed.
Title: Re: Where does "ld.exe" Belong?
Post by: CaptBill on October 01, 2011, 02:19:53 am
I found the issue, I believe. The fp.cfg directory variables/paths have a missing directory: usr/bin/fpc should be usr/local/bin/fpc.

Unfortunately this is an extracted folder structure handled by the Tinycore .tcz extension system so I cannot modify it (gets untarred and mounted each time from a static file)

I tried to contact "Arslan S" at the freepascal.org forum about it. Just a typo, looks like.

Thanks
TinyPortal © 2005-2018