From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9EA1B1F5AE for ; Sat, 22 May 2021 14:33:05 +0000 (UTC) Received: from localhost ([::1]:42936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkSgX-0006r2-Pi for normalperson@yhbt.net; Sat, 22 May 2021 10:33:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkSgU-0006qr-Qe for bug-gnulib@gnu.org; Sat, 22 May 2021 10:32:58 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.22]:26694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkSgS-0007p4-Ar; Sat, 22 May 2021 10:32:58 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1621693972; cv=none; d=strato.com; s=strato-dkim-0002; b=BIFr17pWGSi7KMA/cLbHRKTdqSwRnat6GYU8eFclylwXVAdceTkTTVR9YGOxK304+M c4ZIVULGDwzFOa6XZUQOfHyJlzA68i9Zzi7cySev0fP31jH9drjqMuAdiS/TzxdJJLlS GCj0K/ZYP8tB3IVuoMSSoNZ9XEXZgNQr8Ynv+vvfdUkwmSfUYO93GRkCXPuRKVg4nlQb UYjivWT0r8D2DboUh7Orne2Wahk8zrmg2/0o9MJI6eiyAgr5SwsxExOL3nD3fukkFI4j EKFiLuKS9DtcZK2SNLVZnMEsBtKOTC4KSgNkjZ/GFlfZfRjwON/uGLBKxbgzWSEgjkkH l2VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1621693972; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=ZY/33PYk6+Z5jXFzYVlSgKiLRiID+8r9etkET6GD1a0=; b=DE9JwHGCh/BSkvfQzt/+PhS1rMPI9EEEqrvaTKBmnWphfdjBZFp/xV8i7oNsa/IfBu s0JRfKdoiQ/wt4ieICQNo+Ap7F30R3pIQC9czPDnzMdp8UdQL5pKvuDiWGbUza52hnfo 862nE+n+0K8gkyfANgYRUlqh2TkSD7pOs+8dAXfMrGk3/cWUPX5BW9b99Jv4xvU0N8O6 UjxTMil34had+M+jx5jD/opg4hbRYUnbKzBOEK3SriRfaaYiQH86OHnz7aRQKaFF4pMh Byd+dT71PLAeyZ2LmCML43eNaeqUqKymJ3HfpJViXZpxrNQhesW038+E1CJpkre9NDXY ODig== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1621693972; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=ZY/33PYk6+Z5jXFzYVlSgKiLRiID+8r9etkET6GD1a0=; b=VLgLBq6s5EJFtm9zNCixihSiJWtN3WdGAT2IzAvSCP29J+CabU5qkAYqTsz9PyyOY9 8K93BW6Zi4Og0agbC50P7JC1IfZicGg8vNNbOrtwUaT/3OuE7ziA6BEdzGsDdr35Mwth IOWVRr5iZQ6pMEZFqux9+St3yUH7Yrjc7DelUV1Ks5kBvCUGTsewDLfS/lYPN3RRKBId eFY4htNvbDOaidy5zf8UkkK19LZ8SMs802FWbMiffEWDihLTGpai7u4fpAcm+0Q2CZRq 1NT+7m1dYw3V0pQDc3z9xcMBhorjs78IL+R/hBc0NPjcOo8OJnYg2glYCfMjqHRkTWoa XKsA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqf3z5NW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.26.1 DYNA|AUTH) with ESMTPSA id Z0bd4cx4MEWq42y (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sat, 22 May 2021 16:32:52 +0200 (CEST) From: Bruno Haible To: Werner LEMBERG Subject: Re: can't compile `stdlib.h` on mxe Date: Sat, 22 May 2021 16:32:51 +0200 Message-ID: <13187658.4rgUex5avo@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-210-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20210522.144551.551889804977514006.wl@gnu.org> References: <20210522.120351.2143127505500278390.wl@gnu.org> <2661657.bLj8NbuU8O@omega> <20210522.144551.551889804977514006.wl@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: none client-ip=85.215.255.22; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hello Werner, > Note that this is a new error; it didn't happen in July 2019 (the > last time I've tried to build ttfautohint with mxe and Qt5). Yes. We have added 'restrict' in many places, to match the function declarations in POSIX. > > * Can you verify that ddlineedit.moc.cpp starts with a '#include > > ' statement? [1] >=20 > It doesn't =E2=80=93 it is an auto-generated Qt file. However, the file = starts > with >=20 > ``` > #include > #include "ddlineedit.h" > ... > ``` >=20 > and `ddlineedit.h`'s first code lines are >=20 > ``` > #ifndef DDLINEEDIT_H_ > #define DDLINEEDIT_H_ >=20 > #include > ``` That's not enough. needs to be included before . The Qt documentation [1] recommends a Makefile rule such as moc $(DEFINES) $(INCPATH) -i $< -o $@ Try to change this to moc -fconfig.h $(DEFINES) $(INCPATH) -i $< -o $@ or { echo '#include '; moc $(DEFINES) $(INCPATH) -i $< ; } > $@.tmp mv $@.tmp $@ > > * Can you show the block of preprocessor statements in that > > defines 'restrict'? >=20 > ``` > /* Define to the equivalent of the C99 'restrict' keyword, or to > nothing if this is not supported. Do not define if restrict is > supported only directly. */ > #define restrict __restrict__ > /* Work around a bug in older versions of Sun C++, which did not > #define __restrict__ or support _Restrict or __restrict__ > even though the corresponding Sun C compiler ended up with > "#define restrict _Restrict" or "#define restrict __restrict__" > in the previous line. This workaround can be removed once > we assume Oracle Developer Studio 12.5 (2016) or later. */ > #if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__ > # define _Restrict > # define __restrict__ > #endif > ``` That's OK. > > * Can you show the command that is being executed (make V=3D1)? A > > symbolic placeholder like 'CXX' is useless for debugging a > > compilation failure. >=20 > ``` > i686-w64-mingw32.static-g++ -std=3Dgnu++11 -DHAVE_CONFIG_H -I. -I.. \ > -I../lib -I../gnulib/src \ > -I../gnulib/src > -I/home/wl/git/mxe/usr/i686-w64-mingw32.static/include/freetype2 \ > -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=3D1 -DQT_NO_DEBUG \ > -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. \ > -I. -I/home/wl/git/mxe/usr/i686-w64-mingw32.static/qt5/include \ > -I/home/wl/git/mxe/usr/i686-w64-mingw32.static/qt5/include/QtWidgets \ > -I/home/wl/git/mxe/usr/i686-w64-mingw32.static/qt5/include/QtGui \ > -I/home/wl/git/mxe/usr/i686-w64-mingw32.static/qt5/include/QtCore \ > -Irelease \ > -I/home/wl/git/mxe/usr/i686-w64-mingw32.static/qt5/mkspecs/win32-g++ \ > -DBUILD_GUI \ > -I/home/wl/git/mxe/usr/i686-w64-mingw32.static/include/freetype2 \ > -pipe -fno-keep-inline-dllexport -O2 -std=3Dgnu++11 -Wall -Wextra \ > -Wextra -ffunction-sections -fdata-sections -fexceptions -mthreads \ > -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=3D1 -DQT_NO_DEBUG \ > -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -g -O2 \ > -MT ttfautohintGUI-ddlineedit.moc.o -MD -MP -MF \ > .deps/ttfautohintGUI-ddlineedit.moc.Tpo -c \ > -o ttfautohintGUI-ddlineedit.moc.o `test -f 'ddlineedit.moc.cpp' \ > || echo './'`ddlineedit.moc.cpp > ``` That's also OK. > > * What are the C compiler and C++ compiler versions that you use in > > this build? >=20 > gcc & g++ 5.5.0, which are the default compilers of mxe That's also OK. In the past, we could have problems if the C compiler and the C++ compiler were of a different brand. But that does not seem to be the case any more. Bruno [1] https://doc.qt.io/qt-6/moc.html