[Top][All Lists]

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

Re: can't compile `stdlib.h` on mxe

From: Bruno Haible
Subject: Re: can't compile `stdlib.h` on mxe
Date: Sat, 22 May 2021 14:25:00 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-210-generic; KDE/5.18.0; x86_64; ; )

Hi Werner,

> While compiling my `ttfautohint` package with a slightly tailored mxe
> build, I get the following compilation error:
>   CXX      ttfautohintGUI-ddlineedit.moc.o
> In file included from 
> /home/wl/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.5.0/include/c++/cwchar:44:0,
>                  from 
> /home/wl/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.5.0/include/c++/bits/postypes.h:40,
>                  from 
> /home/wl/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.5.0/include/c++/iosfwd:40,
>                  from 
> /home/wl/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.5.0/include/c++/memory:72,
>                  from ddlineedit.moc.cpp:9:
> ../gnulib/src/stdlib.h:1904:1: error: expected ',' or '...' before 'string'
>  _GL_FUNCDECL_RPL (strtoull, unsigned long long,
>  ^
> Attached is the built `stdlib.h` file, together with the used
> `bootstrap.conf`.  Please advise.

The error message "expected ',' or '...' before 'string'" points to a problem
with the 'restrict' keyword.

An appropriate definition of 'restrict' should be available in the gnulib-
generated config.h file.

* Can you verify that ddlineedit.moc.cpp starts with a '#include <config.h>'
  statement? [1]

* Can you show the block of preprocessor statements in <config.h> that
  defines 'restrict'?

* Can you show the command that is being executed (make V=1)? A symbolic
  placeholder like 'CXX' is useless for debugging a compilation failure.

* What are the C compiler and C++ compiler versions that you use in this


[1] https://www.gnu.org/software/gnulib/manual/html_node/Source-changes.html

reply via email to

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