public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mkfs.jffs2.c not compiling for arm
@ 2007-08-09 15:34 Saravanan Chanemouganandam
  2007-08-09 16:38 ` Josh Boyer
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Saravanan Chanemouganandam @ 2007-08-09 15:34 UTC (permalink / raw)
  To: linux-mtd

Hello,

I am a newbie to use MTD tools. I have downloaded the latest version of the 
mtd tools and when I try to cross compile mtd-utils-1.0.0 for the Xscale 
platform, I am getting the following make error. 

sara:/home/sara/mtd-utils-1.0.0#make 
CROSS=/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-
....
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,.mkfs.jffs2.c.dep
mkfs.jffs2.c:68:18: zlib.h : No such file or directory
make: *** [mkfs.jffs2.o] Error 1
rm ftl_check.o mkfs.jffs.o flash_erase.o ftl_format.o nanddump.o 
doc_loadbios.o

The host development machine has already installed with supporting Zlib 
libraries but still it couldn't find the file. 

Can anyone precise me, is there any missing build options ?

thanks
Sara

 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mkfs.jffs2.c not compiling for arm
  2007-08-09 15:34 mkfs.jffs2.c not compiling for arm Saravanan Chanemouganandam
@ 2007-08-09 16:38 ` Josh Boyer
  2007-08-09 21:02 ` Lennert Buytenhek
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Josh Boyer @ 2007-08-09 16:38 UTC (permalink / raw)
  To: Saravanan Chanemouganandam; +Cc: linux-mtd

On Thu, 9 Aug 2007 17:34:23 +0200
Saravanan Chanemouganandam <schane@osmozis.com> wrote:

> Hello,
> 
> I am a newbie to use MTD tools. I have downloaded the latest version of the 
> mtd tools and when I try to cross compile mtd-utils-1.0.0 for the Xscale 
> platform, I am getting the following make error. 
> 
> sara:/home/sara/mtd-utils-1.0.0#make 
> CROSS=/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-
> ....
> /scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
> -O2 -Wall -g -c -o mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,.mkfs.jffs2.c.dep
> mkfs.jffs2.c:68:18: zlib.h : No such file or directory
> make: *** [mkfs.jffs2.o] Error 1
> rm ftl_check.o mkfs.jffs.o flash_erase.o ftl_format.o nanddump.o 
> doc_loadbios.o
> 
> The host development machine has already installed with supporting Zlib 
> libraries but still it couldn't find the file. 
> 
> Can anyone precise me, is there any missing build options ?

You need the zlib-devel package installed.  That puts zlib.h
in /usr/include/

josh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mkfs.jffs2.c not compiling for arm
  2007-08-09 15:34 mkfs.jffs2.c not compiling for arm Saravanan Chanemouganandam
  2007-08-09 16:38 ` Josh Boyer
@ 2007-08-09 21:02 ` Lennert Buytenhek
  2007-08-10 14:10 ` MikeW
  2007-08-12  5:14 ` Mike Rapoport
  3 siblings, 0 replies; 7+ messages in thread
From: Lennert Buytenhek @ 2007-08-09 21:02 UTC (permalink / raw)
  To: Saravanan Chanemouganandam; +Cc: linux-mtd

On Thu, Aug 09, 2007 at 05:34:23PM +0200, Saravanan Chanemouganandam wrote:

> I am a newbie to use MTD tools. I have downloaded the latest version of the 
> mtd tools and when I try to cross compile mtd-utils-1.0.0 for the Xscale 
> platform, I am getting the following make error. 
> 
> sara:/home/sara/mtd-utils-1.0.0#make 
> CROSS=/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-
> ....
> /scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
> -O2 -Wall -g -c -o mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,.mkfs.jffs2.c.dep
> mkfs.jffs2.c:68:18: zlib.h : No such file or directory
> make: *** [mkfs.jffs2.o] Error 1
> rm ftl_check.o mkfs.jffs.o flash_erase.o ftl_format.o nanddump.o 
> doc_loadbios.o
> 
> The host development machine has already installed with supporting Zlib 
> libraries but still it couldn't find the file. 

Considering that you are cross-compiling, what you need is not a host
version (e.g. i386 version) of zlib, but a target version (i.e. arm
version) of zlib.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mkfs.jffs2.c not compiling for arm
  2007-08-09 15:34 mkfs.jffs2.c not compiling for arm Saravanan Chanemouganandam
  2007-08-09 16:38 ` Josh Boyer
  2007-08-09 21:02 ` Lennert Buytenhek
@ 2007-08-10 14:10 ` MikeW
  2007-08-10 14:35   ` Saravanan Chanemouganandam
  2007-08-12  5:14 ` Mike Rapoport
  3 siblings, 1 reply; 7+ messages in thread
From: MikeW @ 2007-08-10 14:10 UTC (permalink / raw)
  To: linux-mtd

Saravanan Chanemouganandam <schane <at> osmozis.com> writes:

