public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: Martin Sebor <msebor@gmail.com>
To: Benjamin-Elias Probst
	<benjamin-elias.probst@mailbox.tu-dresden.de>,
	"gcc-bugs@gcc.gnu.org" <gcc-bugs@gcc.gnu.org>
Subject: Re: string.h bug Benjamin-Elias Probst
Date: Sun, 21 Mar 2021 13:50:34 -0600	[thread overview]
Message-ID: <ccc99e90-90e0-ffc0-8860-27c4a715b16b@gmail.com> (raw)
In-Reply-To: <1616338896089.1616@mailbox.tu-dresden.de>

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
> 



      reply	other threads:[~2021-03-21 19:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-21 15:01 Benjamin-Elias Probst
2021-03-21 19:50 ` Martin Sebor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ccc99e90-90e0-ffc0-8860-27c4a715b16b@gmail.com \
    --to=msebor@gmail.com \
    --cc=benjamin-elias.probst@mailbox.tu-dresden.de \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).