This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


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: Problems building glibc-2.5 for x86 with crosstool-ng


Il giorno 17/giu/2012, alle ore 16.15, Mirko Banchi ha scritto:

> Hi all, i have to rebuild glibc-2.5 for x86 but that is a very old release and i falied to compile with a recent gcc (4.5). In glibc mailing list adviced me crosstool-ng that shoud help. I tried some combinations for versions of gcc, glibc and binutils but always found some problems. However i'd like to build a toolchain with the following conf:
> 
> gcc 4.1.2
> glibc 2.5 (with nptl)
> binutils 2.19.1a.
> 
> However gcc and binutils build fine but building glibc i get an error (from build.log):
> 
> 
> [...]
> [ALL  ]    make[3]: *** No rule to make target `/home/mpc8306/lib/glibc-2.5/.build/i386-unknown-linux-gnu/build/build-libc-final/nptl/pthread_spin_trylock.o', needed by `lib-noranlib'.  Stop.
> [...]
> [ERROR]    make[2]: *** [nptl/subdir_lib] Error 2
> 
> Seems that there are some problems with make rules...that file (thread_spin_trylock.c) doesn't exist...
> 
> Any ideas?
> 
> Thank you al for the help.
> 
> Mirko
> 

I fixed the problem setting CT_ARCH_CPU and CT_ARCH_TUNE to i686.

Maybe this could be useful to someone.

Thank you all.

Mirko

--
Mirko Banchi

e-mail:    mk.banchi@gmail.com
id-jabber: mk.banchi@jabber.org

PGP key fingerprint:

308F BFB1 4E67 2522 C88E 
DC69 7631 52ED 32A5 6456




--
For unsubscribe information see http://sourceware.org/lists.html#faq


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