[Clfs-support] Problem compiling e2fsprogs

Andrew Bradford bradfa at gmail.com
Mon Jan 3 17:43:58 PST 2011


On Sun, Jan 2, 2011 at 10:15 PM, dave shar <clfs.user at gmail.com> wrote:

> On Fri, Dec 31, 2010 at 10:17 PM, dave shar <clfs.user at gmail.com> wrote:
>>
>> >
>> > > Nazmul,
>> >> >
>> >> > I get the same error when using the 20101128 embedded ARM book,
>> you're
>> >> not
>> >> > alone.  I'm going to dig into this and see what I can find.  A more
>> >> detailed
>> >> > output of error message from the compilation is (please note, my
>> ${CLFS}
>> >> > resolves to /home/andrew/clfs-embedded/filesystem):
>> >> >
>> >> > making all in debugfs
>> >> > make[2]: Entering directory
>> >> >
>> >>
>> `/home/andrew/clfs-embedded/filesystem/sources/e2fsprogs-1.41.4/build/debugfs'
>> >> >         MK_CMDS debug_cmds.c
>> >> >         CC debug_cmds.c
>> >> >         CC ../../debugfs/debugfs.c
>> >> >         CC ../../debugfs/util.c
>> >> >         CC ../../debugfs/ncheck.c
>> >> >         CC ../../debugfs/icheck.c
>> >> >         CC ../../debugfs/ls.c
>> >> >         CC ../../debugfs/lsdel.c
>> >> >         CC ../../debugfs/dump.c
>> >> > ../../debugfs/dump.c:22:19: fatal error: utime.h: No such file or
>> >> directory
>> >> > compilation terminated.
>> >> > make[2]: *** [dump.o] Error 1
>> >> > make[2]: Leaving directory
>> >> >
>> >>
>> `/home/andrew/clfs-embedded/filesystem/sources/e2fsprogs-1.41.4/build/debugfs'
>> >> >
>> >> > -Andrew
>> >>
>> >>
>> >>
>> > I get error during running 'make check' and after checking it with the
>> > devel guys I am certain that this has to do with timing and is safe to
>> > ignore.
>> >
>> > Best,
>> >
>> > Dave
>> >
>> >
>> Dave,
>>
>> This error happens on the 'make' command, not 'make check'.  Compilation
>> stops before being complete (see "compilation terminated" in my error
>> message above).  I can provide more detailed 'make' output, if needed, via
>> pastebin or gist.
>>
>> Are you saying that even though compilation stops that e2fsprogs is built
>> correctly and can be installed?
>>
>> Thanks,
>> Andrew
>>
>
>
> Andrew:
>
> Sorry, I got that wrong. I compiles and installed e2fsprogs and had no
> trouble. You can try e2fsprogs-1.41.14.tar.gz or check md5 of your package.
>
> Best,
>
> dave
>
>
Dave,

I attempted to use e2fsprogs-1.41.14 but with the same result.  Compilation
stops looking for utime.h.  I checked the md5 sums, they're OK.

I don't think the issue is with e2fsprogs itself but with what ever
installed utime.h (one version of which happens to be located at
${CLFS}/usr/include/linux/) or the configure arguments.  Possibly GCC,
kernel headers, and uClibc play into this somewhere as well, but that's just
baseless conjecture on my part right now.

This may be a bug that's only showing up on some architecutres in the
embedded book.   I've not tried anything but ARM.  I'll do some more
investigation this week.  I'm using GCC 4.5.1

"make" ends with:
making all in debugfs
make[2]: Entering directory
`/home/andrew/clfs-embedded/filesystem/sources/e2fsprogs-1.41.14/build/debugfs'
        MK_CMDS debug_cmds.c
        CC debug_cmds.c
        CC ../../debugfs/debugfs.c
        CC ../../debugfs/util.c
        CC ../../debugfs/ncheck.c
        CC ../../debugfs/icheck.c
        CC ../../debugfs/ls.c
        CC ../../debugfs/lsdel.c
        CC ../../debugfs/dump.c
../../debugfs/dump.c:22:19: fatal error: utime.h: No such file or directory
compilation terminated.
make[2]: *** [dump.o] Error 1
make[2]: Leaving directory
`/home/andrew/clfs-embedded/filesystem/sources/e2fsprogs-1.41.14/build/debugfs'
make[1]: *** [all-progs-recursive] Error 1
make[1]: Leaving directory
`/home/andrew/clfs-embedded/filesystem/sources/e2fsprogs-1.41.14/build'
make: *** [all] Error 2

My GCC is:
$ arm-unknown-linux-uclibc-gcc -v
Using built-in specs.
COLLECT_GCC=arm-unknown-linux-uclibc-gcc
COLLECT_LTO_WRAPPER=/home/andrew/clfs-embedded/filesystem/cross-tools/libexec/gcc/arm-unknown-linux-uclibc/4.5.1/lto-wrapper
Target: arm-unknown-linux-uclibc
Configured with: ../gcc-4.5.1/configure
--prefix=/home/andrew/clfs-embedded/filesystem/cross-tools
--build=x86_64-cross-linux-gnu --target=arm-unknown-linux-uclibc
--host=x86_64-cross-linux-gnu
--with-sysroot=/home/andrew/clfs-embedded/filesystem --disable-nls
--enable-shared --enable-languages=c --enable-c99 --enable-long-long
--with-mpfr=/home/andrew/clfs-embedded/filesystem/cross-tools
--with-gmp=/home/andrew/clfs-embedded/filesystem/cross-tools
Thread model: posix
gcc version 4.5.1 (GCC)

I'm using uClibc 0.9.31 with the CLFS embedded 20101128 config patch.
Busybox built fine for me.

Thanks,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20110103/3aa31d41/attachment.html>


More information about the Clfs-support mailing list