[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: base / libobjc2 link issues on FreeBSD 12
From: |
Riccardo Mottola |
Subject: |
Re: base / libobjc2 link issues on FreeBSD 12 |
Date: |
Thu, 20 Feb 2020 16:08:15 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.5 |
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_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, so these seem redundant (I don't know why you are adding
-c to ASM flags either). I don't know if the system clang on FreeBSD
12 is sufficiently new, the package uses clang80.
freebsd 12.1 system compiler is clang 8.0.1
I added these options because they are mentioned like this in your
INSTALL file!
Just as a test, I did again a clean build with absolutely no options, just:
cd Build
$ cmake ..
-- The C compiler identification is Clang 8.0.1
-- The ASM compiler identification is Clang
-- Found assembler: /usr/bin/cc
-- The CXX compiler identification is Clang 8.0.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Testing C++ interop
-- Testing /usr/lib/libcxxrt.so as the C++ runtime library
-- Using /usr/lib/libcxxrt.so as the C++ runtime library
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- GNUstep install type set to SYSTEM
-- Performing Test CXA_ALLOCATE_EXCEPTION_NOEXCEPT_COMPILES
-- Performing Test CXA_ALLOCATE_EXCEPTION_NOEXCEPT_COMPILES - Success
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/multix/code/gnustep-cvs/libobjc2/Build
make -j2
<.... build...>
-> all 178 tests fail.
where are the errors of the tests?
Riccardo