gcl-devel
[Top][All Lists]
Advanced

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

macOS building issues after dc9eba0760dedcd3d042a408e715b38ac2222aa3


From: Chun Tian (binghe)
Subject: macOS building issues after dc9eba0760dedcd3d042a408e715b38ac2222aa3
Date: Wed, 7 Feb 2024 20:19:40 +1100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 14.3; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.1

Greetings,

In the commit dc9eba0760dedcd3d042a408e715b38ac2222aa3 [1], I saw   the
following line from gcl/h/compbas2.h was removed:

diff --git a/gcl/h/compbas2.h b/gcl/h/compbas2.h
index 20a2b5c..cc7d87c 100755
--- a/gcl/h/compbas2.h
+++ b/gcl/h/compbas2.h
@@ -10,7 +10,6 @@ EXTER int Rset;

 #ifndef U8_DEFINED

-#include <stdint.h>

 typedef int8_t  i8 ;
 typedef int16_t i16;

I believe stdint.h is still necessary here. I was able to build GCL
2.7.0 (a370fc23ce94786e459a622d64d4a0aecf3eac5e, the same commit that
you fixed the macports build on Catalina), but now I met the following
errors when loading boot.lisp (the first time, I believe):

GCL (GNU Common Lisp)  2.7.0 Thu Oct 26 12:00:01 PM EDT 2023  CLtL1
git: Version_2_7_0pre13
Source License: LGPL(gcl,gmp), GPL(unexec,bfd,xgcl)
Binary License:  GPL due to GPL'ed components: (UNEXEC)
Modifications of this banner must retain notice of a compatible license
Dedicated to the memory of W. Schelter

Use (help) to get some basic information on how to use GCL.
Temporary directory for compiler files set to
/var/folders/2_/w81bdn691x30355x_4l0sr280000gn/T/

>;; Loading "boot.lisp"
;; Compiling
/var/folders/2_/w81bdn691x30355x_4l0sr280000gn/T/gazonk_53918_0.lsp.
;; End of Pass 1.
;; End of Pass 2.
In file included from
/private/var/folders/2_/w81bdn691x30355x_4l0sr280000gn/T/gazonk_53918_0.c:2:
/Users/binghe/Lisp/gcl/gcl/unixport/../h/cmpinclude.h:537:9: error:
unknown type name 'int8_t'
  537 | typedef int8_t i8 ;
      |         ^~~~~~~~
/Users/binghe/Lisp/gcl/gcl/unixport/../h/cmpinclude.h:544:9: error:
unknown type name 'uint64_t'
  544 | typedef uint64_t n64;
      |         ^~~~~~~~
/Users/binghe/Lisp/gcl/gcl/unixport/../h/cmpinclude.h:551:16: error:
unknown type name 'int8_t'
  551 | typedef union {int8_t i;uint8_t u;n8 n;} u8;
      |                ^~~~~~
/Users/binghe/Lisp/gcl/gcl/unixport/../h/cmpinclude.h:551:25: error:
unknown type name 'uint8_t'
  551 | typedef union {int8_t i;uint8_t u;n8 n;} u8;
      |                         ^~~~~~~
/Users/binghe/Lisp/gcl/gcl/unixport/../h/cmpinclude.h:552:16: error:
unknown type name 'int16_t'
  552 | typedef union {int16_t i;uint16_t u;n16 n;} u16;
      |                ^~~~~~~
/Users/binghe/Lisp/gcl/gcl/unixport/../h/cmpinclude.h:552:26: error:
unknown type name 'uint16_t'
  552 | typedef union {int16_t i;uint16_t u;n16 n;} u16;
      |                          ^~~~~~~~
/Users/binghe/Lisp/gcl/gcl/unixport/../h/cmpinclude.h:554:3: error:
unknown type name 'int32_t'
  554 |   int32_t i;
      |   ^~~~~~~
/Users/binghe/Lisp/gcl/gcl/unixport/../h/cmpinclude.h:555:3: error:
unknown type name 'uint32_t'
  555 |   uint32_t u;
      |   ^~~~~~~~
/Users/binghe/Lisp/gcl/gcl/unixport/../h/cmpinclude.h:559:3: error:
unknown type name 'int64_t'
  559 |   int64_t i;
      |   ^~~~~~~

Correctable error: (SYSTEM "/opt/local/bin/gcc-mp-13  -c -fsigned-char
-pipe -fcommon -fno-builtin-malloc -fno-builtin-free -fno-PIE -fno-pie
-fno-PIC -fno-pic -Wall -Wno-empty-body -Wno-unused-but-set-variable
-m64  -I/Users/binghe/Lisp/gcl/gcl/unixport/../h  -O2 -c
/private/var/folders/2_/w81bdn691x30355x_4l0sr280000gn/T/gazonk_53918_0.c
-o
/private/var/folders/2_/w81bdn691x30355x_4l0sr280000gn/T/gazonk_53918_0.o")
returned a non-zero value 1 0.
Signalled by SAFE-SYSTEM.
If continued: Continues anyway.(SYSTEM "/opt/local/bin/gcc-mp-13  -c
-fsigned-char -pipe -fcommon -fno-builtin-malloc -fno-builtin-free
-fno-PIE -fno-pie -fno-PIC -fno-pic -Wall -Wno-empty-body
-Wno-unused-but-set-variable -m64
-I/Users/binghe/Lisp/gcl/gcl/unixport/../h  -O2 -c
/private/var/folders/2_/w81bdn691x30355x_4l0sr280000gn/T/gazonk_53918_0.c
-o
/private/var/folders/2_/w81bdn691x30355x_4l0sr280000gn/T/gazonk_53918_0.o")
returned a non-zero value 1 0.

Broken at LET*.  Type :H for Help.
    1 (continue) Continues anyway.
    2  Return to top level.
COMPILER>>gmake: *** [makefile:103: unixport/saved_gcl0] Error 255
rm h/mcompdefs.h h/mstdint.h

I'm on macOS Sonoma (), using the following configuration (derived from
the macports Portfile but without extra environment variables):

CC=gcc-mp-13 ./configure --prefix=/usr/local \
      --disable-notify \
      --disable-statsysbfd \
      --disable-ansi \
      --enable-custreloc \
      --enable-emacsdir=/opt/local/share/emacs/site-lisp/gcl \
      --enable-infodir=/opt/local/share/info \
      --enable-readline \
      --disable-gprof \
      --without-x \
      --disable-xgcl \
      --disable-tcltk

P.S. If I put the line "#include <stdint.h>" back to compbas2.h, the
above issue will disappear (but later the build still failed due to
other issues caused by your recent commits).

Also note that I had to use GCC 13 instead of clang, because with clang
even the GMP building part doesn't success at the linking stage. (My
previous successful GCL 2.7.0 build was also based on GCC 13.)

Regards,

Chun TIAN

[1]
http://git.savannah.gnu.org/cgit/gcl.git/commit/?id=dc9eba0760dedcd3d042a408e715b38ac2222aa3

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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