From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout5.zih.tu-dresden.de (mailout5.zih.tu-dresden.de [141.30.67.74]) by sourceware.org (Postfix) with ESMTPS id 553CD3858C27 for ; Sun, 21 Mar 2021 15:01:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 553CD3858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mailbox.tu-dresden.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=benjamin-elias.probst@mailbox.tu-dresden.de Received: from [172.26.34.106] (helo=msx.tu-dresden.de) by mailout5.zih.tu-dresden.de with esmtps (TLSv1.2:AES256-SHA256:256) (Exim 4.84_2) (envelope-from ) id 1lNzaE-0001XS-5Z for gcc-bugs@gcc.gnu.org; Sun, 21 Mar 2021 16:01:38 +0100 Received: from MSX-L201.msx.ad.zih.tu-dresden.de (172.26.34.201) by MSX-L106.msx.ad.zih.tu-dresden.de (172.26.34.106) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 21 Mar 2021 16:01:36 +0100 Received: from MSX-L201.msx.ad.zih.tu-dresden.de ([fe80::ac66:1dfd:ab93:9c88]) by MSX-L201.msx.ad.zih.tu-dresden.de ([fe80::ac66:1dfd:ab93:9c88%23]) with mapi id 15.00.1497.012; Sun, 21 Mar 2021 16:01:36 +0100 From: Benjamin-Elias Probst To: "gcc-bugs@gcc.gnu.org" Subject: string.h bug Benjamin-Elias Probst Thread-Topic: string.h bug Benjamin-Elias Probst Thread-Index: AQHXHmLeh5TNkZ6Lx0iIjxDULCoiYw== Date: Sun, 21 Mar 2021 15:01:36 +0000 Message-ID: <1616338896089.1616@mailbox.tu-dresden.de> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [141.30.216.44] x-pmwin-version: 4.0.4, Antivirus-Engine: 3.80.1, Antivirus-Data: 5.82 MIME-Version: 1.0 X-TUD-Virus-Scanned: mailout5.zih.tu-dresden.de X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, HTML_MESSAGE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2021 15:01:41 -0000 Hello, my computer tried to build gcc in gcc-10.2.0 This happend after ./configure ... sudo make on ubuntu mint 20.1: TARGET_CPU_DEFAULT=3D"" \ HEADERS=3D"auto-host.h ansidecl.h" DEFINES=3D"" \ /bin/bash ./mkconfig.sh config.h TARGET_CPU_DEFAULT=3D"" \ HEADERS=3D"options.h insn-constants.h config/vxworks-dummy.h config/i386/bi= arch64.h config/i386/i386.h config/i386/unix.h config/i386/att.h config/dbx= elf.h config/elfos.h config/gnu-user.h config/glibc-stdint.h config/i386/x8= 6-64.h config/i386/gnu-user-common.h config/i386/gnu-user64.h config/linux.= h config/linux-android.h config/i386/linux-common.h config/i386/linux64.h c= onfig/initfini-array.h defaults.h" DEFINES=3D"LIBC_GLIBC=3D1 LIBC_UCLIBC=3D= 2 LIBC_BIONIC=3D3 LIBC_MUSL=3D4 DEFAULT_LIBC=3DLIBC_GLIBC ANDROID_DEFAULT= =3D0" \ /bin/bash ./mkconfig.sh tm.h TARGET_CPU_DEFAULT=3D"" \ HEADERS=3D"config/i386/i386-protos.h config/linux-protos.h tm-preds.h" DEFI= NES=3D"" \ /bin/bash ./mkconfig.sh tm_p.h TARGET_CPU_DEFAULT=3D"" \ HEADERS=3D"auto-host.h ansidecl.h" DEFINES=3D"" \ /bin/bash ./mkconfig.sh bconfig.h g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-= tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format= -attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macr= os -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -= fno-PIE -I. -Ibuild -I. -I./build -I./../include -I./../libcpp/include \ -o build/genmodes.o genmodes.c In file included from bconfig.h:3, from genmodes.c:20: auto-host.h:2539:16: error: declaration does not declare anything [-fpermis= sive] 2539 | #define rlim_t long | ^~~~ In file included from genmodes.c:21: system.h:495:14: error: conflicting declaration of C function 'void* sbrk(i= nt)' 495 | extern void *sbrk (int); | ^~~~ In file included from system.h:301, from genmodes.c:21: /usr/include/unistd.h:1041:14: note: previous declaration 'void* sbrk(intpt= r_t)' 1041 | extern void *sbrk (intptr_t __delta) __THROW; | ^~~~ In file included from genmodes.c:21: system.h:503:14: error: ambiguating new declaration of 'char* strstr(const = char*, const char*)' 503 | extern char *strstr (const char *, const char *); | ^~~~~~ In file included from /usr/include/c++/9/cstring:42, from system.h:241, from genmodes.c:21: /usr/include/string.h:312:20: note: old declaration 'const char* strstr(con= st char*, const char*)' 312 | extern const char *strstr (const char *__haystack, const char *__ne= edle) | ^~~~~~ In file included from genmodes.c:21: system.h:551:20: error: conflicting declaration of C function 'const char* = strsignal(int)' 551 | extern const char *strsignal (int); | ^~~~~~~~~ In file included from /usr/include/c++/9/cstring:42, from system.h:241, from genmodes.c:21: /usr/include/string.h:447:14: note: previous declaration 'char* strsignal(i= nt)' 447 | extern char *strsignal (int __sig) __THROW; | ^~~~~~~~~ In file included from system.h:702, from genmodes.c:21: ./../include/libiberty.h:112:14: error: ambiguating new declaration of 'cha= r* basename(const char*)' 112 | extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTR= IBUTE_NONNULL(1); | ^~~~~~~~ In file included from /usr/include/c++/9/cstring:42, from system.h:241, from genmodes.c:21: /usr/include/string.h:484:26: note: old declaration 'const char* basename(c= onst char*)' 484 | extern "C++" const char *basename (const char *__filename) | ^~~~~~~~ make: *** [Makefile:2798: build/genmodes.o] Error 1 Best regards, Benjamin-Elias Probst