discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plmerge core dumps...


From: Andreas Fink
Subject: Re: plmerge core dumps...
Date: Thu, 13 Feb 2020 10:44:47 +0100

This is not a problem of gnustep but of objectiveC.
Yes its a pain that the standard linker doesnt work. But it is what it is. until someone fixes the standard linker we can't do much.
This is mainly given by the fact that modern ObjC support in gcc is still missing. clang does much better here but there where still some bugs in clang before version 8 which can get you into trouble.

So golden rule is clang >= 8.0 and linker = ld.gold and it will work.



On 13 Feb 2020, at 10:37, Gregory Casamento <greg.casamento@gmail.com> wrote:

So, what we are, essentially, saying is that GNUstep can't work with the standard Linux linker.   I'm wondering in whose mind this is acceptable.

GC

On Wed, Feb 12, 2020 at 9:32 AM Gregory Casamento <greg.casamento@gmail.com> wrote:
Facepalm this is happening every time I rebuild.  Ugh!  I really can't delete my whole installation every time.

On Tue, Feb 11, 2020 at 8:56 AM Richard Frith-Macdonald <richard@frithmacdonald.me.uk> wrote:


> On 11 Feb 2020, at 13:47, David Chisnall <gnustep@theravensnest.org> wrote:
>
> On 11/02/2020 12:30, Richard Frith-Macdonald wrote:
>> clang -v reported that the normal, system linker was being used
>
> FYI: On most GNU/Linux platforms, BFD is the 'normal, system linker'. For example:
>
> $ ld -v
> GNU ld (GNU Binutils for Debian) 2.31.1
>
> This is the BFD linker on a Debian system.
>
> $ ld.gold -v
> GNU gold (GNU Binutils for Debian 2.31.1) 1.16
>
> This is gold on a Debian system.  It is installed by the binutils package, but is not installed as the system linker.
>
> $ ld -v
> LLD 8.0.1 (FreeBSD 366581-1200008) (compatible with GNU linkers)
>
> This is LLD on a FreeBSD system.  It is the system linker.

Thanks.
Mine was a CentOS-7 system with 'alternatives' set to use ld.gold
I did have three toolchains installed (which may have confused thngs), but all three were set to use ld.gold
Only when I removed all copies of ld.bfd was I able to build gnustep-base to use the new ABI and have it not crash immediately on startup.
My best guess at an explanation is that I did something (in the distant past so I don't remember) that confused/broke the 'alternatives' system.

Something else worth noting wrt the core dump is that it's quite commonplace, when building/installing the core libraries, that if something is horribly broken in base it will show up as soon as you try to build gui and that runs plmerge: a plmerge segfault could have many causes, and I didn't mean to blame it on using the new ABI or the bfd linker.


--
Gregory Casamento
GNUstep Lead Developer / OLC, Principal Consultant
http://www.gnustep.org - http://heronsperch.blogspot.com
http://ind.ie/phoenix/


--
Gregory Casamento
GNUstep Lead Developer / OLC, Principal Consultant
http://www.gnustep.org - http://heronsperch.blogspot.com
http://ind.ie/phoenix/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]