Sorry if this mail is double, with nabble.com it does not appear...

Hello.

> Sorry, I didn't notice that you use Manjaro,

Huh, after some bad experience with my ex-favorite Linux OS, I just have 
switched for a not-Debian OS: Arch-Manjaro.

> I thought it's about PolyDev.

With polYdev it is a other problem: FreeBSD multi-arch design is not compatible 
with their garbage-manager.

> One wold need to debug FPC.

Ok, chief, I get the guilty and the solution.

In /fpcsrc/compiler/systems/t_linux.pas, line 155:

----------------------------------
{$ifdef x86_64}
...
{$else}
   LibrarySearchPath.AddPath(sysrootpath,'/lib;/usr/lib;/usr/X11R6/lib',true);
{$endif}
---------------------------

Could be changed with this:
(and so not oblige to use -Xd parameter, even in multi-arch)

----------------------------------
{$ifdef x86_64}
...
{$else}
   
LibrarySearchPath.AddPath(sysrootpath,'/usr/lib32;/usr/X11R6/lib;/usr/lib;/lib',true);
{$endif}
---------------------------


Tested and works.
IMHO, the hierarchy of search-path is better too (and follows what they did 
for{$ifdef x86_64}.

PS: Last commit of t_linux is from 2008, maybe in those time multi-arch was not 
tested.

Fre;D





________________________________
De : Martin Schreiber <[email protected]>
Envoyé : jeudi 26 juillet 2018 18:47
À : [email protected]
Objet : Re: [MSEide-MSEgui-talk] Multi-arch problem...

On 07/26/2018 03:13 PM, Martin Schreiber wrote:
> On Thursday 26 July 2018 15:01:25 fredvs wrote:
>> Re-hello.
>>
>>> Maybe librarysearchpath has an entry for /lib where on your system a 64
>>> bit crtn.o is located?
>>
>> Re-about this, even if librarysearchpath has an entry for /lib (that
I did
>> not found),
>
> compiler/systems/t_bsd.pas:124:
Sorry, I didn't notice that you use Manjaro, I thought it's about
PolyDev. I don't know why in Linux "/lib" is in librarysearchpath, I
also did not find the responsible code. One wold need to debug FPC.

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to