macOS building issues after dc9eba0760dedcd3d042a408e715b38ac2222aa3
"Chun Tian (binghe)" <[email protected]>
| Newsgroups | gmane.lisp.gcl.devel |
|---|---|
| Organization | The Australian National University |
| Message-ID | <[email protected]> |
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
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEES+aY+4laoC0TwmVKFUkg2jrYR8gFAmXDSy0ACgkQFUkg2jrY R8gYzA/+Nl5zkLSI54qwFD7dHb1jF3zUPBhWFvImawz23avfro0bl2j+Mmz2w+aF vcJ/FTLwNZL8xfLrCPNeBdBMs/PzExQNxWbCxNasl2XCpTiqL6vUw5WeqKaz1enj ADI3IGfQJuyp4OTSYL7VDugqQEnWNCg9fstiB5LsEOUp2jii3e3GmtfRubwjzgE1 9cCPB1dmjX3xEnDHWBQV6keU+3W+vOOJ8yNkAzFuxJaCnzfHV9pAw2Bkknm9zDMh Rny6Fc7YP6l7ixCnCwMHM7QS/jrArfNRSbelbtebLYp/iEikbn84eai4CySMU5h+ ABmt9iOzCJr5ElqHOcyFU+B/osyY5GVjT1evXLwfIQhlbRZtAon60oX4MeOqDcpG 3kqeRB82p5Ruidox6L74qoy2sXvyjhG1xGLUpvFTv7KM97JclvRwrw1URdoSD4Ok S71N1ONm/VoFKMu18+HZlrXnBjrMgT67nTaEfLTlsA2gp61xU733pc4SG+UsKB/w HvCtCFmVtiJ6y9xTz9sG9NRNjpr05M3nSWq/TZbD8NCx1kiQ1jmdo3C6JRuHVweL hCtnlR0Q3CZzESsiAvVXiiBq3yQBoEvXGz9SKKyGPhqWeKcHrhi1sHMzf3FdwZD2 yeLSYmzO6MQ7U6dYn08xfFuAI3LXRIVVvBZgj9+8Qaa7Dg3YzlI= =Dp+3 -----END PGP SIGNATURE-----