> 
> Hello,
> 
> I am a newbie to use MTD tools. I have downloaded the latest version of the 
> mtd tools and when I try to cross compile mtd-utils-1.0.0 for the Xscale 
> platform, I am getting the following make error. 
> 
> sara:/home/sara/mtd-utils-1.0.0#make 
> CROSS=/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-
> ....
> /scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
> -O2 -Wall -g -c -o mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,.mkfs.jffs2.c.dep
> mkfs.jffs2.c:68:18: zlib.h : No such file or directory
> make: *** [mkfs.jffs2.o] Error 1
> rm ftl_check.o mkfs.jffs.o flash_erase.o ftl_format.o nanddump.o 
> doc_loadbios.o
> 
> The host development machine has already installed with supporting Zlib 
> libraries but still it couldn't find the file. 
> 
> Can anyone precise me, is there any missing build options ?
> 
> thanks
> Sara

Your crosscompiler toolchain ought to have supplied this file
in one of its include directories.

For example using ELDK/mips it's in /opt/eldk/mips_4KCle/usr/include .

Regards,
MikeW

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mkfs.jffs2.c not compiling for arm
  2007-08-10 14:10 ` MikeW
@ 2007-08-10 14:35   ` Saravanan Chanemouganandam
  0 siblings, 0 replies; 7+ messages in thread
From: Saravanan Chanemouganandam @ 2007-08-10 14:35 UTC (permalink / raw)
  To: linux-mtd

Hello Mike,

On the x-86 host machine running linux, I have installed the scratchbox cross 
compiler toolchain that includes the arm version of zlib.h under 

/scratchbox/host_shared/include/linux/zlib.h
/scratchbox/host_shared/include/zlib.h
/scratchbox/compilers/cs2005q3.2-glibc-arm/usr/include/linux/zlib.h
/scratchbox/compilers/cs2005q3.2-glibc-arm/arm-none-linux-gnueabi/sys-include/linux/zlib.h

/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/usr/include/linux/zlib.h    

/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/linux/zlib.h
/scratchbox/users/sara/targets/COM-X270/usr/include/linux/zlib.h

Still, it coudln't find zlib.h. Is there a way to specify the path of the 
usr/include/linux/zlib.h in the make option ?

Thanks
Sara



Le Vendredi 10 Août 2007 16:10, MikeW a écrit :
> Saravanan Chanemouganandam <schane <at> osmozis.com> writes:
> > Hello,
> >
> > I am a newbie to use MTD tools. I have downloaded the latest version of
> > the mtd tools and when I try to cross compile mtd-utils-1.0.0 for the
> > Xscale platform, I am getting the following make error.
> >
> > sara:/home/sara/mtd-utils-1.0.0#make
> > CROSS=/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-
> > ....
> > /scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc
> > -I./include -O2 -Wall -g -c -o mkfs.jffs2.o mkfs.jffs2.c -g
> > -Wp,-MD,.mkfs.jffs2.c.dep mkfs.jffs2.c:68:18: zlib.h : No such file or
> > directory
> > make: *** [mkfs.jffs2.o] Error 1
> > rm ftl_check.o mkfs.jffs.o flash_erase.o ftl_format.o nanddump.o
> > doc_loadbios.o
> >
> > The host development machine has already installed with supporting Zlib
> > libraries but still it couldn't find the file.
> >
> > Can anyone precise me, is there any missing build options ?
> >
> > thanks
> > Sara
>
> Your crosscompiler toolchain ought to have supplied this file
> in one of its include directories.
>
> For example using ELDK/mips it's in /opt/eldk/mips_4KCle/usr/include .
>
> Regards,
> MikeW
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mkfs.jffs2.c not compiling for arm
  2007-08-09 15:34 mkfs.jffs2.c not compiling for arm Saravanan Chanemouganandam
                   ` (2 preceding siblings ...)
  2007-08-10 14:10 ` MikeW
@ 2007-08-12  5:14 ` Mike Rapoport
  2007-08-13  8:56   ` Saravanan Chanemouganandam
  3 siblings, 1 reply; 7+ messages in thread
From: Mike Rapoport @ 2007-08-12  5:14 UTC (permalink / raw)
  To: Saravanan Chanemouganandam; +Cc: linux-mtd

Saravanan Chanemouganandam wrote:
> Hello,
> 
> I am a newbie to use MTD tools. I have downloaded the latest version of the 
> mtd tools and when I try to cross compile mtd-utils-1.0.0 for the Xscale 
> platform, I am getting the following make error. 
> 
> sara:/home/sara/mtd-utils-1.0.0#make 
> CROSS=/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-
> ....
> /scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
> -O2 -Wall -g -c -o mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,.mkfs.jffs2.c.dep
> mkfs.jffs2.c:68:18: zlib.h : No such file or directory
> make: *** [mkfs.jffs2.o] Error 1
> rm ftl_check.o mkfs.jffs.o flash_erase.o ftl_format.o nanddump.o 
> doc_loadbios.o
> 
> The host development machine has already installed with supporting Zlib 
> libraries but still it couldn't find the file. 
> 
> Can anyone precise me, is there any missing build options ?

