unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Mac OS installation problem
@ 2019-07-22 19:13 Jean ABOU SAMRA
  2019-07-22 20:22 ` Hans Åberg
  0 siblings, 1 reply; 2+ messages in thread
From: Jean ABOU SAMRA @ 2019-07-22 19:13 UTC (permalink / raw)
  To: guile-user

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 attach the logs generated by the compilation commands:

iMac:guile-1.8.8 jean$ # This is with clang.
iMac:guile-1.8.8 jean$ ./configure
iMac:guile-1.8.8 jean$ make &> guile-make.log # attaching 'guile-make.log'

iMac-devoirs:guile-1.8.8-new jean$ # This is with GCC 9.1.0.
iMac-devoirs:guile-1.8.8-new jean$ ./configure # attaching 'config.log'


Any hints on how to get Guile to compile?

Thanks in advance,
Jean Abou Samra.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mac OS installation problem
  2019-07-22 19:13 Mac OS installation problem Jean ABOU SAMRA
@ 2019-07-22 20:22 ` Hans Åberg
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Åberg @ 2019-07-22 20:22 UTC (permalink / raw)
  To: Jean ABOU SAMRA; +Cc: guile-user


> On 22 Jul 2019, at 21:13, Jean ABOU SAMRA <jean@abou-samra.fr> 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”





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-22 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-22 19:13 Mac OS installation problem Jean ABOU SAMRA
2019-07-22 20:22 ` Hans Åberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).