<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://sourceware.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="4.4+"
          urlbase="http://sourceware.org/bugzilla/"
          
          maintainer="overseers@sourceware.org"
>

    <bug>
          <bug_id>875</bug_id>
          
          <creation_ts>2005-04-26 12:13:00 +0000</creation_ts>
          <short_desc>make install error on glibc-2.3.5</short_desc>
          <delta_ts>2005-06-01 15:27:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>glibc</product>
          <component>libc</component>
          <version>2.3.5</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vivek Kulkarni">vivekk</reporter>
          <assigned_to name="GOTO Masanori">gotom</assigned_to>
          <cc>glibc-bugs</cc>
          <cf_gcchost></cf_gcchost>
          <cf_gcctarget></cf_gcctarget>
          <cf_gccbuild></cf_gccbuild>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3395</commentid>
    <comment_count>0</comment_count>
    <who name="Vivek Kulkarni">vivekk</who>
    <bug_when>2005-04-26 12:13:22 +0000</bug_when>
    <thetext>Hello,
I am getting the following error when I do &apos;make install&apos; 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&apos;
make[1]: *** [math/subdir_install] Error 2
make[1]: Leaving directory `/usr/local/MPInsight/glibc-2.3.5&apos;
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=&apos;-I/usr/local/gcc3.2/include -L/usr/local/gcc3.2/lib&apos;
export CXXFLAGS=&apos;-I/usr/local/gcc3.2/include -L/usr/local/gcc3.2/lib&apos;
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=&apos;-I/usr/local/gcc3.2/include -L/usr/local/gcc3.2/lib&apos;
export CXXFLAGS=&apos;-I/usr/local/gcc3.2/include -L/usr/local/gcc3.2/lib&apos;
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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3738</commentid>
    <comment_count>1</comment_count>
    <who name="GOTO Masanori">gotom</who>
    <bug_when>2005-06-01 15:27:23 +0000</bug_when>
    <thetext>I guess your local environment is not correctly setup.
Please check setting and your build parameters like LDFLAGS
followed by the error.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>