This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/30678] New: sysmacros.h get currupt from Fixincludes with updated glibc.
- From: "ron3763 at msn dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2007 09:33:57 -0000
- Subject: [Bug bootstrap/30678] New: sysmacros.h get currupt from Fixincludes with updated glibc.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi all,
Frank, Bruce, I added you both to the cc line as you where the last to touch
what appears to me to be a fix up problem where one isn't needed. This also
may occur farther down in the bootstrap, but atm is in stage1.
Notes:
glibc is 20070111 with the patch set to make it C99 compliant with the new
compiler std of handing inline's.
Here is a snippet of sysmacros.h from glibc now followed by what the compiler
chocked on during stage one bootstrap. Separated by equals. Also I included
below that, some text showing the compile break.
You will notice I hope the dangling for munged test where only thing left are
two "__" underscores on a line, which list I checked isn't valid C/C++ ;)
Thank you,
Ron
========================================
#ifndef _SYS_SYSMACROS_H
#define _SYS_SYSMACROS_H 1
#include <features.h>
/* If the compiler does not know long long it is out of luck. We are
not going to hack weird hacks to support the dev_t representation
they need. */
#ifdef __GLIBC_HAVE_LONG_LONG
__extension__
__extern_inline unsigned int gnu_dev_major (unsigned long long int __dev)
__THROW;
__extension__
__extern_inline unsigned int gnu_dev_minor (unsigned long long int __dev)
__THROW;
__extension__
__extern_inline unsigned long long int gnu_dev_makedev (unsigned int __major,
unsigned int __minor)
__THROW;
# if defined __GNUC__ && __GNUC__ >= 2
__extension__ __extern_inline unsigned int
__NTH (gnu_dev_major (unsigned long long int __dev))
{
return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
}
__extension__ __extern_inline unsigned int
__NTH (gnu_dev_minor (unsigned long long int __dev))
{
return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
}
__extension__ __extern_inline unsigned long long int
__NTH (gnu_dev_makedev (unsigned int __major, unsigned int __minor))
{
return ((__minor & 0xff) | ((__major & 0xfff) << 8)
| (((unsigned long long int) (__minor & ~0xff)) << 12)
| (((unsigned long long int) (__major & ~0xfff)) << 32));
}
# endif
=======================================================
#ifndef _SYS_SYSMACROS_H
#define _SYS_SYSMACROS_H 1
#include <features.h>
/* If the compiler does not know long long it is out of luck. We are
not going to hack weird hacks to support the dev_t representation
they need. */
#ifdef __GLIBC_HAVE_LONG_LONG
__extension__
__
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned int gnu_dev_major (unsigned long long int __dev)
__THROW;
__extension__
__
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned int gnu_dev_minor (unsigned long long int __dev)
__THROW;
__extension__
__
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned long long int gnu_dev_makedev (unsigned int __major,
unsigned int __minor)
__THROW;
# if defined __GNUC__ && __GNUC__ >= 2
__extension__ __
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned int
__NTH (gnu_dev_major (unsigned long long int __dev))
{
return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
}
__extension__ __
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned int
__NTH (gnu_dev_minor (unsigned long long int __dev))
{
return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
}
__extension__ __
#if __STDC_VERSION__ < 19901L
extern
#endif
_inline unsigned long long int
__NTH (gnu_dev_makedev (unsigned int __major, unsigned int __minor))
{
return ((__minor & 0xff) | ((__major & 0xfff) << 8)
| (((unsigned long long int) (__minor & ~0xff)) << 12)
| (((unsigned long long int) (__major & ~0xfff)) << 32));
}
# endif
================================================================
var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
-O -O2 -O2 -pipe -fomit-frame-pointer -O2 -march=core2 -mtune=core2 -mssse3
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../.././gcc
-I/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc
-I/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/.
-I/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc
-I/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../include
-I/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../libdecnumber
-I../../libdecnumber -o _clear_cache.o -MT _clear_cache.o -MD -MP -MF
_clear_cache.dep -DL_clear_cache -c
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/libgcc2.c \
-fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/sys/sysmacros.h:8,
from /usr/include/gentoo-multilib/amd64/sys/types.h:223,
from /usr/include/sys/types.h:8,
from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/tsystem.h:93,
from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/libgcc2.c:33:
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:42:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:49:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:56:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:65:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:75:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:85:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/sys/sysmacros.h:8,
from /usr/include/gentoo-multilib/amd64/sys/types.h:223,
from /usr/include/sys/types.h:8,
from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/tsystem.h:93,
from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/libgcc2.c:33:
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:42:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:49:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:56:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:65:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:75:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:85:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/sys/sysmacros.h:8,
from /usr/include/gentoo-multilib/amd64/sys/types.h:223,
from /usr/include/sys/types.h:8,
from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/tsystem.h:93,
from
/var/tmp/portage/sys-devel/gcc-4.3.98/work/gcc-4.3.98/libgcc/../gcc/libgcc2.c:33:
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:42:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:49:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:56:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:65:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:75:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/sys-devel/gcc-4.3.98/work/build/./gcc/include/gentoo-multilib/amd64/sys/sysmacros.h:85:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/sys/sysmacros.h:8,
--
Summary: sysmacros.h get currupt from Fixincludes with updated
glibc.
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ron3763 at msn dot com
GCC build triplet: x86_64-pc-linux-gnu
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30678