[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] cmake error with guile3_branch_2.1
From: |
Kostas Oikonomou |
Subject: |
[Texmacs-dev] cmake error with guile3_branch_2.1 |
Date: |
Mon, 25 Oct 2021 18:52:04 -0400 |
User-agent: |
Evolution 3.42.0 FreeBSD GNOME Team |
Hi,
I'm trying to build guile3_branch_2.1 on FreeBSD, guile 3.0.7. The default compiler is clang.
I get the following error:
-- Performing Test _guile_dots_test
Called from: [2] /usr/home/ko/build/texmacs-guile3_branch_2.1/cmake/CheckCSourceCompiles.cmake
[1] /usr/home/ko/build/texmacs-guile3_branch_2.1/CMakeLists.txt
CMake Error: Parse error in command line argument: _THREAD_SAFE
Should be: VAR:type=value
Called from: [2] /usr/home/ko/build/texmacs-guile3_branch_2.1/cmake/CheckCSourceCompiles.cmake
[1] /usr/home/ko/build/texmacs-guile3_branch_2.1/CMakeLists.txt
CMake Error at cmake/CheckCSourceCompiles.cmake:47 (TRY_COMPILE):
Failed to configure test project build system.
Here is where THREAD_SAFE occurs:
[
ko@wiley ~/build/texmacs-guile3_branch_2.1]$ grep -r THREAD_SAFE *
CMakeCache.txt:Guile_CFLAGS:INTERNAL=-I/usr/local/include/guile/3.0;-I/usr/local;-I/usr/local/include;-D_THREAD_SAFE;-pthread
CMakeCache.txt:Guile_CFLAGS_OTHER:INTERNAL=-D_THREAD_SAFE;-pthread
CMakeCache.txt:Guile_STATIC_CFLAGS:INTERNAL=-I/usr/local/include/guile/3.0;-I/usr/local;-I/usr/local/include;-D_THREAD_SAFE;-pthread
CMakeCache.txt:Guile_STATIC_CFLAGS_OTHER:INTERNAL=-D_THREAD_SAFE;-pthread
$
My guess is that this is something that gcc accepts, but clang doesn't like.
Here is the Guile info:
[
ko@wiley ~/build/texmacs-guile3_branch_2.1]$ guile-config --version
guile-config - Guile version 3.0.7
[
ko@wiley ~/build/texmacs-guile3_branch_2.1]$ guile-config link
-L/usr/local/lib -lguile-3.0 -lgc-threaded -lpthread -ldl
[
ko@wiley ~/build/texmacs-guile3_branch_2.1]$ guile-config compile
-I/usr/local/include/guile/3.0 -I/usr/local -I/usr/local/include -D_THREAD_SAFE -pthread
[
ko@wiley ~/build/texmacs-guile3_branch_2.1]$
Any help would be appreciated.
Kostas
- [Texmacs-dev] cmake error with guile3_branch_2.1,
Kostas Oikonomou <=