I ran across this before with 4.8.0 when we were getting ready to bring 4.8.1 into the build system:

In file included from /usr/include/x86_64-linux-gnu/sys/resource.h:25:0,
                 from ../../gcc-4.8.1/gcc/system.h:395,
                 from ../../gcc-4.8.1/gcc/genconstants.c:28:
/usr/include/x86_64-linux-gnu/bits/resource.h:131:18: error: declaration does not declare anything [-fpermissive]
In file included from ../../gcc-4.8.1/gcc/genconstants.c:28:0:
../../gcc-4.8.1/gcc/system.h:444:23: error: declaration of C function 'void* sbrk(int)' conflicts with
In file included from ../../gcc-4.8.1/gcc/system.h:254:0,
                 from ../../gcc-4.8.1/gcc/genconstants.c:28:
/usr/include/unistd.h:1065:14: error: previous declaration 'void* sbrk(intptr_t)' here
In file included from ../../gcc-4.8.1/gcc/genconstants.c:28:0:
../../gcc-4.8.1/gcc/system.h:448:48: error: new declaration 'char* strstr(const char*, const char*)'
In file included from /usr/include/c++/4.7/cstring:44:0,
                 from ../../gcc-4.8.1/gcc/system.h:205,
                 from ../../gcc-4.8.1/gcc/genconstants.c:28:
/usr/include/string.h:331:1: error: ambiguates old declaration 'const char* strstr(const char*, const char*)'
In file included from ../../gcc-4.8.1/gcc/genconstants.c:28:0:
../../gcc-4.8.1/gcc/system.h:500:34: error: declaration of C function 'const char* strsignal(int)' conflicts with
In file included from /usr/include/c++/4.7/cstring:44:0,
                 from ../../gcc-4.8.1/gcc/system.h:205,
                 from ../../gcc-4.8.1/gcc/genconstants.c:28:
/usr/include/string.h:562:14: error: previous declaration 'char* strsignal(int)' here
In file included from ../../gcc-4.8.1/gcc/system.h:645:0,
                 from ../../gcc-4.8.1/gcc/genconstants.c:28:
../../gcc-4.8.1/gcc/../include/libiberty.h:110:36: error: new declaration 'char* basename(const char*)'
In file included from /usr/include/c++/4.7/cstring:44:0,
                 from ../../gcc-4.8.1/gcc/system.h:205,
                 from ../../gcc-4.8.1/gcc/genconstants.c:28:
/usr/include/string.h:599:26: error: ambiguates old declaration 'const char* basename(const char*)'
make[2]: *** [build/genconstants.o] Error 1
make[2]: Leaving directory `/mnt/clfs/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/mnt/clfs/sources/gcc-build'
make: *** [all] Error 2

I was reading threads and it had to do with -fpermissive. Any input? Has anyone encountered this in their multilib builds? One other use has mentioned at the IRC channel. They said it compiled weird but worked. Not sure what that means.

Sincerely,

WIlliam Harrington
_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org

Reply via email to