From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by sourceware.org (Postfix) with ESMTPS id 9F7B13858004 for ; Sun, 21 Mar 2021 19:50:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9F7B13858004 Received: by mail-qk1-x72f.google.com with SMTP id g20so8553184qkk.1 for ; Sun, 21 Mar 2021 12:50:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5tQ7qedUJxWFx8r+gy98zjvPIQCNZnR1mC+Ku6BXa84=; b=mGiBSlkQzlQxX0tXREV3PIOwpndMm1Rj9MdPSVtd8atiTs70nQFnAebTpouHot/hmk cEvxB+Vnq5SarNHDisxKXvylCnhIba0ucM6EOufyahUrawW3fokQBb3YRTM8dzUuDYK6 14Ri5PWZhv7rnMh2i0iiXO8DZakI3tDActkl9zwWsaD3cVH2ztjo/5bc4CR0W/h+hxWa A1ID6LS9cTaB2VoV4ZNHrBHVDYcMGzNf5BkvVmnj1RTeBUG8oou+nhQlOXc6oCBoTDS+ PbpPq61AlSJa+TA9X2Zj0KQi75pJuu8xkem5hXbZZjFxnfefuOxd2rcvJyFf7OKf5eDU ElEQ== X-Gm-Message-State: AOAM532lRvwtPaATtaT5YlWwCZ3aRu0hy7YjlcVMxnm/sPGmUatBkdrY s1NQhsPF9j1KvjxnayG8YA39TGmCJNw= X-Google-Smtp-Source: ABdhPJwyYFc956COT41B8FsrYuuKm4QdSEOFpe+pstSkZeWcdPthe8ghxIL3ZIXe01V9uQByEIGMhA== X-Received: by 2002:a05:620a:2202:: with SMTP id m2mr7862226qkh.396.1616356236054; Sun, 21 Mar 2021 12:50:36 -0700 (PDT) Received: from [192.168.0.41] (71-218-23-248.hlrn.qwest.net. [71.218.23.248]) by smtp.gmail.com with ESMTPSA id z6sm7794487qto.70.2021.03.21.12.50.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Mar 2021 12:50:35 -0700 (PDT) Subject: Re: string.h bug Benjamin-Elias Probst To: Benjamin-Elias Probst , "gcc-bugs@gcc.gnu.org" References: <1616338896089.1616@mailbox.tu-dresden.de> From: Martin Sebor Message-ID: Date: Sun, 21 Mar 2021 13:50:34 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1616338896089.1616@mailbox.tu-dresden.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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 19:50:38 -0000 On 3/21/21 9:01 AM, Benjamin-Elias Probst wrote: > Hello, > > > my computer tried to build gcc in gcc-10.2.0 > > This happend after ./configure ... sudo make on ubuntu mint 20.1: If you are reporting a bug then please enter it in GCC Bugzilla (https://gcc.gnu.org/bugzilla/). This list simply collects Bugzilla updates and isn't meant for directly posting bugs or for discussion. If you are asking a usage question then please use the gcc-help mailing list. Martin > > > TARGET_CPU_DEFAULT="" \ > HEADERS="auto-host.h ansidecl.h" DEFINES="" \ > /bin/bash ./mkconfig.sh config.h > TARGET_CPU_DEFAULT="" \ > HEADERS="options.h insn-constants.h config/vxworks-dummy.h config/i386/biarch64.h config/i386/i386.h config/i386/unix.h config/i386/att.h config/dbxelf.h config/elfos.h config/gnu-user.h config/glibc-stdint.h config/i386/x86-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 config/initfini-array.h defaults.h" DEFINES="LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4 DEFAULT_LIBC=LIBC_GLIBC ANDROID_DEFAULT=0" \ > /bin/bash ./mkconfig.sh tm.h > TARGET_CPU_DEFAULT="" \ > HEADERS="config/i386/i386-protos.h config/linux-protos.h tm-preds.h" DEFINES="" \ > /bin/bash ./mkconfig.sh tm_p.h > TARGET_CPU_DEFAULT="" \ > HEADERS="auto-host.h ansidecl.h" DEFINES="" \ > /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-macros -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 [-fpermissive] > 2539 | #define rlim_t long > | ^~~~ > In file included from genmodes.c:21: > system.h:495:14: error: conflicting declaration of C function 'void* sbrk(int)' > 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(intptr_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(const char*, const char*)' > 312 | extern const char *strstr (const char *__haystack, const char *__needle) > | ^~~~~~ > 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(int)' > 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 'char* basename(const char*)' > 112 | extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_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(const char*)' > 484 | extern "C++" const char *basename (const char *__filename) > | ^~~~~~~~ > make: *** [Makefile:2798: build/genmodes.o] Error 1 > > > Best regards, > > Benjamin-Elias Probst >