OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Alez on April 21, 2006, 10:44:38 am

Title: Compiling Glibc
Post by: Alez 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!
Title: Compiling Glibc
Post by: Meanie 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...
Title: Compiling Glibc
Post by: Alez 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
Title: Compiling Glibc
Post by: Alez 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
Title: Compiling Glibc
Post by: Alez on April 21, 2006, 03:44:14 pm
ok, this problem solved using grp patch for glibc

what will be the next...