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


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?



--------------------------------------------------
From: "Justin P. Mattock" <justinmattock@gmail.com>
Sent: Monday, January 18, 2010 11:07 AM
To: "ClÃment Foucher" <Clement.FOUCHER@unice.fr>
Cc: <libc-help@sourceware.org>
Subject: Re: Bug while cross compiling for powerpc

On 01/18/10 01:55, ClÃment Foucher wrote:
Thank you for your help, but I see that the options are for x86/x86-64.
Since I'm using a PowerPC, it won't help. But using this link, I found
the following page:
http://gcc.gnu.org/onlinedocs/gcc/RS_002f6000-and-PowerPC-Options.html
and I will take a closer look to it, maybe it will help.

Thank you.

ClÃment Foucher


cool.. yeah I don't know the powerpc options.. out of curiosity what might on do i.g. (lets say iMac but powerpc chip);

-m64 -mpowerpc -mpower2

although I see:

-mno-power2
which tells me no power2(maybe core2
I really don't know).

Justin P. Mattock


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