[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: Re: Category Unknown ?
From: |
Andreas Buff |
Subject: |
Fwd: Re: Category Unknown ? |
Date: |
Fri, 15 Oct 2021 16:48:18 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
Hi Andreas,
thanks for having a look on it.
a) which version of clang are you using?
`clang -v`output:
Debian clang version 11.0.1-2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/10
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/10
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/10
Candidate multilib: .;@m64
Selected multilib: .;@m64
>
> b) which objc runtime are you using?
I _think_ gnustep-2.0, because I have this in my GNUmakefile:
ADDITIONAL_FLAGS += -fobjc-runtime=gnustep-2.0
and this in ~/.bashrc:
export RUNTIME_VERSION=gnustep-2.0
>
> c) which linker are you using?
I do not specify anything and thus assume it the one defined in ~/.bashrc:
export LD=/usr/bin/ld.gold
>
> d) which Linux distribution/version are you using?
Debian 11
Am 15.10.21 um 15:05 schrieb Andreas Fink:
> the list is not dead To start: a) which version of clang are you
> using? b) which objc runtime are you using? c) which linker are you
> using? d) which Linux distribution/version are you using? Andreas Buff
> wrote on 15.10.21 14:53:
>> Hi, sorry for the bump. Is this list dead or is my question too
>> stupid? :-/ Am 07.10.21 um 10:30 schrieb Andreas Buff:
>>> Hi! I am new to GNUstep. I am building an executable on Linux. Using
>>> include `$(GNUSTEP_MAKEFILES)/tool.make`. It's linked to a static
>>> lib that has also be build with GNUstep. The lib contains
>>> Categories. The executable builds fine but has errors at runtime not
>>> recognizing methods defined in the static lib's Category: "Uncaught
>>> exception NSInvalidArgumentException, reason:
>>> ClassNameOfClassTheCategoryExtends(instance) does not recognize
>>> nameOfMethodInCategory" I am trying to fix that by passing `-ObjC`
>>> to the linker flags (also tried `-all_load`) in the executable's
>>> GNUmakefile: `ADDITIONAL_LDFLAGS = -ObjC -all_load` But that seems
>>> to be ignored by clang. Here is the relevant output of `make install
>>> messages=yes debug=yes` ``` clang: warning: argument unused during
>>> compilation: '-ObjC' [-Wunused-command-line-argument] clang:
>>> warning: argument unused during compilation: '-all_load'
>>> [-Wunused-command-line-argument] ``` Any help or hint is
>>> appreciated. 🖖 Andreas
>
sender_key.asc
Description: application/pgp-keys
Re: Category Unknown ?, Riccardo Mottola, 2021/10/20
- Fwd: Re: Category Unknown ?,
Andreas Buff <=