This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Avoid use of libgcc_s and libgcc_eh when building glibc


On Sat, Aug 11, 2012 at 10:43 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Monday 28 May 2012 17:43:04 Joseph S. Myers wrote:
>> I've tested this patch for x86_64 and also done a test build for ARM.
>> To go in it will certainly need more architecture testing (libc
>> architectures and IA64) - but since it seems likely that review will
>> point out changes that should be made, perhaps we could sort out any
>> such changes first so the architecture maintainers are testing a patch
>> that could, subject to such testing, go in?
>
> i tested glibc-2.16 with the patch merged into latest git (and tweaking it a
> little to apply).  after disabling the long standing -lgcc_eh hack in our
> build system, i was able to bootstrap an ia64 cross-compiler fine: binutils,
> kernel/glibc headers, gcc stage1 (static C-only), full glibc, gcc stage2 (full
> C/C++/etc...).
> -mike

I am getting this error below. I see that libunwind.o is included in
libgcc.a when building gcc-static


arm-oe-linux-gnueabi-gcc  -march=armv5te  -marm -mthumb-interwork
-mtune=arm926ej-s
--sysroot=/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/sysroots/qemuarm
-nostdlib -nostartfiles -static -o
/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/elf/sln
   /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/csu/crt1.o
/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/csu/crti.o
`arm-oe-linux-gnueabi-gcc  -march=armv5te  -marm -mthumb-interwork
-mtune=arm926ej-s
--sysroot=/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/sysroots/qemuarm
 --print-file-name=crtbegin.o`
/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/elf/sln.o
/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/elf/static-stubs.o
 -Wl,--start-group
/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/libc.a
-lgcc /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/elf/libgcc-stubs.a
-Wl,--end-group -Wl,--start-group
/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/libc.a
-lgcc /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/elf/libgcc-stubs.a
-Wl,--end-group `arm-oe-linux-gnueabi-gcc  -march=armv5te  -marm
-mthumb-interwork  -mtune=arm926ej-s
--sysroot=/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/sysroots/qemuarm
 --print-file-name=crtend.o`
/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/csu/crtn.o
-Wl,-Map,/tmp/xx -Wl,--cref
/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/armv5te-oe-linux-gnueabi.gcc-cross-initial/gcc/arm-oe-linux-gnueabi/4.7.2/libgcc.a(libunwind.o):
In function `_Unwind_Resume':
/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work-shared/gcc-4.7.1.0+svn190218-r10/gcc-4_7-branch/libgcc/config/arm/libunwind.S:347:
multiple definition of `_Unwind_Resume'
/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/build-arm-oe-linux-gnueabi/elf/static-stubs.o:/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-eglibc/work/armv5te-oe-linux-gnueabi/eglibc-2.16-r6+svnr19922/eglibc-2_16/libc/elf/static-stubs.c:32:
first defined here
collect2: error: ld returned 1 exit status


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]