Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538422 - sys-devel/gcc-4.9.2 - In file included from .../work/gcc-4.9.2/gcc/gcc-ar.c:22:0: .../work/gcc-4.9.2/gcc/system.h:506:34: error: declaration of C function ‘const char* strsignal(int)’ conflicts with extern const char *strsignal (int);
Summary: sys-devel/gcc-4.9.2 - In file included from .../work/gcc-4.9.2/gcc/gcc-ar.c:2...
Status: RESOLVED DUPLICATE of bug 545356
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-01 11:54 UTC by jamesjames
Modified: 2015-04-13 17:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,341.51 KB, text/plain)
2015-02-01 11:54 UTC, jamesjames
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jamesjames 2015-02-01 11:54:26 UTC
Created attachment 395302 [details]
build.log

I build new system from /usr/portage/scripts/bootstrap.sh

I get error:
In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22:0:
/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:506:34: error: declaration of C function ‘const char* strsignal(int)’ conflicts with
 extern const char *strsignal (int);
.....
.....
In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22:0:
/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:506:20: note: const char* strsignal(int)
 extern const char *strsignal (int);
                    ^
Makefile:1069: recipe for target 'gcc-ar.o' failed
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-01 12:02:11 UTC
In file included from .../work/gcc-4.9.2/gcc/gcc-ar.c:22:0:
.../work/gcc-4.9.2/gcc/system.h:506:34: error: declaration of C function ‘const char* strsignal(int)’ conflicts with extern const char *strsignal (int);
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-01 12:02:47 UTC
Please post your `emerge --info' output in a comment.
Comment 3 jamesjames 2015-02-01 15:59:51 UTC
In make.conf been -j5 on 2 core cpu, I change it to -j3 and gcc-4.9.2 compiled fine.
Thanks for the advice.
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2015-04-13 12:42:01 UTC
I'm getting a similar issue with gcc-4.8.4 in my stage building box:

x86_64-pc-linux-gnu-g++ -c -DEFAULT_PIE_SSP   -fno-PIE  -DHOST_GENERATOR_FILE  -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc -I/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../libbacktrace    /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c -o gengtype.o
In file included from /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:26:0:
/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:500:34: error: declaration of C function 'const char* strsignal(int)' conflicts with
 extern const char *strsignal (int);
                                  ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/cstring:42:0,
                 from /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:205,
                 from /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:26:
/usr/include/string.h:563:14: error: previous declaration 'char* strsignal(int)' here
 extern char *strsignal (int __sig) __THROW;
              ^
In file included from /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:645:0,
                 from /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:26:
/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../include/libiberty.h:110:36: error: new declaration 'char* basename(const char*)'
 extern char *basename (const char *);
                                    ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/cstring:42:0,
                 from /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:205,
                 from /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:26:
/usr/include/string.h:600:26: error: ambiguates old declaration 'const char* basename(const char*)'
 extern "C++" const char *basename (const char *__filename)
                          ^
In file included from /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:26:0:
/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:289:56: error: 'CHAR_BIT' was not declared in this scope
                              ? ~ (t) 0 << (sizeof(t) * CHAR_BIT - 1) : (t) 0))
                                                        ^
/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:290:44: note: in expansion of macro 'INTTYPE_MINIMUM'
 #define INTTYPE_MAXIMUM(t) ((t) (~ (t) 0 - INTTYPE_MINIMUM (t)))
                                            ^
/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:294:20: note: in expansion of macro 'INTTYPE_MAXIMUM'
 # define UCHAR_MAX INTTYPE_MAXIMUM (unsigned char)
                    ^
/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.h:455:23: note: in expansion of macro 'UCHAR_MAX'
   CHAR_TOKEN_OFFSET = UCHAR_MAX + 1,
                       ^
Makefile:1070: recipe for target 'gengtype.o' failed
make[3]: *** [gengtype.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.8.4/work/build/gcc'
Makefile:4153: recipe for target 'all-stage1-gcc' failed
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.8.4/work/build'
Makefile:16937: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.8.4/work/build'
Makefile:17252: recipe for target 'bootstrap-lean' failed
make: *** [bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-4.8.4::gentoo failed (compile phase):
 *   emake failed
Comment 5 Anthony Basile gentoo-dev 2015-04-13 17:18:46 UTC
I know its customary to resolve dups in terms of the older bug, but #545356 has more info.  I don't think this bug is solved.

*** This bug has been marked as a duplicate of bug 545356 ***