LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   glibc2.3.4 make, produces error "memcmp... file address 68" (http://www.linuxquestions.org/questions/linux-software-2/glibc2-3-4-make-produces-error-memcmp-file-address-68-a-771935/)

tgp1994 11-27-2009 11:39 AM

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.

tgp1994 11-27-2009 02:23 PM

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.)

knudfl 11-27-2009 02:31 PM

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

And you probably mean gmp / mpfr

.....

tgp1994 11-27-2009 02:55 PM

Quote:

Originally Posted by knudfl (Post 3771698)
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.

knudfl 11-28-2009 05:32 AM

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.
.....

tgp1994 11-28-2009 09:51 AM

Interesting, alright. I'll wipe and repeat, this time with the LFS method. Thank you very much.


All times are GMT -5. The time now is 06:33 PM.