This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Experiences while compiling glibc-2.3.2-pre1


I recently installed a stock RedHat 8.0 system + GCC 3.2.2 and tried to compile
glibc 2.3.1. I ran into a couple of speed-bumps that I'd like to detail here.

First of all, make install continually had a problem running the iconvconfig
program. The following output was consistent:

---

/usr/bin/install -c -m 644 gconv-modules /usr/lib/gconv/gconv-modules
if test -f "/usr/lib/gconv/gconv-modules.cache"; then \
   LC_ALL=C LANGUAGE=C \
   /root/glibc-2.3.1/obj/elf/ld.so --library-path
/root/glibc-2.3.1/obj:/root/glibc-2.3.1/obj/math:/root/glibc-2.3.1/obj/elf:/root/glibc-2.3.1/obj/dlfcn:/root/glibc-2.3.1/obj/nss:/root/glibc-2.3.1/obj/nis:/root/glibc-2.3.1/obj/rt:/root/glibc-2.3.1/obj/resolv:/root/glibc-2.3.1/obj/crypt:/root/glibc-2.3.1/obj/linuxthreads
\
   /root/glibc-2.3.1/obj/iconv/iconvconfig \
     ; \
fi
make[2]: *** [/usr/lib/gconv/gconv-modules] Error 139
make[2]: Leaving directory `/root/glibc-2.3.1/iconvdata'
make[1]: *** [iconvdata/subdir_install] Error 2
make[1]: Leaving directory `/root/glibc-2.3.1'
make: *** [install] Error 2
root at webdav:~/glibc-2.3.1/obj> /root/glibc-2.3.1/obj/iconv/iconvconfig
Segmentation fault (core dumped)

---

I looked and noticed that I was running binutils 2.13.90.0.2..which Should
work, but I decided to upgrade to 2.13.90.0.18 anyway. While running the rpm
command, a stray ldconfig (which modified libc.so.6's symlink) crashed the rpm
program, and consequently crashed the rpm database. However binutils installed!

So I reran the make install for glibc 2.3.1 and the same problem occurred.
Thinking this might be an issue with GCC 3.2.2 or something, I grabbed
glibc-2.3.2-pre1 and gave it a shot. Same problem!

Turns out that the /usr/lib/gconv/gconv-modules.cache file was present and was
Possibly a stale cache file. Who knows if this was caused by a 'make -j 2'..
I'm not sure, but I removed it and the make install continued.

Shortly after, the install stopped at another point:

---

make[3]: Leaving directory `/root/glibc-2.3.2/elf'
make[2]: *** No rule to make target `/root/glibc-2.3.2/obj/dlfcn/libdl.so.2',
needed by `/root/glibc-2.3.2/obj/elf/sprof'.  Stop.
make[2]: Leaving directory `/root/glibc-2.3.2/elf'
make[1]: *** [elf/subdir_install] Error 2
make[1]: Leaving directory `/root/glibc-2.3.2'
make: *** [install] Error 2
root at webdav:~/glibc-2.3.2/obj> ls /root/glibc-2.3.2/obj/dlfcn/libdl.so.2
ls: /root/glibc-2.3.2/obj/dlfcn/libdl.so.2: No such file or directory

---

Well, I linked libdl.so.2 to libdl.so and continued the 'make install'. The
install finally finished and glibc installed OK. I even thought to run a
/usr/sbin/iconvconfig (the newly installed version) to see what would happen,
and it still produces a coredump. Maybe it's just my luck.

But anyway, the 'No rule to make target ... libdl.so.2' seems like a valid bug
because libdl.so.2 was never created, only libdl.so was. I still don't know if
'make -j 2' on an SMP system is safe for building libc, but I compiled
gilbc-2.3.2 without the parallel option, and it still came up with this error.

Just thought I'd send in my test results. Maybe someone else with a RH 8.0
system had more luck without accidentally wiping the rpm database? ;)

Configure options: ../configure --prefix=/usr --enable-add-ons=linuxthreads
--without-cvs --enable-kernel=2.4.0 --disable-profile


 -Byron

-- 
Byron Stanoszek                         Ph: (330) 644-3059
Systems Programmer                      Fax: (330) 644-8110
Commercial Timesharing Inc.             Email: byron at comtime dot com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]