LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-27-2009, 10:39 AM   #1
tgp1994
Member
 
Registered: Nov 2009
Distribution: Used to use: Ubuntu. Still use: Debian, Other small distros
Posts: 78

Rep: Reputation: 17
Post glibc2.3.4 make, produces error "memcmp... file address 68"


Hi there everyone. I'm on a distribution called Core Linux (https://sourceforge.net/projects/coredistro/), and I'm having trouble installing glibc 2.3.4. So I ftp'd it, extracted it to a folder in the top of the hard drive, then I added in linuxthreads. Now I have configured it, but when I try to make it, it stops with an error looking like this:

Quote:
Originally Posted by glibc make
Error: subtraction of two symbols in different sections '.rodata' {.rodata section} - 'memcmp' {.text section} at file address 68
make[2]: *** [/glibc-2.3.4/build/string/memcmp.o] Error 1
make[1]: *** [string/subdir_lib] Error 2
make: *** [all] Error 2
If anyone can help me on this, that would be great.
 
Old 11-27-2009, 01:23 PM   #2
tgp1994
Member
 
Registered: Nov 2009
Distribution: Used to use: Ubuntu. Still use: Debian, Other small distros
Posts: 78

Original Poster
Rep: Reputation: 17
Well, I'm past that error, but now when I try make bootstrap on gcc, I get this:

Quote:
libtool: link: 'fib_table.lo' is not a valid libtool object
This seems to occur when make bootstrap is going through the gmp/mpn directory that I put in gcc, since I couldn't install gmp sepeartely. (It didn't seem to work.)
 
Old 11-27-2009, 01:31 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,554

Rep: Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512
Which version of gcc ? ?
And which Linux is used for the build ?
Like "Debian 5 Lenny" etc. etc.

And you probably mean gmp / mpfr

.....

Last edited by knudfl; 11-28-2009 at 03:06 AM.
 
0 members found this post helpful.
Old 11-27-2009, 01:55 PM   #4
tgp1994
Member
 
Registered: Nov 2009
Distribution: Used to use: Ubuntu. Still use: Debian, Other small distros
Posts: 78

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by knudfl View Post
Which version of gcc ? ?
And which Linux is used for the build ?
Like "Debian 5 Lenny" etc. etc.

And you probably mean gmp / mpfr
.....
I'm trying to install the latest version of gcc.

Like I said at the top, the distro is Core Linux.

Well, I don't think gmp and mpfr are supposed to be in each other's directories, and gcc stops once it gets to gmp.
 
0 members found this post helpful.
Old 11-28-2009, 04:32 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,554

Rep: Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512
Info, Core Linux http://coredistro.sourceforge.net/

OK, is just so, the things you are doing may look confusing
and contradictory.
Unusual to build a glibc(-2.3.4) unless it's for another OS.?
http://www.gnu.org/software/libc/res....html#building
"Building glibc is quite tricky and has a number of pitfalls....
Never install over a live system. ..."

In matter of fact, you already have glibc-2.5 .
'ls /lib/libc-2.5.so' and 'ls /pkg/glibc-2.5-44.pkg'
Repacing with 2.3.4 will usually trash the OS.

And gcc-4.4.2 cannot be build with glibc-2.3.4 .
( 2.5 could be usable ?, at least works with gcc-4.4.0 )
grep -n glibc gcc.spec (see link below for source, 4.4.2)
72:BuildRequires: glibc-static
85:# Make sure glibc supports stack protector
86:# Make sure glibc supports DT_GNU_HASH
90:# Make sure glibc supports TFmode long double
.....
.....
' ls /lib/libbfd* ' and ' ls /lib/libopcode* '
will show the version of binutils : 2.17
At least two options in gcc-4.4.2 require binutils 2.19.51.0.14
http://download.fedora.redhat.com/pu...7.fc12.src.rpm
> > gcc-4.4.2-7.fc12.src.rpm : source code + patches.
From the file gcc.spec :
# Need binutils which support --hash-style=gnu >= 2.17.50.0.2-7
# Need binutils which support mffgpr and mftgpr >= 2.17.50.0.2-8
# Need binutils which support --build-id >= 2.17.50.0.17-3
# Need binutils which support %gnu_unique_object >= 2.19.51.0.14
# Need binutils which support .cfi_sections >= 2.19.51.0.14-33

Your binutils may be 2.17.50 ..and they shortened the name :
e.g. libbbfd-2.17.50.0.6-6.el5.so : is how it looks in EL 5.
.....
The gcc people recommends the LFS build metod for gcc ...
.. Only the development version has gcc-4.4.2 included :
http://www.linuxfromscratch.org/lfs/...ent/part3.html
gcc pass 1
http://www.linuxfromscratch.org/lfs/...gcc-pass1.html
gcc pass 2
http://www.linuxfromscratch.org/lfs/...gcc-pass2.html
gcc install ( where gmp and mpfr just before that got installed.)
http://www.linuxfromscratch.org/lfs/...ter06/gcc.html

You will need a build directory outside gcc-4.4.2/ .
And there is no "gmp/mpfr directory".
There must be : gmp/ and mpfr/ directories inside gcc-4.4.2/
Please show the complete configure line, if further problems.
.....

Last edited by knudfl; 11-28-2009 at 10:34 AM.
 
Old 11-28-2009, 08:51 AM   #6
tgp1994
Member
 
Registered: Nov 2009
Distribution: Used to use: Ubuntu. Still use: Debian, Other small distros
Posts: 78

Original Poster
Rep: Reputation: 17
Interesting, alright. I'll wipe and repeat, this time with the LFS method. Thank you very much.
 
  


Reply

Tags
gcc442, glibc, linux


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
unetbootin doesn't run, produces "bus error" message yoav_by Linux - Software 4 09-03-2009 03:43 PM
script using "/usr/bin/cat error" produces "cannot open" in cron Dcrusoe Programming 6 07-22-2009 03:30 PM
Using cpio on a 26GB archive produces "File too large" mfairclough Linux - Newbie 2 06-28-2004 05:55 PM
Knetmapper produces "relocation" error when I try to run it Mel_P Mandriva 2 04-14-2004 05:12 PM
Knetmapper produces "relocation" error when I try to run it Mel_P Linux - Software 0 04-14-2004 03:48 AM


All times are GMT -5. The time now is 11:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration