Bug 875 - make install error on glibc-2.3.5
Summary: make install error on glibc-2.3.5
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.3.5
: P2 normal
Target Milestone: ---
Assignee: GOTO Masanori
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-26 12:13 UTC by Vivek Kulkarni
Modified: 2005-06-01 15:27 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vivek Kulkarni 2005-04-26 12:13:22 UTC
Hello,
I am getting the following error when I do 'make install' on glibc-2.3.5.
/usr/local/MPInsight/lib/sys/bin/ld: cannot 
find /usr/local/MPInsight/lib/sys/lib/libc.so.6
collect2: ld returned 1 exit status
make[2]: *** [/usr/local/MPInsight/glibc-2.3.5-build/math/libm.so] Error 1
make[2]: Leaving directory `/usr/local/MPInsight/glibc-2.3.5/math'
make[1]: *** [math/subdir_install] Error 2
make[1]: Leaving directory `/usr/local/MPInsight/glibc-2.3.5'
make: *** [install] Error 2


Here are my machine configurations:
1. RedHat version: RHES 7.2
2. Kernel: 2.4.9-34
3. gcc : 2.96 (default gcc. We compile gcc-3.2 in a different location)

Here are my compilation steps:
1. binutils-2.15.tar.gz (successful)

export CC=/usr/local/gcc3.2/bin/gcc
export CPP=/usr/local/gcc3.2/bin/cpp
export CXX=/usr/local/gcc3.2/bin/g++
export CFLAGS='-I/usr/local/gcc3.2/include -L/usr/local/gcc3.2/lib'
export CXXFLAGS='-I/usr/local/gcc3.2/include -L/usr/local/gcc3.2/lib'
export LDFLAGS=-L/usr/local/gcc3.2/lib

./configure --prefix=/usr/local/MPInsight/lib/sys

make 
make install

2. rebuild gcc-3.2 (successful)

export CC=/usr/local/gcc3.2/bin/gcc
export CPP=/usr/local/gcc3.2/bin/cpp
export CXX=/usr/local/gcc3.2/bin/g++
export CFLAGS='-I/usr/local/gcc3.2/include -L/usr/local/gcc3.2/lib'
export CXXFLAGS='-I/usr/local/gcc3.2/include -L/usr/local/gcc3.2/lib'
export LDFLAGS=-L/usr/local/gcc3.2/lib

./configure --prefix=/usr/local/MPInsight/lib/sys --enable-shared --enable-
threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --
host=i386-redhat-linux

make bootstrap
make install

3. build glibc-2.3.5

(Point the the above compiled gcc-3.2)
export CC=/usr/local/MPInsight/lib/sys/bin/gcc
export CPP=/usr/local/MPInsight/lib/sys/bin/cpp
export CXX=/usr/local/MPInsight/lib/sys/bin/g++
export LDFLAGS=-L/usr/local/MPInsight/lib/sys/lib
export CPPFLAGS=-I/usr/local/MPInsight/lib/sys/include
export CXXFLAGS=-I/usr/local/MPInsight/lib/sys/include

tar -xzf glibc-2.3.5.tar.gz
cd glibc-2.3.5; tar -xzf ../glibc-linuxthreads-2.3.5.tar.gz; cd ..

mkdir glibc-2.3.5-build;
cd glibc-2.3.5-build;
../glibc-2.3.5/configure --with-binutils=/usr/local/MPInsight/lib/sys/bin/ --
enable-add-ons=linuxthreads --prefix=/usr/local/MPInsight/lib/sys/

[./configure is successful]

make [successful]

make install [erroring out]


Appreciate your help in this matter.
Comment 1 GOTO Masanori 2005-06-01 15:27:23 UTC
I guess your local environment is not correctly setup.
Please check setting and your build parameters like LDFLAGS
followed by the error.