Skip to contentSkip to conversation

build-problems: GNU fileutils 4.01 on mipsel with glibc 2.2.2

DISCUSSION Karsten Merker 3 participants 5 messages Mar 4, 2001 – Mar 6, 2001 MIPS

lore
Share & tools
lore
#0 lore raw

Hallo everyone,

I am trying to get the components for a Debian mipsel-base.tgz built, based on glibc-2.2.2. I am working in a chroot()-environment, where I have installed glibc 2.2.2, binutils 2.10.91 and gcc 2.95.3 as precompiled binaries, all from Maciej's packages (glibc-2.2.2-2.mipsel.rpm, gcc-2.95.3-14.mipsel.rpm, binutils-2.10.91-1.mipsel.rpm plus devel and dependency packages). Gawk and perl are self-compiled inside the chroot()-environment. When trying to compile fileutils, the ./configure starts ok, but when coming to "checking for working mktime..." the script just hangs forever, and according to top there is nothing consuming CPU time (except for top itself). Compiling the fileutils on the "host system", i.e. outside the chroot()-environment using egcs-1.0.3a and glibc-2.0.6 the problem does not appear. Can anybody confirm this on another system? Any ideas what can be the reason for this?

The system:

bash> cat /proc/cpuinfo
cpu : MIPS
cpu model : R4000SC V3.0
system type : Digital DECstation 5000/1xx
BogoMIPS : 49.75
byteorder : little endian
unaligned accesses : 0
wait instruction : no
microsecond timers : no
extra interrupt vector : no
hardware watchpoint : yes
VCED exceptions : 360569
VCEI exceptions : 14106

bash> gcc -v
Reading specs from /usr/lib/gcc-lib/mipsel-linux/2.95.3/specs gcc version 2.95.3 19991030 (prerelease)

Kernel is 2.4.1 fresh from cvs.

The output from ./configure:
creating cache ./config.cache
checking host system type... mipsel-unknown-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for perl5.003 or newer... yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking dependency style of gcc... gcc
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking for AIX... no
checking for minix/config.h... no
checking build system type... mipsel-unknown-linux-gnu
checking for getconf... getconf
checking for CFLAGS value to request large file support... -D_FILE_OFFSET_BITS=64 checking for LDFLAGS value to request large file support...
checking for LIBS value to request large file support...
checking for _FILE_OFFSET_BITS... 64
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking whether sys/types.h defines makedev... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking whether closedir returns void... no
checking for inttypes.h... yes
checking for unsigned long long... yes
checking for gcc option to accept ANSI C... none needed
checking for uid_t in sys/types.h... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C conforming const... yes
checking for inline... inline
checking for long double... yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for ANSI C header files... yes
checking for struct stat.st_blksize... no
checking for struct stat.st_blocks... yes
checking whether struct tm is in sys/time.h or time.h... time.h checking whether time.h and sys/time.h may both be included... yes checking for struct tm.tm_zone... yes
checking whether stat file-mode macros are broken... no
checking for nanoseconds member of struct stat.st_mtim... no checking for st_dm_mode in struct stat... no
checking type of array argument to getgroups... gid_t
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking return type of signal handlers... void
checking for size_t... yes
checking for uid_t in sys/types.h... (cached) yes
checking for ino_t... yes
checking for ssize_t... yes
checking for library containing clock_gettime... -lrt
checking for fdatasync... yes
checking for clock_gettime... yes
checking for long file names... yes
checking for pathconf... yes
checking for string.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for errno.h... yes
checking for unistd.h... yes
checking for stdlib.h... yes
checking for sys/param.h... yes
checking for sys/statfs.h... yes
checking for sys/fstyp.h... no
checking for mnttab.h... no
checking for mntent.h... yes
checking for utime.h... yes
checking for sys/statvfs.h... yes
checking for sys/vfs.h... yes
checking for sys/mntent.h... no
checking for sys/mount.h... yes
checking for sys/filsys.h... no
checking for sys/fs_types.h... no
checking for sys/acl.h... no
checking for sys/wait.h... yes
checking for sys/ioctl.h... yes
checking for sys/fs/s5param.h... no
checking for termios.h... yes
checking for values.h... yes
checking for euidaccess... yes
checking for memcpy... yes
checking for memcmp... yes
checking for memset... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime...
[hanging forever]

