LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-15-2007, 05:31 AM   #1
gansan
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
cross compilation isssue of libc for powerpc


Hi all,

I have downloaded glibc2.7

And I have given the following command to build it.

Actually I want to do cross compilation for powerpc but I am struggling with the normal compilation itself



$glibc-build: ../glibc-2.7/configure –prefix=/usr

Make





Error



/home/work/ganesh/set/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':

/home/work/ganesh/set/glibc-2.7/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'

/home/work/ganesh/set/glibc-build/libc_pic.os: In function `nscd_getpw_r':

/home/work/ganesh/set/glibc-2.7/nscd/nscd_getpw_r.c:232: undefined reference to `__sync_fetch_and_add_4'

/home/work/ganesh/set/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':

/home/work/ganesh/set/glibc-2.7/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'

/home/work/ganesh/set/glibc-build/libc_pic.os: In function `nscd_getgr_r':

/home/work/ganesh/set/glibc-2.7/nscd/nscd_getgr_r.c:321: undefined reference to `__sync_fetch_and_add_4'

/home/work/ganesh/set/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':

/home/work/ganesh/set/glibc-2.7/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'

/home/work/ganesh/set/glibc-build/libc_pic.os:/home/work/ganesh/set/glibc-2.7/nscd/nscd_gethst_r.c:400: more undefined references to `__sync_fetch_and_add_4' follow

/home/work/ganesh/set/glibc-build/libc_pic.os: In function `__nscd_get_map_ref':

/home/work/ganesh/set/glibc-2.7/nscd/nscd_helper.c:404: undefined reference to `__sync_val_compare_and_swap_4'

/home/work/ganesh/set/glibc-build/libc_pic.os: In function `*__GI___libc_freeres':

/home/work/ganesh/set/glibc-2.7/malloc/set-freeres.c:39: undefined reference to `__sync_bool_compare_and_swap_4'

collect2: ld returned 1 exit status

make[1]: *** [/home/work/ganesh/set/glibc-build/libc.so] Error 1

make[1]: Leaving directory `/home/work/ganesh/set/glibc-2.7







for cross compilation



../glibc-2.7/configure –prefix=/usr –build=i686-linux –host=powerpc-603e-linux

Make



Anf end up with same error.



I have created a new file configparms with the required cc and build_cc and ar and ranlib configuration

Still stays the problem



Please help me out
 
  


Reply

Tags
libc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with cross compilation of a loadable driver module for powerPC renergy Linux - Newbie 1 10-16-2007 02:29 PM
libc.so error in glibc compilation newcomer4 Linux From Scratch 3 02-18-2006 05:23 AM
Problem with gcc powerpc cross compile !! rohya_joshi Linux - Software 2 02-07-2006 01:44 AM
Building cross-compiler gcc for powerpc-linux ccool Linux - General 3 09-17-2004 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration