Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549638 - sys-devel/gcc-4.8.4 system.h error: declaration of C function strsignal conflicts with extern strsignal
Summary: sys-devel/gcc-4.8.4 system.h error: declaration of C function strsignal confl...
Status: RESOLVED DUPLICATE of bug 545010
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-05-16 10:32 UTC by Fedja Beader
Modified: 2015-05-23 16:18 UTC (History)
1 user (show)

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


Attachments
/var/portage/logs/i686-hardened-nossp-geode/build/sys-devel/gcc-4.8.4:20150516-004604.log (gcc-4.8.4:20150516-004604.log.xz,54.14 KB, application/x-xz)
2015-05-16 10:37 UTC, Fedja Beader
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fedja Beader 2015-05-16 10:32:37 UTC
/bin/bash /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../move-if-change tmp-bt.inc i386-builtin-types.inc
echo timestamp > s-i386-bt
cp /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gcc-ar.c gcc-nm.c
cp /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gcc-ar.c gcc-ranlib.c
/tmp/portage/sys-devel/gcc-4.8.4/work/build/./prev-gcc/xg++ -B/tmp/portage/sys-devel/gcc-4.8.4/work/build/./prev-gcc/ -B/usr/i686-pc-linux-gnu/bin/ -nostdinc++ -B/tmp/portage/sys$
devel/gcc-4.8.4/work/build/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/tmp/portage/sys-devel/gcc-4.8.4/work/build/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tmp/$
ortage/sys-devel/gcc-4.8.4/work/build/prev-i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/tmp/portage/sys-devel/gcc-4.8.4/work/build/prev-i686-pc-linux-gnu/libstdc++$
v3/include -I/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/libstdc++-v3/libsupc++ -L/tmp/portage/sys-devel/gcc-4.8.4/work/build/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -L$
tmp/portage/sys-devel/gcc-4.8.4/work/build/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c -DEFAULT_PIE_SSP   -fno-PIE  -DHOST_GENERATOR_FILE -O2 -pipe -fno-stack-protecto$
 -march=geode -gtoggle -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/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc -I/tmp/portage/sys-devel/gcc-4.8.4/work$
gcc-4.8.4/gcc/. -I/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../include -I/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../libcpp/include  -I/tmp/portage/sys-devel$
gcc-4.8.4/work/gcc-4.8.4/gcc/../libdecnumber -I/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../libdecnumber/bid -I../libdecnumber -I/tmp/portage/sys-devel/gcc-4.8.4/work/g$
c-4.8.4/gcc/../libbacktrace -DCLOOG_INT_GMP    /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c -o gengtype.o
In file included from /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:26:0:
/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 /tmp/portage/sys-devel/gcc-4.8.4/work/build/prev-i686-pc-linux-gnu/libstdc++-v3/include/cstring:42:0,
                 from /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:205,
                 from /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 /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:645:0,
                 from /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:26:
/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 /tmp/portage/sys-devel/gcc-4.8.4/work/build/prev-i686-pc-linux-gnu/libstdc++-v3/include/cstring:42:0,
                 from /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:205,
                 from /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 /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:26:0:
/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))
                                                        ^
/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)))
                                            ^
/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)
                    ^
/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 '/tmp/portage/sys-devel/gcc-4.8.4/work/build/gcc'
Makefile:4194: recipe for target 'all-stage2-gcc' failed
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory '/tmp/portage/sys-devel/gcc-4.8.4/work/build'
Makefile:17398: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/tmp/portage/sys-devel/gcc-4.8.4/work/build'
Makefile:17604: recipe for target 'bootstrap-lean' failed
make: *** [bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-4.8.4::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-4.8.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.8.4::gentoo'`.
 * The complete build log is located at '/var/portage/logs/i686-hardened-nossp-geode/build/sys-devel/gcc-4.8.4:20150516-004604.log'.
 * The ebuild environment file is located at '/tmp/portage/sys-devel/gcc-4.8.4/temp/environment'.
 * Working directory: '/tmp/portage/sys-devel/gcc-4.8.4/work/build'
 * S: '/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4'
 * 
 * Please include /tmp/portage/sys-devel/gcc-4.8.4/work/gcc-build-logs.tar.bz2 in your bug report.
 * 
 * 
 * The following package has failed to build or install:
 * 
 *  (sys-devel/gcc-4.8.4:4.8/4.8::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/portage/logs/i686-hardened-nossp-geode/build/sys-devel/gcc-4.8.4:20150516-004604.log'
 * 


Reproducible: Always

Steps to Reproduce:
emerge -auDN system on some i686-hardened stage3
Comment 1 Fedja Beader 2015-05-16 10:37:52 UTC
Created attachment 403364 [details]
/var/portage/logs/i686-hardened-nossp-geode/build/sys-devel/gcc-4.8.4:20150516-004604.log
Comment 2 SpanKY gentoo-dev 2015-05-23 16:18:07 UTC
the referenced bug is closed, but there are follow ups tracking status

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