From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20199 invoked by alias); 30 Sep 2004 13:58:18 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 20174 invoked from network); 30 Sep 2004 13:58:15 -0000 Received: from unknown (HELO nav2) (203.200.13.13) by sourceware.org with SMTP; 30 Sep 2004 13:58:15 -0000 Received: from appolo.lgdomain.com ([192.168.1.21]) by nav2 with InterScan Messaging Security Suite; Thu, 30 Sep 2004 19:34:38 +0530 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: compilation problem during building of glibc for arm-linux target Date: Thu, 30 Sep 2004 13:58:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Pradip Singh" To: Cc: X-SW-Source: 2004-09/txt/msg00326.txt.bz2 Hi all, I am building the tool chain for the first time. I have build the binutil= s 2.15.91 as provided from arm devzone site, for arm-linux target by givin= g the option for configuration as ../binutils-2004-qa1/configure --target=3Darm-linux --prefix=3D/usr/arm_to= ols Then I build the GCC. I am bulding the GCC taking it from the snapshot vers= ion 4.0.0. I am building GCC by providing the follwing command for configu= ration. ../gcc-4.0-20040926/configure --target=3Darm-linux --prefix=3D/usr/arm_too= ls --disable-threads --with-cpu=3Darm1020e --enable-languages=3Dc --withou= t-headers I am able to build the arm-linux-gcc cross compiler. Now the problem comes during the building of glibc. I am using the following option to configure the glibc. And before configu= re I have set CC=3Darm-linux-gcc and set the path variable approrpiatly so= that CC picks up arm-linux-gcc properly. ../glibc-20040927/configure arm-linux --build=3Di686-pc-linux-gnu --pref= ix=3D/usr/arm_tools/arm-linux --enable-add-ons=3Dlinuxthreads --host=3Darm-= linux --with-headers=3D/usr/arm_tools/arm-linux/include but i am getting the following compilation error ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= -------------------------------------------- arm-linux-gcc dl-reloc.c -c -std=3Dgnu99 -O2 -Wall -Winline -Wstrict-protot= ypes -Wwrite-strings -g -I../include -I. -I/usr/src/build/build-glibc-= 20040927/elf -I.. -I../libio -I/usr/src/build/build-glibc-20040927 -I../sy= sdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linux/arm -I../linuxthrea= ds/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/p= thread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -= I../linuxthreads/sysdeps/arm -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/= unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix= /mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -= I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/fpu -I../sysdeps/arm -= I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -= I../sysdeps/generic -nostdinc -isystem /usr/arm_tools1/lib/gcc/arm-linux/4.= 0.0/include -isystem /usr/arm_tools1/arm-linux/include -D_LIBC_REENTRANT -i= nclude ../inclu../include/libc-symbols.h -o /usr/src/build/build-glib= c-20040927/elf/dl-reloc.o -MD -MP -MF /usr/src/build/build-glibc-20040927/e= lf/dl-reloc.o.dt -MT /usr/src/build/build-glibc-20040927/elf/dl-reloc.o In file included from dynamic-link.h:59, from dl-reloc.c:267: ../sysdeps/arm/dl-machine.h: In function '_dl_relocate_object': ../sysdeps/arm/dl-machine.h:364: error: invalid storage class for function = 'fix_bad_pc24' ../sysdeps/arm/dl-machine.h:399: error: invalid storage class for function = 'elf_machine_rel' ../sysdeps/arm/dl-machine.h:524: error: invalid storage class for function = 'elf_machine_rela' ../sysdeps/arm/dl-machine.h:603: error: invalid storage class for function = 'elf_machine_rel_relative' ../sysdeps/arm/dl-machine.h:612: error: invalid storage class for function = 'elf_machine_rela_relative' ../sysdeps/arm/dl-machine.h:621: error: invalid storage class for function = 'elf_machine_lazy_rel' make[2]: *** [/usr/src/build/build-glibc-20040927/elf/dl-reloc.o] Error 1 make[2]: Leaving directory `/usr/src/build/glibc-20040927/elf' make[1]: *** [elf/subdir_lib] Error 2 make[1]: Leaving directory `/usr/src/build/glibc-20040927' make: *** [all] Error 2 ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= -------------- Any help will be appreciated. Thanks and regards, Pradip