discuss-gnustep
[Top][All Lists]
Advanced

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

Re: FreeBSD / libobj2 issue after update - all apps crash


From: David Chisnall
Subject: Re: FreeBSD / libobj2 issue after update - all apps crash
Date: Tue, 4 Jun 2019 11:32:27 -0700
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 04/06/2019 09:46, Riccardo Mottola wrote:
Hi David,

David Chisnall wrote:
Thanks for the report.  Please can you file an issue on GitHub?  This is a quite surprising error - it implies that either clang has a bug or that something is trying to manually create or modify protocols without calling through the runtime.  This might happen if you have a version of GNUstep compiled against the gcc runtime and using ObjectiveC2.framework instead of the runtime's public APIs, but that shouldn't be the case with the packaged versions.

clang and libobjc2 are packaged, however gnustep installation is compiled by my by current sources. I did not do anything special, I configured make with:

$ ./configure --prefix=/ --with-layout=gnustep CFLAGS=-I/usr/local/include

Are you using -make from packages, which will be configured to use the new ABI?

according to configure log, this is the compiler detected:

configure:4393: checking for C compiler version
configure:4402: cc --version >&5
FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0)
Target: x86_64-unknown-freebsd11.2
Thread model: posix

Okay, this is not one that will be used by -make from packages, because it doesn't support the 2.0 ABI. Please use the clang from the llvm7 or lllv8 package, or from the base system in 12. It looks as if you're using the old (GCC) ABI, which may mean that you've linked in the ObjectiveC2 framework and are explicitly constructing internal runtime data structures from an old version of the runtime. Please can you check where the invalid protocol is coming from? It may also be something that we're failing to correctly upgrade when using the legacy ABI.

David



reply via email to

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