If you are using scratchbox, it might be better to compile the mtd-utils from 
within the scratchbox environment.

> thanks
> Sara
> 
>  
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 


-- 
Sincerely yours,
Mike.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mkfs.jffs2.c not compiling for arm
  2007-08-12  5:14 ` Mike Rapoport
@ 2007-08-13  8:56   ` Saravanan Chanemouganandam
  0 siblings, 0 replies; 7+ messages in thread
From: Saravanan Chanemouganandam @ 2007-08-13  8:56 UTC (permalink / raw)
  To: linux-mtd

Dear Mike,

I have tried to compile the mtd-utils from within the scratchbox environement. 
Still the problem exists with the Zlib.h file.

[sbox-COM-X270: ~] > wget 
ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.0.0.tar.gz
[sbox-COM-X270: ~] > tar -xvzf mtd-utils-1.0.0.tar.gz
[sbox-COM-X270: ~] > cd mtd-utils-1.0.0

[sbox-COM-X270: ~/mtd-utils-1.0.0] > make 
CROSS=/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-

Makefile:34: no file name for `-include'

/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o ftl_format.o ftl_format.c -g -Wp,-MD,.ftl_format.c.dep
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc  -g -o 
ftl_format ftl_format.o
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o flash_erase.oflash_erase.c -g -Wp,-MD,.flash_erase.c.dep
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc  -g -o 
flash_erase flash_erase.o
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o crc32.o crc32.c -g -Wp,-MD,.crc32.c.dep
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o flash_eraseall.o flash_eraseall.c -g 
-Wp,-MD,.flash_eraseall.c.dep
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc  -o 
flash_eraseall crc32.o flash_eraseall.o
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o nanddump.o nanddump.c -g -Wp,-MD,.nanddump.c.dep
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc  -g -o 
nanddump nanddump.o
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o doc_loadbios.o doc_loadbios.c -g 
-Wp,-MD,.doc_loadbios.c.dep
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc  -g -o 
doc_loadbios doc_loadbios.o
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o mkfs.jffs.o mkfs.jffs.c -g -Wp,-MD,.mkfs.jffs.c.dep
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc  -g -o 
mkfs.jffs mkfs.jffs.o
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o ftl_check.o ftl_check.c -g -Wp,-MD,.ftl_check.c.dep
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc  -g -o 
ftl_check ftl_check.o
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o compr_rtime.ocompr_rtime.c -g -Wp,-MD,.compr_rtime.c.dep
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -I./include 
-O2 -Wall -g -c -o mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,.mkfs.jffs2.c.dep
mkfs.jffs2.c:68:18: zlib.h: No such file or directory
make: *** [mkfs.jffs2.o] Error 1
rm ftl_check.o mkfs.jffs.o flash_erase.o ftl_format.o nanddump.o 
doc_loadbios.o
[sbox-COM-X270: ~/mtd-utils-1.0.0] >


Thanks
Sara
Osmozis


Le Dimanche 12 Août 2007 07:14, Mike Rapoport a écrit :
> Saravanan Chanemouganandam wrote:
> > Hello,
> >
> > I am a newbie to use MTD tools. I have downloaded the latest version of
> > the mtd tools and when I try to cross compile mtd-utils-1.0.0 for the
> > Xscale platform, I am getting the following make error.
> >
> > sara:/home/sara/mtd-utils-1.0.0#make
> > CROSS=/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-
> > ....
> > /scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc
> > -I./include -O2 -Wall -g -c -o mkfs.jffs2.o mkfs.jffs2.c -g
> > -Wp,-MD,.mkfs.jffs2.c.dep mkfs.jffs2.c:68:18: zlib.h : No such file or
> > directory
> > make: *** [mkfs.jffs2.o] Error 1
> > rm ftl_check.o mkfs.jffs.o flash_erase.o ftl_format.o nanddump.o
> > doc_loadbios.o
> >
> > The host development machine has already installed with supporting Zlib
> > libraries but still it couldn't find the file.
> >
> > Can anyone precise me, is there any missing build options ?
>
> If you are using scratchbox, it might be better to compile the mtd-utils
> from within the scratchbox environment.
>
> > thanks
> > Sara
> >
> >
> >
> > ______________________________________________________
> > Linux MTD discussion mailing list
> > http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-13  8:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-09 15:34 mkfs.jffs2.c not compiling for arm Saravanan Chanemouganandam
2007-08-09 16:38 ` Josh Boyer
2007-08-09 21:02 ` Lennert Buytenhek
2007-08-10 14:10 ` MikeW
2007-08-10 14:35   ` Saravanan Chanemouganandam
2007-08-12  5:14 ` Mike Rapoport
2007-08-13  8:56   ` Saravanan Chanemouganandam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox