Author Topic: Compiling Glibc  (Read 3344 times)

Alez

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://alex.hispasource.com
Compiling Glibc
« on: April 21, 2006, 10:44:38 am »
hi!

I'm trying to compile glibc-2.2.5 in order to obtain locales for my language (es_ES).

First I had some troubles with linuxthreads, and I applied all patches for glibc-2.2.5 and linuxthreads-2.2.5 from pdaxrom/src

Now, when compiling I obtain the following error:

gcc crti.S -c  -I../include -I.  -I.. -I../libio  -I../sysdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -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 /opt/native/arm/3.4.5-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.5/include -isystem /opt/native/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h     -DHAVE_INITFINI -DASSEMBLER  -I.  -g0  -o crti.o
crti.S: Assembler messages:
crti.S:96: Error: can't resolve `_GLOBAL_OFFSET_TABLE_' {*UND* section} - `.L7' {.text section}
crti.S:61: Error: internal_relocation (type: OFFSET_IMM) not fixed up
crti.S:62: Error: internal_relocation (type: OFFSET_IMM) not fixed up
crti.S:63: Error: internal_relocation (type: OFFSET_IMM) not fixed up
crti.S:64: Error: internal_relocation (type: OFFSET_IMM) not fixed up
make[1]: *** [crti.o] Error 1
make[1]: Leaving directory `/home/root/libc/glibc-2.2.5/csu'
make: *** [csu/subdir_lib] Error 2


I think it's a related arch error but don't know how to solve. I'm using pdaxrom beta1.1.0 and native compile.

Configure options:
./configure --with-headers=/opt/native/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include --enable-add-ons --without-fp


Any help will be appreciated!
« Last Edit: April 21, 2006, 10:46:26 am by Alez »
SL-C3000 - DCF-660W - GPS

my feed: pdaXrom feed
website (spanish): zaurus

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Compiling Glibc
« Reply #1 on: April 21, 2006, 11:06:39 am »
Quote
hi!

I'm trying to compile glibc-2.2.5 in order to obtain locales for my language (es_ES).

First I had some troubles with linuxthreads, and I applied all patches for glibc-2.2.5 and linuxthreads-2.2.5 from pdaxrom/src

Now, when compiling I obtain the following error:

gcc crti.S -c  -I../include -I.  -I.. -I../libio  -I../sysdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -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 /opt/native/arm/3.4.5-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.5/include -isystem /opt/native/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h     -DHAVE_INITFINI -DASSEMBLER  -I.  -g0  -o crti.o
crti.S: Assembler messages:
crti.S:96: Error: can't resolve `_GLOBAL_OFFSET_TABLE_' {*UND* section} - `.L7' {.text section}
crti.S:61: Error: internal_relocation (type: OFFSET_IMM) not fixed up
crti.S:62: Error: internal_relocation (type: OFFSET_IMM) not fixed up
crti.S:63: Error: internal_relocation (type: OFFSET_IMM) not fixed up
crti.S:64: Error: internal_relocation (type: OFFSET_IMM) not fixed up
make[1]: *** [crti.o] Error 1
make[1]: Leaving directory `/home/root/libc/glibc-2.2.5/csu'
make: *** [csu/subdir_lib] Error 2


I think it's a related arch error but don't know how to solve. I'm using pdaxrom beta1.1.0 and native compile.

Configure options:
./configure --with-headers=/opt/native/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include --enable-add-ons --without-fp


Any help will be appreciated!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124040\"][{POST_SNAPBACK}][/a][/div]


I ran into the same problem when I tried and after some googling it seemed like a bug with the gcc 3.x compiler series. well, I got sidetracked to do other stuff and had not investigated further...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Alez

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://alex.hispasource.com
Compiling Glibc
« Reply #2 on: April 21, 2006, 11:35:26 am »
yes i'm using gcc 3.4.5. I have applied some patches to compile under 3.x but no lucky
SL-C3000 - DCF-660W - GPS

my feed: pdaXrom feed
website (spanish): zaurus

Alez

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://alex.hispasource.com
Compiling Glibc
« Reply #3 on: April 21, 2006, 02:36:06 pm »
I could bypass the error adding CFLAGS="-O1" to make but now I recieve this error:

gcc initgroups.c -c -O1 -Wall -Winline -Wstrict-prototypes -Wwrite-strings      -I../inc                                                                     lude -I.  -I.. -I../libio  -I../sysdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linu                                                                     x -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -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../s                                                                     ysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -I.                                                                     ./sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps                                                                     /ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/el                                                                     f -I../sysdeps/generic  -nostdinc -isystem /opt/native/arm/3.4.5-xscale-softvfp/lib/gcc/                                                                     armv5tel-cacko-linux/3.4.5/include -isystem /opt/native/arm/3.4.5-xscale-softvfp/armv5te                                                                     l-cacko-linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h     -o initgr                                                                     oups.o
In file included from ../include/bits/string2.h:1,
                 from ../string/string.h:360,
                 from ../include/string.h:49,
                 from initgroups.c:24:
../string/bits/string2.h:80: warning: `packed' attribute ignored
../string/bits/string2.h:81: warning: `packed' attribute ignored
../string/bits/string2.h:82: warning: `packed' attribute ignored
../string/bits/string2.h:83: warning: `packed' attribute ignored
../string/bits/string2.h:84: warning: `packed' attribute ignored
../string/bits/string2.h:85: warning: `packed' attribute ignored
../string/bits/string2.h:86: warning: `packed' attribute ignored
initgroups.c: In function `internal_getgrouplist':
initgroups.c:179: error: syntax error before "__FUNCTION__"
make[1]: *** [initgroups.o] Error 1
make[1]: Leaving directory `/home/root/libc/glibc-2.2.5/grp'
make: *** [grp/subdir_lib] Error 2

help appreciated
SL-C3000 - DCF-660W - GPS

my feed: pdaXrom feed
website (spanish): zaurus

Alez

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://alex.hispasource.com
Compiling Glibc
« Reply #4 on: April 21, 2006, 03:44:14 pm »
ok, this problem solved using grp patch for glibc

what will be the next...
SL-C3000 - DCF-660W - GPS

my feed: pdaXrom feed
website (spanish): zaurus