This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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]

Error while cross-compiling glibc 2.7 for Alpha architecture


Hello,

Although I sent a similar message to libc-help
(http://sourceware.org/ml/libc-help/2008-06/msg00061.html), I am trying
again here for three reasons. Firstly, I think that I sent the message to
the wrong list, as I found a discussion about a similar problem here.
Secondly, I didn't get any replies. Finally, I will try to focus on only
one of the problems I have encountered.

I am using crosstool-ng
(http://ymorin.is-a-geek.org/dokuwiki/projects/crosstool) to build a
cross-compiler for an alphaev56-unknown-linux-gnu system. The host is an
i686-unknown-linux-gnu system.

I get a compilation error while crosstool-ng is building glibc, when
trying to build the following combination of components for the target:

glibc 2.7
gcc 4.2.3
binutils 2.18
linux 2.6.24.7

The error is as follows:

"alphaev56-unknown-linux-gnu-gcc       -shared -static-libgcc -Wl,-O1 
-Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2 
-B/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/csu/

-Wl,--version-script=/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/libc.map
-Wl,-soname=libc.so.6.1 -Wl,-z,combreloc -Wl,-z,relro
-Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main
-L/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc
-L/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/math
-L/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/elf
-L/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/dlfcn
-L/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/nss
-L/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/nis
-L/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/rt
-L/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/resolv
-L/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/crypt
-L/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/nptl
-Wl,-rpath-link=/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc:/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/math:/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/elf:/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/dlfcn:/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/nss:/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/nis:/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/rt:/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/resolv:/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/crypt:/root/Temp/crosstool-ng/cr
 osstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/nptl
-o
/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/libc.so
-T
/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/shlib.lds
/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/csu/abi-note.o
/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/elf/soinit.os
/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/libc_pic.os
/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/elf/sofini.os
/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/elf/interp.os
/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/elf/ld.so
-lgcc
/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/libc_pic.os:
In function `__fxstatat':
(.text+0xa8168): undefined reference to `__atfct_seterrno'
collect2: ld returned 1 exit status
make[2]: ***
[/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc/libc.so]
Error 1
make[2]: Leaving directory
`/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/src/glibc-2.7'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/root/Temp/crosstool-ng/crosstool-ng-2008-06-16/targets/alphaev56-unknown-linux-gnu/build/build-libc'
Build failed in step 'Installing C library'"

I found what I think is a similar discussion about this problem, but for
MIPS:

http://sourceware.org/ml/libc-ports/2006-08/msg00036.html
http://sourceware.org/ml/libc-ports/2006-09/msg00016.html

I changed and applied the first, simple patch to
sysdeps/unix/sysv/linux/alpha/fxstatat.c. No change however. I get the
same error.

Any ideas? Is the MIPS problem really related? Any available fix for Alpha?

Thanks!

Ioannis



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