Hi David,
On 2018-05-24 12:44:21 +0000 David Chisnall
<gnus...@theravensnest.org> wrote:
Hi Riccardo,
This looks like what happens if you have no @catch block anywhere on
the
stack. If you can recompile the runtime, try sticking #define
DEBUG_EXCEPTIONS in eh_personality.c - it will report where failures
are
happening.
thanks for the hint. First, let me specify that the libobjc2 I had
installed was the binary package provided by FreeBSD. The platform is
x86
Second, I noticed that I need libobjc2 package, if i remove it,
gnustep base does not find any runtime with GCC7. Could it be that the
gcc provided by FreeBSD packages contains language support but no
runtime with the intent to have a single runtime for everything (which
would be yours)?
Indeed I did not find any other libobjc.so in /usr/local
I tried building libobjc2 from our github repo sources (I did not yet
modivy eh_personality.c, tried a stock compilation), but i fails this
way:
Scanning dependencies of target CXXExceptions
[ 12%] Building C object
Test/CMakeFiles/CXXExceptions.dir/CXXException.m.o
cc: error: unable to execute command: Segmentation fault (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on
LLVM 4.0.0)
Target: i386-unknown-freebsd11.1
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.freebsd.org/submit/ and include the crash backtrace,
preprocessed source, and associated run script.
cc: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/ForwardDeclareProtocol-f61ec1.m
cc: note: diagnostic msg: /tmp/ForwardDeclareProtocol-f61ec1.sh
cc: note: diagnostic msg:
If I run make again, it will continue, but fail repeatably in other
places:
[ 11%] Built target ObjCXXEHInterop
[ 11%] Building C object
Test/CMakeFiles/ForwardDeclareProtocolAccess.dir/ForwardDeclareProtocol.m.o
cc: error: unable to execute command: Segmentation fault (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on
LLVM 4.0.0)
this place looks repeatable, if I run make again and again.
A bit unexpected? Can I force it to build with gcc7 or another versin
of clang? Apparently packages are only for lder versions than 4.0:
bazel-clang38-0.11.0 Fast and correct build system
clang-devel-7.0.d20180327 C, Objective-C, and C++ compiler (use
devel/llvm-devel)
clang33-3.3_10 C, Objective-C, and C++ compiler
clang34-3.4.2_8 C, Objective-C, and C++ compiler
clang35-3.5.2_4 C, Objective-C, and C++ compiler
clang38-3.8_1 C, Objective-C, and C++ compiler (use
devel/llvm38)
Thanks,
Riccardo
_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev