Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156071 - Patch: Compiling glibc-2.5 with gcc-4.3.0 fails with redefinition errors
Summary: Patch: Compiling glibc-2.5 with gcc-4.3.0 fails with redefinition errors
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-23 17:25 UTC by Peter Levine
Modified: 2006-11-26 05:25 UTC (History)
0 users

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


Attachments
Patch to update glibc to define new __extern_inline macros (glibc-inline.patch,63.71 KB, patch)
2006-11-23 17:29 UTC, Peter Levine
Details | Diff
Updated Patch for Glibc (glibc-inline.patch,64.61 KB, patch)
2006-11-23 21:11 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Levine 2006-11-23 17:25:47 UTC
When compiling glibc-2.5.90.20061022 with gcc-4.3.0 I got the error:

../sysdeps/ieee754/dbl-64/s_signbit.c:27: error: redefinition of '__signbit'
../sysdeps/i386/fpu/bits/mathinline.h:135: error: previous definition of '__signbit' was here
make[2]: *** [/var/tmp/portage/glibc-2.5.90.20061022-r1/work/build-default-i686-pc-linux-gnu-nptl/math/s_signbit.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.5.90.20061022-r1/work/glibc-2.5/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.5.90.20061022-r1/work/glibc-2.5'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.5.90.20061022-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  glibc-2.5.90.20061022-r1.ebuild, line 1157:   Called toolchain-glibc_src_compile
  glibc-2.5.90.20061022-r1.ebuild, line 261:   Called die

!!! make for default failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Probably fails with glibc-2.5 vanilla too.
Comment 1 Peter Levine 2006-11-23 17:29:58 UTC
Created attachment 102610 [details, diff]
Patch to update glibc to define new __extern_inline macros

This is a modified patch from the redhat site.

Note the following from the developer Jakub Jelinek:

This patch updates glibc to define new __extern_inline and
__extern_always_inline macros which should be used instead of
extern inline, extern __inline, extern __inline__ resp. extern
__always_inline throughout the headers (and other glibc sources)
and makes sure the old GNU semantics that glibc headers and rest of glibc
too rely on is used no matter what -std= option is chosen.
Comment 2 Peter Levine 2006-11-23 21:11:41 UTC
Created attachment 102616 [details, diff]
Updated Patch for Glibc

There seemed to be a problem with compiling gcc-4.3 with gcc-4.3:



In file included from /usr/include/sys/types.h:223,
                 from /var/tmp/portage/gcc-4.3.0_alpha20061111/work/gcc-4.3-20061111/gcc/tsystem.h:93,
                 from /var/tmp/portage/gcc-4.3.0_alpha20061111/work/gcc-4.3-20061111/gcc/crtstuff.c:68:
/var/tmp/portage/gcc-4.3.0_alpha20061111/work/build/./gcc/include/sys/sysmacros.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/gcc-4.3.0_alpha20061111/work/build/./gcc/include/sys/sysmacros.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/gcc-4.3.0_alpha20061111/work/build/./gcc/include/sys/sysmacros.h:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/gcc-4.3.0_alpha20061111/work/build/./gcc/include/sys/sysmacros.h:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/gcc-4.3.0_alpha20061111/work/build/./gcc/include/sys/sysmacros.h:75: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/var/tmp/portage/gcc-4.3.0_alpha20061111/work/build/./gcc/include/sys/sysmacros.h:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.3.0_alpha20061111/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.3.0_alpha20061111/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.3.0_alpha20061111/work/build'
make: *** [profiledbootstrap] Error 2



After combing the bugzillas I found a patch for the glibc includes.  I have merged it with the previous patch.
Comment 3 SpanKY gentoo-dev 2006-11-26 05:25:55 UTC
re-open when something is actually merged into upstream CVS