LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-12-2006, 08:11 PM   #1
blz8
LQ Newbie
 
Registered: Oct 2006
Location: CA, USA
Distribution: RH 7.3
Posts: 5

Rep: Reputation: 0
bintools question


Hello. I have a little question regarding bintools.

I'm trying to compile the newest glibc, just over came one hurdle (compiling & installing the newest GCC, and havign to do it agian after glibc complained to the effect of a lack of TLS support, which a simple recompile of GCC 4.1.1 did the trick with --enable-tls.)

Now I get this error:
Code:
[root@SRLINUX build]# ../glibc-2.4/configure --prefix=/usr/local/glibc2.4 --enable-addons=linuxthreads CC=/usr/local/gcc4/bin/gcc
.
.
checking for long double... yes
checking size of long double... 12
running configure fragment for sysdeps/i386/elf
checking for i386 TLS support... no
running configure fragment for nptl/sysdeps/pthread
configure: error: CFI directive support in assembler is required
Ok so I checked my assembler:
Code:
[root@SRLINUX build]# which as
/usr/bin/as
[root@SRLINUX build]# /usr/bin/as --version
GNU assembler 2.13.90.0.2 20020802
Forgetting what package as was a part of, a quick google search revealed it was part of binutils (after which I proceeded to whack my head on my desk), my current version being
Code:
[root@SRLINUX build]# rpm -qa | grep -i binutils
binutils-2.13.90.0.2-2
Ok so I went to ye olde gnu ftp and got binutils-2.17 which appears to be the newest.

* * *

Now my question is, the current binutils, which came from RPM, resides in /usr/bin/.

Is it safe to just --prefix=/usr/bin to over write the old one, or will this break anything?

* * *

P.S.

My main goal here is to install a new glibc (2.4) into it's own place in /usr/local/glibc2.4/ (just as I recently installed gcc 4.1.1 to /usr/local/gcc4/), where as old glibc can stay where it is, so a buck load of things don't end up broken.)

I obviously had to compile the new GCC (4.1.1) with the older "gcc version 3.2.1 20020903 (prerelease)", which resides in /usr/local/bin (and for that matter /usr/bin/gcc is "cc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)", the original one that came from RH rpms a while back.

After I get glibc-2.4 installed, how can I "attach" GCC 4.1.1 to it, so that when I compile with GCC 4, it uses the newer glibc stuff instead of the old "glibc 2.2.5-44", also from RPMs from a couyple years ago?

Basically my goal is to some what moderize my aging system. I nkow I could go with a newer distro, but truth be told, I feel like i've been through a life time with my ol' faitful RH 7.3 box, put a lot of work into making it "just right" for my purposes. Hell, I even use it as my own personal email server, which does a superb job of killing spam (gotta love online black list support in sendmail, which I've updatd a month ago.)

Thanks for any and all advise. While I've learned so much since I started in linux land circa 2001, I know I still have a lot to learn. (For instance, when I get glibc sorted, I've gonna compile the newest version of my kernel for the first time... before it was either RPM or a patch.)
 
Old 10-14-2006, 04:45 PM   #2
mmiikkee12
LQ Newbie
 
Registered: Oct 2006
Location: Earth
Distribution: Between distros
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by blz8
Now my question is, the current binutils, which came from RPM, resides in /usr/bin/.

Is it safe to just --prefix=/usr/bin to over write the old one, or will this break anything?
You want --prefix=/usr, unless you want a /usr/bin/bin/as :-)
 
Old 10-14-2006, 08:55 PM   #3
blz8
LQ Newbie
 
Registered: Oct 2006
Location: CA, USA
Distribution: RH 7.3
Posts: 5

Original Poster
Rep: Reputation: 0
yes my mistake, thats what I meant. Is it safe to overwrite the old binutils?
 
Old 10-19-2006, 03:18 PM   #4
mmiikkee12
LQ Newbie
 
Registered: Oct 2006
Location: Earth
Distribution: Between distros
Posts: 14

Rep: Reputation: 0
Yes, I've done this before with no problems.
(Just don't remove the old ones before building. Then you won't be able to build it :P
 
Old 10-19-2006, 06:17 PM   #5
blz8
LQ Newbie
 
Registered: Oct 2006
Location: CA, USA
Distribution: RH 7.3
Posts: 5

Original Poster
Rep: Reputation: 0
ok thanks for your help.
 
Old 10-19-2006, 07:45 PM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Your entire project/question is in the general area of what's usually called toolchain building (or toolchain replacement). So googling toolchain might help solve any further questions. You can learn a lot about how to gracefully migrate from one toolchain to the next. There are numerous resources regarding toolchains and bootstrapping: the LFS book, the buildroot project, gentoo wiki are just off the top of my head.

Last edited by osor; 10-19-2006 at 07:49 PM.
 
Old 10-19-2006, 07:48 PM   #7
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by blz8
(For instance, when I get glibc sorted, I've gonna compile the newest version of my kernel for the first time... before it was either RPM or a patch.)
Glibc and the kernel are mutually exclusive (in order to compile newer kernels, you need newer binutils and newer gcc). Of course binutils and gcc may depend on glibc, but AFAIK the kernel should not use anything from libc.
 
Old 10-21-2006, 11:26 AM   #8
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
i think when you build the new glibc you should use the latest kernel headers so your glibc has proper interface with newer kernels.
 
  


Reply



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
Small question about /etc/rc.local - Symbolic link question Arodef Linux - General 4 05-13-2006 02:29 AM
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 04:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
Question 1 Firewall Log Question 2 Network Monitor Soulful93 Linux - Networking 4 08-04-2004 11:05 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 02:02 PM

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

All times are GMT -5. The time now is 05:08 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
Open Source Consulting | Domain Registration