guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS installation problem


From: Hans Åberg
Subject: Re: Mac OS installation problem
Date: Mon, 22 Jul 2019 22:22:34 +0200

> On 22 Jul 2019, at 21:13, Jean ABOU SAMRA <address@hidden> wrote:
> 
> Hi there,
> I'm trying to install Guile 1.8 (_not_ the latest 2.2.6 version) on Mac OS 
> 10.14 Mojave. I downloaded the guile-1.8.8.tar.gz file from 
> ftp://ftp.gnu.org/gnu/guile/ <ftp://ftp.gnu.org/gnu/guile/> . However, after 
> running ./configure, running 'make' stops with the following error:
> 
> gc-malloc.c:95:20: error: comparison of unsigned expression < 0 is always 
> false [-Werror,-Wtautological-compare]
>  if (scm_mtrigger < 0)
> 
> 
> Then I realised that the `gcc` command was pointing to clang (as by default 
> on Mac OS) so I installed GCC 9.1.0 and forced the `gcc` command to point to 
> this GCC. When I extracted the archive again in a new folder and executed 
> ./configure, I ran into another problem:
> 
> checking whether we are cross compiling... configure: error: in 
> `/Users/jean/Applications/guile-1.8.8-new':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details

I have experienced this problem when downloading clang from clang.org. The 
problem is that MacOS 10.14 does not have the system headers in /usr/include/ 
anymore. So I have to write (with clang and clang++ intended compilers):

Building for Clang of clang.org on MacOS 10.14 in parallel directory:
<my-project>/configure CXX=clang++ CXXFLAGS=-g  CC=clang CFLAGS=-g 
CPPFLAGS="-isysroot $(xcrun --show-sdk-path) -I /usr/local/include" LDFLAGS="-L 
/usr/local/lib”





reply via email to

[Prev in Thread] Current Thread [Next in Thread]