From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 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 0061C1F698 for ; Tue, 27 Dec 2022 10:33:26 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=clisp.org header.i=@clisp.org header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=WwZcer1w; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pA7Gn-0002bb-Vl; Tue, 27 Dec 2022 05:33:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pA7Gm-0002bI-LL for bug-gnulib@gnu.org; Tue, 27 Dec 2022 05:33:16 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pA7Gi-0005oq-2w for bug-gnulib@gnu.org; Tue, 27 Dec 2022 05:33:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1672137189; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=tDSQrxN8+RJD81XwMxqX4x3NfqogroLM5TaImlRcH14=; b=WwZcer1wLY12ar8KH+UmnWwEQJ+usqDraJdh9zZyg2ucbrmfr949E7RuogGc0rOkGH ENeoPGeDtOmyFGDfKAqj99U94cu2FbyQPHV30CZgnugM+HxRk4EASowse42A1w6TQKMP Ys79CtrFo9Hk09JmQE3pRYNeE+dy+r5R8jWdQCBFXQg4T1ikMm8i3MsPm2sJeqHzWOeg cd6L9MiAvpFE7Z2ADlb+Fq+ob4HQiE/GYmZMWx5lyLh2O4iHA7faktFHWChco3UvkVA2 WNZoZsmYYGTBU4tA12Wx4a1xiRwU74t8I0bApXAIlC97kgutZHJigNZ0gjst8sr7cy5f hv5Q== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOeiqEMSjL2ZwW80aS1XmrnM9fvaw==" X-RZG-CLASS-ID: mo00 Received: from nimes.localnet by smtp.strato.de (RZmta 48.2.1 AUTH) with ESMTPSA id v9c7e6yBRAX9Y9H (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 27 Dec 2022 11:33:09 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Fix compilation errors in C++ mode on Solaris 11 OpenIndiana Date: Tue, 27 Dec 2022 11:33:08 +0100 Message-ID: <2830376.Lt9SDvczpP@nimes> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart4526249.ejJDZkT8p0" Content-Transfer-Encoding: 7Bit Received-SPF: none client-ip=85.215.255.23; 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, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org This is a multi-part message in MIME format. --nextPart4526249.ejJDZkT8p0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" The newest Solaris OpenIndiana release (OpenIndiana 2022.10) comes with GCC 11. Therefore the _GL_ATTRIBUTE_DEALLOC and _GL_ATTRIBUTE_DEALLOC_FREE macros start to be effective on this platform. A gnulib testdir shows a couple of compilation errors in C++ files, see attached file 'log2b'. I could reduce the input file to this small one: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D i.cc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D extern "C" { namespace std { extern void free(void *); } } using std::free; extern "C" { extern wchar_t *wcsdup(const wchar_t *); } extern "C" void free (void *); extern "C" wchar_t * wcsdup (const wchar_t *s)=20 __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (free, 1))); =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $ g++ -S i.cc i.cc:12:67: error: =E2=80=98malloc=E2=80=99 attribute argument 1 is ambiguo= us 12 | __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (free, 1))) | ^ i.cc:12:67: note: use a cast to the expected type to disambiguate It's a g++ bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108231 There are three possible workarounds: (1) Write __attribute__ ((__malloc__ ((void (*) (void *)) free, 1))) instead of __attribute__ ((__malloc__ (free, 1))) (2) Use the command-line option -fno-builtin. (3) Swap the order of declarations of 'free'. I'm going with (1), since (2) is not good for production code and (3) is hairy (depends on which include file gets included first, and what the system include files contain). 2022-12-27 Bruno Haible Fix compilation errors in C++ mode on Solaris 11 OpenIndiana. * m4/gnulib-common.m4 (gl_COMMON_BODY): In _GL_ATTRIBUTE_DEALLOC_FREE, with GNU C++, cast the 'free' function. * lib/string.in.h (_GL_ATTRIBUTE_DEALLOC_FREE): With GNU C++, cast the 'free' function. * lib/wchar.in.h (_GL_ATTRIBUTE_DEALLOC_FREE): Likewise. diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 728a006ce8..40c19cab69 100644 =2D-- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -1,4 +1,4 @@ =2D# gnulib-common.m4 serial 74 +# gnulib-common.m4 serial 75 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -187,7 +187,14 @@ AC_DEFUN([gl_COMMON_BODY], [ to use this earlier definition, since may not have been incl= uded yet. */ #ifndef _GL_ATTRIBUTE_DEALLOC_FREE =2D# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) +# if defined __cplusplus && defined __GNUC__ && !defined __clang__ +/* Work around GCC bug */ +# define _GL_ATTRIBUTE_DEALLOC_FREE \ + _GL_ATTRIBUTE_DEALLOC ((void (*) (void *)) free, 1) +# else +# define _GL_ATTRIBUTE_DEALLOC_FREE \ + _GL_ATTRIBUTE_DEALLOC (free, 1) +# endif #endif =20 /* _GL_ATTRIBUTE_DEPRECATED: Declares that an entity is deprecated. diff --git a/lib/string.in.h b/lib/string.in.h index 21356914e2..64a0ab19f7 100644 =2D-- a/lib/string.in.h +++ b/lib/string.in.h @@ -82,7 +82,14 @@ can be freed via 'free'; it can be used only after declaring 'free'. */ /* Applies to: functions. Cannot be used on inline functions. */ #ifndef _GL_ATTRIBUTE_DEALLOC_FREE =2D# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) +# if defined __cplusplus && defined __GNUC__ && !defined __clang__ +/* Work around GCC bug */ +# define _GL_ATTRIBUTE_DEALLOC_FREE \ + _GL_ATTRIBUTE_DEALLOC ((void (*) (void *)) free, 1) +# else +# define _GL_ATTRIBUTE_DEALLOC_FREE \ + _GL_ATTRIBUTE_DEALLOC (free, 1) +# endif #endif =20 /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to fr= eshly diff --git a/lib/wchar.in.h b/lib/wchar.in.h index 3558adfb9d..70b8d7d259 100644 =2D-- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -99,7 +99,14 @@ can be freed via 'free'; it can be used only after declaring 'free'. */ /* Applies to: functions. Cannot be used on inline functions. */ #ifndef _GL_ATTRIBUTE_DEALLOC_FREE =2D# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) +# if defined __cplusplus && defined __GNUC__ && !defined __clang__ +/* Work around GCC bug */ +# define _GL_ATTRIBUTE_DEALLOC_FREE \ + _GL_ATTRIBUTE_DEALLOC ((void (*) (void *)) free, 1) +# else +# define _GL_ATTRIBUTE_DEALLOC_FREE \ + _GL_ATTRIBUTE_DEALLOC (free, 1) +# endif #endif =20 /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to fr= eshly --nextPart4526249.ejJDZkT8p0 Content-Disposition: attachment; filename="log2b" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; name="log2b" make all-recursive Making all in gllib make all-recursive Making all in glm4 Making all in gltests ## ---------------------------------------------------- ## ## ------------------- Gnulib tests ------------------- ## ## You can ignore compiler warnings in this directory. ## ## ---------------------------------------------------- ## make all-recursive Making all in . depbase=3D`echo test-list-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-list-c++.o -MD -MP -MF $depbase.Tpo -c -o test-list-c++.o ..= /../gltests/test-list-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from /usr/include/sys/wait.h:37, from ../gllib/sys/wait.h:28, from /usr/include/stdlib.h:45, from /usr/gcc/11/include/c++/11.3.0/cstdlib:75, from /usr/gcc/11/include/c++/11.3.0/stdlib.h:36, from ../gllib/stdlib.h:36, from ../../gltests/../gllib/xalloc.h:22, from ../../gltests/../gllib/gl_xlist.h:22, from ../../gltests/../gllib/gl_list.hh:22, from ../../gltests/test-list-c++.cc:20: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-locale-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-locale-c++.o -MD -MP -MF $depbase.Tpo -c -o test-locale-c++.= o ../../gltests/test-locale-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from ../gllib/stdio.h:58, from /usr/include/iso/wchar_iso.h:54, from /usr/include/wchar.h:31, from ../gllib/wchar.h:80, from /usr/include/xlocale.h:38, from ../gllib/locale.h:53, from ../../gltests/test-locale-c++.cc:22: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-locale-c++2.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-locale-c++2.o -MD -MP -MF $depbase.Tpo -c -o test-locale-c++= 2.o ../../gltests/test-locale-c++2.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from ../gllib/stdio.h:58, from /usr/include/iso/wchar_iso.h:54, from /usr/include/wchar.h:31, from ../gllib/wchar.h:80, from /usr/include/xlocale.h:38, from ../gllib/locale.h:53, from /usr/gcc/11/include/c++/11.3.0/clocale:42, from ../../gltests/test-locale-c++2.cc:20: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-map-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-map-c++.o -MD -MP -MF $depbase.Tpo -c -o test-map-c++.o ../.= =2E/gltests/test-map-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from /usr/include/sys/wait.h:37, from ../gllib/sys/wait.h:28, from /usr/include/stdlib.h:45, from /usr/gcc/11/include/c++/11.3.0/cstdlib:75, from /usr/gcc/11/include/c++/11.3.0/stdlib.h:36, from ../gllib/stdlib.h:36, from ../../gltests/../gllib/xalloc.h:22, from ../../gltests/../gllib/gl_xmap.h:22, from ../../gltests/../gllib/gl_map.hh:22, from ../../gltests/test-map-c++.cc:20: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-monetary-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-monetary-c++.o -MD -MP -MF $depbase.Tpo -c -o test-monetary-= c++.o ../../gltests/test-monetary-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from /usr/include/monetary.h:33, from ../gllib/monetary.h:27, from ../../gltests/test-monetary-c++.cc:23: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-omap-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-omap-c++.o -MD -MP -MF $depbase.Tpo -c -o test-omap-c++.o ..= /../gltests/test-omap-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from /usr/include/sys/wait.h:37, from ../gllib/sys/wait.h:28, from /usr/include/stdlib.h:45, from /usr/gcc/11/include/c++/11.3.0/cstdlib:75, from /usr/gcc/11/include/c++/11.3.0/stdlib.h:36, from ../gllib/stdlib.h:36, from ../../gltests/../gllib/xalloc.h:22, from ../../gltests/../gllib/gl_xomap.h:22, from ../../gltests/../gllib/gl_omap.hh:22, from ../../gltests/test-omap-c++.cc:20: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-oset-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-oset-c++.o -MD -MP -MF $depbase.Tpo -c -o test-oset-c++.o ..= /../gltests/test-oset-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from /usr/include/sys/wait.h:37, from ../gllib/sys/wait.h:28, from /usr/include/stdlib.h:45, from /usr/gcc/11/include/c++/11.3.0/cstdlib:75, from /usr/gcc/11/include/c++/11.3.0/stdlib.h:36, from ../gllib/stdlib.h:36, from ../../gltests/../gllib/xalloc.h:22, from ../../gltests/../gllib/gl_xoset.h:22, from ../../gltests/../gllib/gl_oset.hh:22, from ../../gltests/test-oset-c++.cc:20: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-set-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-set-c++.o -MD -MP -MF $depbase.Tpo -c -o test-set-c++.o ../.= =2E/gltests/test-set-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from /usr/include/sys/wait.h:37, from ../gllib/sys/wait.h:28, from /usr/include/stdlib.h:45, from /usr/gcc/11/include/c++/11.3.0/cstdlib:75, from /usr/gcc/11/include/c++/11.3.0/stdlib.h:36, from ../gllib/stdlib.h:36, from ../../gltests/../gllib/xalloc.h:22, from ../../gltests/../gllib/gl_xset.h:22, from ../../gltests/../gllib/gl_set.hh:22, from ../../gltests/test-set-c++.cc:20: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-stdalign-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-stdalign-c++.o -MD -MP -MF $depbase.Tpo -c -o test-stdalign-= c++.o ../../gltests/test-stdalign-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from ../gllib/stdio.h:58, from /usr/include/iso/wchar_iso.h:54, from /usr/include/wchar.h:31, from ../gllib/wchar.h:80, from /usr/gcc/11/include/c++/11.3.0/cwchar:44, from /usr/gcc/11/include/c++/11.3.0/bits/postypes.h:40, from /usr/gcc/11/include/c++/11.3.0/iosfwd:40, from /usr/gcc/11/include/c++/11.3.0/ios:38, from /usr/gcc/11/include/c++/11.3.0/ostream:38, from /usr/gcc/11/include/c++/11.3.0/iostream:39, from ../../gltests/test-stdalign-c++.cc:26: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-uchar-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-uchar-c++.o -MD -MP -MF $depbase.Tpo -c -o test-uchar-c++.o = =2E./../gltests/test-uchar-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from ../gllib/stdint.h:105, from ../gllib/uchar.h:44, from ../../gltests/test-uchar-c++.cc:22: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-uchar-c++2.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-uchar-c++2.o -MD -MP -MF $depbase.Tpo -c -o test-uchar-c++2.= o ../../gltests/test-uchar-c++2.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from ../gllib/stdio.h:58, from /usr/include/iso/wchar_iso.h:54, from /usr/include/wchar.h:31, from ../gllib/wchar.h:80, from /usr/gcc/11/include/c++/11.3.0/cwchar:44, from /usr/gcc/11/include/c++/11.3.0/cuchar:49, from ../../gltests/test-uchar-c++2.cc:22: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-wchar-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-wchar-c++.o -MD -MP -MF $depbase.Tpo -c -o test-wchar-c++.o = =2E./../gltests/test-wchar-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from ../gllib/stdio.h:58, from /usr/include/iso/wchar_iso.h:54, from /usr/include/wchar.h:31, from ../gllib/wchar.h:80, from ../../gltests/test-wchar-c++.cc:22: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-wchar-c++2.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-wchar-c++2.o -MD -MP -MF $depbase.Tpo -c -o test-wchar-c++2.= o ../../gltests/test-wchar-c++2.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from ../gllib/stdio.h:58, from /usr/include/iso/wchar_iso.h:54, from /usr/include/wchar.h:31, from ../gllib/wchar.h:80, from /usr/gcc/11/include/c++/11.3.0/cwchar:44, from ../../gltests/test-wchar-c++2.cc:20: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-wchar-c++3.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-wchar-c++3.o -MD -MP -MF $depbase.Tpo -c -o test-wchar-c++3.= o ../../gltests/test-wchar-c++3.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from ../gllib/stdio.h:58, from /usr/include/iso/wchar_iso.h:54, from /usr/include/wchar.h:31, from ../gllib/wchar.h:80, from ../../gltests/test-wchar-c++3.cc:20: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-wctype-h-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-wctype-h-c++.o -MD -MP -MF $depbase.Tpo -c -o test-wctype-h-= c++.o ../../gltests/test-wctype-h-c++.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from ../gllib/stdio.h:58, from /usr/include/iso/wchar_iso.h:54, from /usr/include/wchar.h:31, from ../gllib/wchar.h:80, from ../gllib/wctype.h:50, from ../../gltests/test-wctype-h-c++.cc:22: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 depbase=3D`echo test-wctype-h-c++2.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -m64 -O2 -DHAVE_CONFIG_H -DEXEEXT=3D\"\" -DEXEEXT=3D\"\" -I. -I../../gl= tests -I.. -DGNULIB_STRICT_CHECKING=3D1 -DIN_GNULIB_TESTS=3D1 -I. -I../= =2E./gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib = =2DI/export/home/bruno/prefix64gcc/include -Wall -D_REENTRANT -Wno-error -= g -O2 -MT test-wctype-h-c++2.o -MD -MP -MF $depbase.Tpo -c -o test-wctype-h= =2Dc++2.o ../../gltests/test-wctype-h-c++2.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/sys/time.h:481, from ../gllib/sys/time.h:39, from /usr/include/sys/select.h:53, from ../gllib/sys/select.h:36, from /usr/include/sys/types.h:662, from ../gllib/sys/types.h:39, from ../gllib/stdio.h:58, from /usr/include/iso/wchar_iso.h:54, from /usr/include/wchar.h:31, from ../gllib/wchar.h:80, from ../gllib/wctype.h:50, from /usr/gcc/11/include/c++/11.3.0/cwctype:50, from ../../gltests/test-wctype-h-c++2.cc:20: =2E./config.h:7313:72: error: 'malloc' attribute argument 1 is ambiguous 7313 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,= i))) | = ^ =2E./config.h:7313:72: note: use a cast to the expected type to disambiguate *** Error code 1 make: Warning: Target `all-am' not remade because of errors Current working directory /export/home/bruno/testdir-all/build-64-gcc/gltes= ts *** Error code 1 The following command caused the error: fail=3D; \ if (target_option=3Dk; case ${target_option-} in ?) ;; *) echo "am__make_= running_with_option: internal error: invalid" "target option '${target_opt= ion-}' specified" >&2; exit 1;; esac; has_opt=3Dno; sane_makeflags=3D$M= AKEFLAGS; if { if test -z '3'; then false; elif test -n ''; then true;= elif test -n '' && test -n ''; then true; else false; fi; }; then s= ane_makeflags=3D$MFLAGS; else case $MAKEFLAGS in *\\[\ \ ]*) bs=3D\\; = sane_makeflags=3D`printf '%s\n' "$MAKEFLAGS" | sed "s/$bs$bs[$bs $bs ]*//g= "`;; esac; fi; skip_next=3Dno; strip_trailopt () { flg=3D`printf '%s\= n' "$flg" | sed "s/$1.*$//"`; }; for flg in $sane_makeflags; do test $sk= ip_next =3D yes && { skip_next=3Dno; continue; }; case $flg in *=3D*|--*)= continue;; -*I) strip_trailopt 'I'; skip_next=3Dyes;; -*I?*) strip_trail= opt 'I';; -*O) strip_trailopt 'O'; skip_next=3Dyes;; -*O?*) strip_trailop= t 'O';; -*l) strip_trailopt 'l'; skip_next=3Dyes;; -*l?*) strip_trailopt = 'l';; -[dEDm]) skip_next=3Dyes;; -[JT]) skip_next=3Dyes;; esac; case $f= lg in *$target_option*) has_opt=3Dyes; break;; esac; done; test $has_op= t =3D yes); then \ failcom=3D'fail=3Dyes'; \ else \ failcom=3D'exit 1'; \ fi; \ dot_seen=3Dno; \ target=3D`echo all-recursive | sed s/-recursive//`; \ case "all-recursive" in \ distclean-* | maintainer-clean-*) list=3D'.' ;; \ *) list=3D'.' ;; \ esac; \ for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" =3D "."; then \ dot_seen=3Dyes; \ local_target=3D"$target-am"; \ else \ local_target=3D"$target"; \ fi; \ (CDPATH=3D"${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" =3D "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Warning: Target `all-recursive' not remade because of errors Current working directory /export/home/bruno/testdir-all/build-64-gcc/gltes= ts *** Error code 1 make: Warning: Target `all' not remade because of errors Current working directory /export/home/bruno/testdir-all/build-64-gcc/gltes= ts *** Error code 1 The following command caused the error: fail=3D; \ if (target_option=3Dk; case ${target_option-} in ?) ;; *) echo "am__make_= running_with_option: internal error: invalid" "target option '${target_opt= ion-}' specified" >&2; exit 1;; esac; has_opt=3Dno; sane_makeflags=3D$M= AKEFLAGS; if { if test -z '1'; then false; elif test -n ''; then true;= elif test -n '' && test -n ''; then true; else false; fi; }; then s= ane_makeflags=3D$MFLAGS; else case $MAKEFLAGS in *\\[\ \ ]*) bs=3D\\; = sane_makeflags=3D`printf '%s\n' "$MAKEFLAGS" | sed "s/$bs$bs[$bs $bs ]*//g= "`;; esac; fi; skip_next=3Dno; strip_trailopt () { flg=3D`printf '%s\= n' "$flg" | sed "s/$1.*$//"`; }; for flg in $sane_makeflags; do test $sk= ip_next =3D yes && { skip_next=3Dno; continue; }; case $flg in *=3D*|--*)= continue;; -*I) strip_trailopt 'I'; skip_next=3Dyes;; -*I?*) strip_trail= opt 'I';; -*O) strip_trailopt 'O'; skip_next=3Dyes;; -*O?*) strip_trailop= t 'O';; -*l) strip_trailopt 'l'; skip_next=3Dyes;; -*l?*) strip_trailopt = 'l';; -[dEDm]) skip_next=3Dyes;; -[JT]) skip_next=3Dyes;; esac; case $f= lg in *$target_option*) has_opt=3Dyes; break;; esac; done; test $has_op= t =3D yes); then \ failcom=3D'fail=3Dyes'; \ else \ failcom=3D'exit 1'; \ fi; \ dot_seen=3Dno; \ target=3D`echo all-recursive | sed s/-recursive//`; \ case "all-recursive" in \ distclean-* | maintainer-clean-*) list=3D'gllib glm4 gltests' ;; \ *) list=3D'gllib glm4 gltests' ;; \ esac; \ for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" =3D "."; then \ dot_seen=3Dyes; \ local_target=3D"$target-am"; \ else \ local_target=3D"$target"; \ fi; \ (CDPATH=3D"${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" =3D "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Warning: Target `all-recursive' not remade because of errors Current working directory /export/home/bruno/testdir-all/build-64-gcc *** Error code 1 make: Warning: Target `all' not remade because of errors --nextPart4526249.ejJDZkT8p0--