I meant to send this to the mailing list, but accidentally sent it only to Axel Kielhorn <t...@axelkielhorn.de>.
I've since updated to Xcode Version 12.4 (12D4e), and still got the same result, building from a clean git checkout of groff, and still have the problem below. This error: In file included from src/libs/libgroff/curtime.cpp:20: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:100: ./lib/math.h:38:3: error: "Please include config.h first." #error "Please include config.h first." looks to me like the system c++ stdlib.h is including groff's lib/math.h, even though the line 100 mentioned above is just #include <math.h> ---------- Forwarded message --------- From: T. Kurt Bond <tkurtb...@gmail.com> Date: Mon, Feb 8, 2021 at 8:48 PM Subject: Re: groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom) To: Axel Kielhorn <t...@axelkielhorn.de> I tried the groff-1.23.0.rc1 tar ball and got these results when trying make: CXX src/libs/libgroff/libgroff_a-curtime.o In file included from src/libs/libgroff/curtime.cpp:20: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:100: ./lib/math.h:38:3: error: "Please include config.h first." #error "Please include config.h first." ^ ./lib/math.h:40:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN' _GL_INLINE_HEADER_BEGIN ^ ./lib/math.h:1625:1: error: expected unqualified-id _GL_CXXALIAS_SYS (frexp, double, (double x, int *expptr)); ^ ./lib/math.h:256:5: note: expanded from macro '_GL_CXXALIAS_SYS' _GL_EXTERN_C int _gl_cxxalias_dummy ^ ./lib/math.h:136:30: note: expanded from macro '_GL_EXTERN_C' # define _GL_EXTERN_C extern "C" ^ ./lib/math.h:3100:1: error: unknown type name '_GL_INLINE_HEADER_END' _GL_INLINE_HEADER_END ^ In file included from src/libs/libgroff/curtime.cpp:21: In file included from ./lib/string.h:41: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:60: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:69:1: error: expected unqualified-id __BEGIN_DECLS ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:71:32: note: expanded from macro '__BEGIN_DECLS' #define __BEGIN_DECLS extern "C" { ^ In file included from src/libs/libgroff/curtime.cpp:21: In file included from ./lib/string.h:41: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:73:64: error: use of undeclared identifier 'strchr' char* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s, __c);} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:80:75: error: use of undeclared identifier 'strpbrk' char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:87:65: error: use of undeclared identifier 'strrchr'; did you mean 'strchr'? char* __libcpp_strrchr(const char* __s, int __c) {return (char*)strrchr(__s, __c);} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:75:13: note: 'strchr' declared here const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:94:76: error: use of undeclared identifier 'memchr' void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:101:74: error: use of undeclared identifier 'strstr' char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);} ^ src/libs/libgroff/curtime.cpp:43:47: error: use of undeclared identifier 'strerror' fatal("$SOURCE_DATE_EPOCH: strtol: %1", strerror(errno)); ^ 11 errors generated. make[1]: *** [src/libs/libgroff/libgroff_a-curtime.o] Error 1 make: *** [all] Error 2 I'm using the system gcc, which of course is actually clang-1200.0.32.28: # tkb@vidar:~/sw/src/groff/rc/groff-1.23.0.rc1 $ type gcc gcc is /usr/bin/gcc # tkb@vidar:~/sw/src/groff/rc/groff-1.23.0.rc1 $ gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.0 (clang-1200.0.32.28) Target: x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin I'm on macOS Catalina, version 10.16.7. I never use Xcode, but I assume that's where the system compiler comes from and it is Version 12.3 (12C33). I'm using homebrew: # tkb@vidar:~/sw/src/groff/rc/groff-1.23.0.rc1 $ brew --version Homebrew 2.7.7-65-g4ae8dfe Homebrew/homebrew-core (git revision 49270; last commit 2021-02-01) Homebrew/homebrew-cask (git revision ba29cf; last commit 2021-02-01) Has anybody else with macOS Catalina or BigSur tried this? I'll try the git version again tomorrow when I've got some time. On Mon, Feb 8, 2021 at 4:10 PM Axel Kielhorn <t...@axelkielhorn.de> wrote: > > > > Am 07.02.2021 um 22:49 schrieb G. Branden Robinson < > g.branden.robin...@gmail.com>: > > > > At 2021-02-05T14:26:33-0500, T. Kurt Bond wrote: > >> and ran it with the slightly munged (but with nothing in mom changed) > >> and several months out of date version of groff from git. (it's out > >> of date since it's been several months since making groff finished > >> successfully. I'm on macOS, and I *think* it's something in Xcode > >> causing the problem.) > > > > This is distressing news given that we have a release candidate out. > > Does the 1.23.0.rc1 on alpha.gnu.org not build, either? > > > > https://alpha.gnu.org/gnu/groff/ > > > > Is anyone else on this list using macOS? Can you try a groff build? If > > there's a build failure on this platform I'd like to know about it. > > I just build groff from git with: > > ./bootstrap > ./configure --with-uchardet=no > make > > It seems configure finds > > checking for uchardet >= 0.0.1... yes > > But it isn’t found when compiling > > src/preproc/preconv/preconv.cpp:27:10: fatal error: 'uchardet/uchardet.h' > file not found > #include <uchardet/uchardet.h> > ^~~~~~~~~~~~~~~~~~~~~ > > Uchardet is in > /opt/local/include/uchardet > installed by Macports. > > I looked at some pdfs generated by gruff and they seem fine. > > I’m on System 10.13 (Darwin 17.7) > > Hope that helps. > > Greetings Axel > -- T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io -- T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io