Greetings,
Karsten

Signature · 4 lines
#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der
Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die
Markt- oder Meinungsforschung.
#1 lore raw
Quoted 5 lines · Karsten Merker

I am trying to get the components for a Debian mipsel-base.tgz built, based on glibc-2.2.2. I am working in a chroot()-environment, where I have installed glibc 2.2.2, binutils 2.10.91 and gcc 2.95.3 as precompiled binaries, all from Maciej's packages (glibc-2.2.2-2.mipsel.rpm, gcc-2.95.3-14.mipsel.rpm, binutils-2.10.91-1.mipsel.rpm plus devel and

Quoted 8 lines

dependency packages). Gawk and perl are self-compiled inside the chroot()-environment. When trying to compile fileutils, the ./configure starts ok, but when coming to "checking for working mktime..." the script just hangs forever, and according to top there is nothing consuming CPU time (except for top itself). Compiling the fileutils on the "host system", i.e. outside the chroot()-environment using egcs-1.0.3a and glibc-2.0.6 the problem does not appear. Can anybody confirm this on another system? Any ideas what can be the reason for this?

Does you chroot environment have a mounted /proc filesystem? In the past we had obscure libc bugs which were triggered when /proc were not mounted.

Ralf

#2 lore raw

On Sun, Mar 04, 2001 at 11:15:34PM +0100, Ralf Baechle wrote:

[glibc-2.2.2, gcc-2.95.3]

Quoted 11 lines
Quoted 7 lines

chroot()-environment. When trying to compile fileutils, the ./configure starts ok, but when coming to "checking for working mktime..." the script just hangs forever, and according to top there is nothing consuming CPU time (except for top itself). Compiling the fileutils on the "host system", i.e. outside the chroot()-environment using egcs-1.0.3a and glibc-2.0.6 the problem does not appear. Can anybody confirm this on another system? Any ideas what can be the reason for this?

Does you chroot environment have a mounted /proc filesystem? In the past we had obscure libc bugs which were triggered when /proc were not mounted.

I had not mounted /proc, but doing so does not make any difference :-(.

Greetings,
Karsten

Signature · 4 lines
#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung
oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder
Meinungsforschung.
#3 lore raw
In reply to Karsten Merker
Quoted 2 lines · Karsten Merker

starts ok, but when coming to "checking for working mktime..." the script just hangs forever, and according to top there is nothing consuming CPU

...

Quoted 2 lines

glibc-2.0.6 the problem does not appear. Can anybody confirm this on another system? Any ideas what can be the reason for this?

I can confirm that this does *not* happen for me with the same C library but current CVS binutils and gcc (3.0 branch) on a big-endian system. I have observed a definite and reproducible problem, however, with the version of binutils you described; in my case, the symptom was insertion of garbage instructions into my kernel. The problem went away when I upgraded binutils. I have no idea whether this is related to the problem you are seeing.

I would suggest that you extract the test that configure is running into a small C program (the tests are usually C programs); try to compile, link, and run that program, and see what happens. It could be that the compiler or linker is hanging trying to build it, or that the program itself hangs for some reason. If the program hangs, run it in a debugger and/or use strace. Then post a minimal testcase.

Signature · 3 lines
Keith M Wesolowski <[email protected]> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."
#4 lore raw

On Mon, Mar 05, 2001 at 10:32:58PM -0800, Keith M Wesolowski wrote:

Did you need any patches for current CVS binutils / gcc?

Ralf