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