This is the mail archive of the libc-help@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: Bug while cross compiling for powerpc


On 01/18/10 06:15, ClÃment Foucher wrote:
Ok, here is what I got now :

Configure line :

CC=/opt/eldk/usr/bin/powerpc-linux-gcc
CXX=/opt/eldk/usr/bin/powerpc-linux-g++ CFLAGS='-O2 -g'
AR=/opt/eldk/usr/bin/powerpc-linux-ar RANLIB=/opt/eldk/usr/bin/ranlib
../glibc/configure --prefix=/opt/glibc --build=x86_64-linux
--host=powerpc-linux --target=powerpc-linux --without-fp --with-tls
--with-binutils=/opt/eldk/usr/bin --enable-add-ons=ports,nptl

But I don't put "--with-cpu=440" since I got always the same error message
("Checking sysdep dirs... configure: error: The 440 subspecies of
PowerPc is
not supported")

Make then halts on the following message:

/home/foucher/Bureau/sources/glibc-build/nscd/connections.o: In function
`nscd_init':
/home/foucher/Bureau/sources/glibc/nscd/connections.c:528: warning:
warning: inotify_init1 is not implemented and will always fail
/home/foucher/Bureau/sources/glibc-build/nscd/nscd.o: In function
`nscd_open_socket':
/home/foucher/Bureau/sources/glibc/nscd/nscd.c:442: undefined reference
to `__stack_chk_guard'
/home/foucher/Bureau/sources/glibc-build/nscd/nscd.o: In function
`parse_opt':
/home/foucher/Bureau/sources/glibc/nscd/nscd.c:291: undefined reference
to `__stack_chk_guard'
/home/foucher/Bureau/sources/glibc-build/nscd/connections.o: In function
`restart':
connections.c:(.text+0x6fe): undefined reference to `__stack_chk_guard'
/home/foucher/Bureau/sources/glibc-build/nscd/connections.o: In function
`start_threads':
connections.c:(.text+0xbf6): undefined reference to `__stack_chk_guard'
/home/foucher/Bureau/sources/glibc-build/nscd/connections.o: In function
`nscd_run_worker':
connections.c:(.text+0x192a): undefined reference to `__stack_chk_guard'
/home/foucher/Bureau/sources/glibc-build/nscd/connections.o:connections.c:(.text+0x23ce):
more undefined references to `__stack_chk_guard' follow
collect2: ld returned 1 exit status
make[2]: *** [/home/foucher/Bureau/sources/glibc-build/nscd/nscd] Erreur 1
make[2]: quittant le rÃpertoire  /home/foucher/Bureau/sources/glibc/nscd Â
make[1]: *** [nscd/others] Erreur 2
make[1]: quittant le rÃpertoire  /home/foucher/Bureau/sources/glibc Â
make: *** [all] Erreur 2



What is nscd? It seems that this is a link problem: do I miss a library?




what happens if/when you use the -march option(or equivalent)

__stack_chk_guard this looks like stack protection.
(maybe using -fno-stack-protection).

Justin P. Mattock


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