Re: base / libobjc2 link issues on FreeBSD 12

2020-02-20 Thread David Chisnall
On 20/02/2020 15:08, Riccardo Mottola wrote: freebsd 12.1 system compiler is clang 8.0.1 Yup, just checked, it is on my system too and it appears to work. I added these options because they are mentioned like this in your INSTALL file! My fault. I've fixed that now. Just as a test, I di

Re: base / libobjc2 link issues on FreeBSD 12

2020-02-20 Thread Riccardo Mottola
Hi David, thanks for the support, read below. I also cheked - there is no other libobjc on the system, no libobjc2 package installed from ports. David Chisnall wrote: On 20/02/2020 11:01, Riccardo Mottola wrote: cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang -DCMAKE_ASM_COMPIL

Re: base / libobjc2 link issues on FreeBSD 12

2020-02-20 Thread David Chisnall
On 20/02/2020 11:01, Riccardo Mottola wrote: cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang -DCMAKE_ASM_COMPILER=clang -DCMAKE_ASM_FLAGS=-c clang++ is a C++ compiler, clang is a C compiler, so your CMAKE_CXX_COMPILER value looks wrong. Clang is the default compiler on FreeBSD,

Re: base / libobjc2 link issues on FreeBSD 12

2020-02-20 Thread Riccardo Mottola
Hi David, David Chisnall wrote: ld-elf.so.1: /System/Library/Libraries/libobjc.so.4.6: Undefined symbol "_ZNSt3__14cerrE" configure:7880: $? = 1 configure: program exited with status 1 This looks as if something is including a C++ header that is pulling in iostream, specifically the libstdc++

Re: base / libobjc2 link issues on FreeBSD 12

2020-02-20 Thread David Chisnall
On 20/02/2020 07:19, Riccardo Mottola wrote: ld-elf.so.1: /System/Library/Libraries/libobjc.so.4.6: Undefined symbol "_ZNSt3__14cerrE" configure:7880: $? = 1 configure: program exited with status 1 This looks as if something is including a C++ header that is pulling in iostream, specifically t

Re: base / libobjc2 link issues on FreeBSD 12

2020-02-19 Thread Johannes Brakensiek
Hi Riccardo, Am 20.02.20 um 08:19 schrieb Riccardo Mottola: and now? I found that Andreas' guide was really helpful. You might want to make sure you really deleted all older versions of libobjc, you might want to set RUNTIME_VERSION (1.9 or 2.0) and it might be you need to install make a se

base / libobjc2 link issues on FreeBSD 12

2020-02-19 Thread Riccardo Mottola
Hi, getting a working clang+libobjc2 is a small saga now :-P I want to update my FreeBSD 12.1 laptop too. I did the same setup I did on my FreeBSD 11.3 workstation and it does not work, I am puzzled. configure make: ./configure --prefix=/ --with-layout=gnustep --with-library-combo=ng-gnu-gnu ( I