[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with mkfs.jffs2



David Woodhouse's correction did put me down the right trail for using
the binary, but I feel it important to figure out why this isn't compiling.
Now, I'm trying to cross-compile a kernel.  Does this need the current
kernel's directory or the directory I'm trying to cross-compile?

Source coded was update from the cvs directory today.

Compilier version:
[hllywood@thanatos-minor dev]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)

Here's exactly what I did:
[root@thanatos-minor util]# automake --foreign
[root@thanatos-minor util]# autoconf
[root@xxxxxxx./configure --with-kernel=/home/hllywood/linux
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/usr/src/mtd/util/missing: Unknown `--run' option
Try `/usr/src/mtd/util/missing --help' for more information
configure: warning: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking whether ln -s works... 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 for style of include used by make... include
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for zlibVersion in -lz... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for st_rdev in struct stat... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether gcc needs -traditional... no
checking whether sys/types.h defines makedev... yes
checking for 8-bit clean memcmp... yes
checking for vprintf... yes
checking for getcwd... yes
checking for strdup... yes
checking for strerror... yes
checking for strtol... yes
checking for strtoul... yes
checking for directory with kernel source... /home/hllywood/linux
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
[root@thanatos-minor util]# make
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/hllywood/linux/include
-I/home/hllywood/linux/fs/jffs2    -O2 -Wall -c ftl_format.c
ftl_format.c: In function `build_header':
ftl_format.c:111: warning: implicit declaration of function `time'
gcc  -O2 -Wall  -o ftl_format  ftl_format.o  -lz
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/hllywood/linux/include
-I/home/hllywood/linux/fs/jffs2    -O2 -Wall -c erase.c
erase.c: In function `region_erase':
erase.c:66: warning: long unsigned int format, u_int32_t arg (arg 2)
erase.c:66: warning: long unsigned int format, u_int32_t arg (arg 3)
erase.c: In function `non_region_erase':
erase.c:103: warning: long unsigned int format, u_int32_t arg (arg 2)
erase.c:103: warning: long unsigned int format, u_int32_t arg (arg 3)
erase.c:109: warning: long unsigned int format, u_int32_t arg (arg 2)
gcc  -O2 -Wall  -o erase  erase.o  -lz
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/hllywood/linux/include
-I/home/hllywood/linux/fs/jffs2    -O2 -Wall -c eraseall.c
eraseall.c: In function `main':
eraseall.c:73: warning: long int format, int arg (arg 2)
eraseall.c:73: warning: long unsigned int format, u_int32_t arg (arg 3)
eraseall.c:73: warning: long int format, int arg (arg 4)
eraseall.c:86: warning: long int format, int arg (arg 2)
gcc  -O2 -Wall  -o eraseall  eraseall.o  -lz

...

gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/hllywood/linux/include
-I/home/hllywood/linux/fs/jffs2    -O2 -Wall -c nandtest.c
nandtest.c: In function `main':
nandtest.c:105: warning: long unsigned int format, u_int32_t arg (arg 2)
nandtest.c:105: warning: long unsigned int format, u_int32_t arg (arg 3)
nandtest.c:120: warning: implicit declaration of function `memset'
nandtest.c:253: warning: long unsigned int format, u_int32_t arg (arg 2)
nandtest.c:253: warning: long unsigned int format, u_int32_t arg (arg 3)
nandtest.c:266: warning: implicit declaration of function `memcpy'
gcc  -O2 -Wall  -o nandtest  nandtest.o  -lz
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/hllywood/linux/include
-I/home/hllywood/linux/fs/jffs2    -O2 -Wall -c nandwrite.c
gcc  -O2 -Wall  -o nandwrite  nandwrite.o  -lz
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/hllywood/linux/include
-I/home/hllywood/linux/fs/jffs2    -O2 -Wall -c mkfs.jffs2.c
mkfs.jffs2.c:68:19: crc32.h: No such file or directory
make: *** [mkfs.jffs2.o] Error 1

On Fri, 10 Jan 2003, [iso-8859-1] Jörn Engel wrote:

> On Thu, 9 January 2003 16:18:38 -0700, Scott Miller wrote:
> >
> > I'm having difficulty compiling mkfs.jffs2, and all of the binaries for
> > .x86 just output garabage on my Linux 686 (sp. Pentium 4) machine.  Any
> > guesses as to what's going on?
>
> Yes, you have made a mistake. :-)
>
> Code from cvs?
> >From when?
> make or automake?
> What compiler?
> Command invocation and output:
> [...]
>
> Jörn
>
> --
> They laughed at Galileo.  They laughed at Copernicus.  They laughed at
> Columbus. But remember, they also laughed at Bozo the Clown.
> -- unknown
>

- Sincerely,
Scott A. Miller
+-------------------------+
| We have the technology. |
|      - Scott            |
+-------------------------+


To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com