make -f Makefile.devel build-porting64-gcc-debug_gcsafety
on
$ uname -a Darwin Clr-Sam.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64 $ gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 9.0.0 (clang-900.0.38) Target: x86_64-apple-darwin16.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
fails with
depbase=`echo malloca.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -DHAVE_CONFIG_H -I. -I../../src/gllib -I.. -I/usr/local/include -g -W -Wswitch -Wcomment -Wpointer-arith -Wreturn-type -Wno-sign-compare -Wno-format-nonliteral -Wno-shift-negative-value -Wno-invalid-offsetof -fwrapv -fno-strict-aliasing -ggdb -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3 -DDEBUG_GCSAFETY -DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DNO_GETTEXT -MT malloca.o -MD -MP -MF $depbase.Tpo -c -o malloca.o ../../src/gllib/malloca.c &&\ mv -f $depbase.Tpo $depbase.Po clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] ../../src/gllib/malloca.c:98:25: error: cannot initialize a variable of type 'union header *' with an lvalue of type 'void *' union header *h = p; ^ ~ ../../src/gllib/malloca.c:143:29: error: cannot initialize a variable of type 'union header *' with an lvalue of type 'void *' union header *h = p; ^ ~ 2 errors generated. make[4]: *** [malloca.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [gllib/libgnu.a] Error 2
logs are attached
Diff:
Fixing this will be part of the Makefile / build system improvements effort. Thanks for the report, I've took note of it.
the bug is in
gnulib/m4/no-c++.m4
.however, when gnulib is built, the clisp build still fails:
https://lists.gnu.org/archive/html/bug-gnulib/2017-12/msg00009.html
note also that
clang-900.0.38 on x86_64-apple-darwin16.7.0
pretends to be "gcc 4.2.1", thuslispbibl.d:432
:has to be modified too...
at this time clisp boot builds ootb on macosx with
build-porting64-gcc-debug_gcsafety
.modules fail with