[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] uClinux compile error on "make dep"
Thank you Paul, for the suggestion of
$ cvs update -d -D'July 12 2005'
It has gotten "make dep" to complete successful again, however the orginal
error from "make" was encountered.
error from "make"
---8<-snip---
In file included from /opt/uClinux-dist/user/cramfs/mkcramfs.c:36:
/opt/uClinux-dist/linux-2.4.x/include/linux/cramfs_fs.h:120:2: warning:
#warning "__BYTE_ORDER == __LITTLE_ENDIAN"
/opt/uClinux-dist/user/cramfs/mkcramfs.c:37:18: zlib.h: No such file or
directory
/opt/uClinux-dist/user/cramfs/mkcramfs.c: In function `cramsort':
/opt/uClinux-dist/user/cramfs/mkcramfs.c:156: warning: assignment discards
qualifiers from pointer target type
/opt/uClinux-dist/user/cramfs/mkcramfs.c:157: warning: assignment discards
qualifiers from pointer target type
/opt/uClinux-dist/user/cramfs/mkcramfs.c: In function `write_superblock':
/opt/uClinux-dist/user/cramfs/mkcramfs.c:397: error: `Z_NULL' undeclared
(first use in this function)
/opt/uClinux-dist/user/cramfs/mkcramfs.c:397: error: (Each undeclared
identifier is reported only once
/opt/uClinux-dist/user/cramfs/mkcramfs.c:397: error: for each function it
appears in.)
/opt/uClinux-dist/user/cramfs/mkcramfs.c: In function `main':
/opt/uClinux-dist/user/cramfs/mkcramfs.c:669: error: `Z_NULL' undeclared
(first use in this function)
make[1]: *** [mkcramfs] Error 1
make[1]: Leaving directory `/opt/uClinux-dist/vendors/Xilinx/uclinux-auto'
make: *** [image] Error 2
-----------------------------------------------------------------------------
From my interpretation, it seems the file zlib.h could not have been found.
Thus, I have copied zlib.h into one of the directories where mkcramfs.c
searches for its included header files.
Specifically, I have copied zlib.h into /opt/uClinux-2.4.x/include/linux/
This action has taken me another step further, or that is what I would like
to believe.
However, a different error was encountered afterwards. (snip below)
Any help is greatly appreciated. Thank you very much for your time.
Dave.
---8<-snip---
xl-barrel-shift -mno-xl-soft-div -mno-xl-soft-mul -nostdinc -iwithprefix
include -DKBUILD_BASENAME=quota -c -o quota.o quota.c
mb-gcc -D__KERNEL__ -I/opt/uClinux-2.4.x/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common
-DPLATFORM=uclinux-auto -O2 -fno-builtin -DNO_MM -DNO_FPU -D__ELF__
-DUTS_SYSNAME="uClinux" -D__linux__
-I/usr/local/MicroBlaze-elf-tools/bin/../lib/gcc-lib/microblaze/2.95.3-4/./include
-mxl-barrel-shift -mno-xl-soft-div -mno-xl-soft-mul -nostdinc -iwithprefix
include -DKBUILD_BASENAME=binfmt_script -c -o binfmt_script.o
binfmt_script.c
mb-gcc -D__KERNEL__ -I/opt/uClinux-2.4.x/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common
-DPLATFORM=uclinux-auto -O2 -fno-builtin -DNO_MM -DNO_FPU -D__ELF__
-DUTS_SYSNAME="uClinux" -D__linux__
-I/usr/local/MicroBlaze-elf-tools/bin/../lib/gcc-lib/microblaze/2.95.3-4/./include
-mxl-barrel-shift -mno-xl-soft-div -mno-xl-soft-mul -nostdinc -iwithprefix
include -DKBUILD_BASENAME=binfmt_flat -c -o binfmt_flat.o binfmt_flat.c
binfmt_flat.c: In function `decompress_exec':
binfmt_flat.c:186: structure has no member named `workspace'
binfmt_flat.c:186: warning: implicit declaration of function
`zlib_inflate_workspacesize'
binfmt_flat.c:187: structure has no member named `workspace'
binfmt_flat.c:264: warning: implicit declaration of function
`zlib_inflateInit2'binfmt_flat.c:269: warning: implicit declaration of
function `zlib_inflate'
binfmt_flat.c:288: warning: implicit declaration of function
`zlib_inflateEnd'
binfmt_flat.c:293: structure has no member named `workspace'
binfmt_flat.c:295: warning: label `out' defined but not used
binfmt_flat.c: In function `calc_v5_reloc':
binfmt_flat.c:385: warning: unused variable `opcode'
binfmt_flat.c:385: warning: unused variable `offset'
binfmt_flat.c:384: warning: unused variable `usptr'
make[3]: *** [binfmt_flat.o] Error 1
make[3]: Leaving directory `/opt/uClinux-2.4.x/fs'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/opt/uClinux-2.4.x/fs'
make[1]: *** [_dir_fs] Error 2
make[1]: Leaving directory `/opt/uClinux-2.4.x'
make: *** [linux] Error 1
-------------------------------------------------------------------------------------------
----- Original Message -----
From: <pml@itee.uq.edu.au>
To: <microblaze-uclinux@itee.uq.edu.au>
Sent: Friday, July 22, 2005 6:46 PM
Subject: Re: [microblaze-uclinux] uClinux compile error on "make dep"
> Hi David,
>
> Try adding '-d' to your cvs update command, e.g.:
>
> $ cvs update -d -rbefore_linux_2_4_31
>
> This tells CVS to create any directories that have been added to the
> repository
> since your last checkout.
>
> Having said that, I had some other problems with the "before_linux_2_4_31"
> tag,
> and ended up rolling back to a July 12 CVS snapshot:
>
> $ cvs update -d -D'July 12 2005'
>
> Paul
>
>
> Quoting David Lai <dlai@irispower.com>:
>
>> Building uClinux Kernel for NuHO S3-2000
>>
>> Hi, below are the steps I have followed in trying to build the uClinux
>> Kernel for the NuHo S3-2000 dev board. However, the process crapped out
>> when trying to do "make dep". The error from "make dep" can be found at
>> bottom.
>>
>> I have previously gotten "make dep" to complete successully, but errors
>> were
>> encountered afterwards during "make". After reading John Williams' msg
>> July
>> 19 "Compilation Error". I have tried adding in this new line that
>> suggested,
>> $ cvs update -rbefore_linux_2_4_31
>>
>> As a result, "make dep" no longer completes successfully.
>>
>> If anyone can point out some mistakes I may have made, or correct the
>> process I have followed to ensure a successful compilation of the uClinux
>> Kernel for the NuHO S3-2000, it would be greatly appreciated. Thank you
>> for
>> your time.
>>
>> Best regards,
>> Dave L.
>>
>> -----------------------------------------------------------------------------
>>
>> 1. I have downloaded the microblaze-elf-tools tarball from
>>
> http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux/Toolchain/linux_binaries.html
>>
>> 2. Made a directory named MicroBlaze-elf-tools under /usr/local
>>
>> 3. Extracted the microblaze-elf-tools tarball in
>> /usr/local/MicroBlaze-elf-tools, with the command
>> > tar -xzf microblaze-elf-tools-20050308.tar.gz
>>
>> 4. Ensured /usr/local/MicroBlaze-elf-tools/bin is in PATH by this command
>> > export PATH=/usr/local/MicroBlaze-elf-tools/bin:${PATH}
>>
>> 5. While in the /opt directory, the following commands were executed
>> > cvs -d:pserver:anonymous@cvs.uclinux.org:/var/cvs login
>> > Hit <RETURN> at password prompt
>> > cvs -z3 -d:pserver:anonymous@cvs.uclinux.org:/var/cvs co
>> -ruClinux-dist-20041215 uClinux-dist
>> > cvs -z3 -d:pserver:anonymous@cvs.uclinux.org:/var/cvs co
>> -rbefore-snapgear-code-sync-20050504 uClinux-2.4.x
>> > cvs update -rbefore_linux_2_4_31
>> (^^NOTE:this line added per John Williams' msg July 19 "Compilation
>> Error")
>> > cd uClinux-dist
>> > ln -s ../uClinux-2.4.x linux-2.4.x
>>
>> 6. Copied all *.patch and *.tar files from the Linux folder in the
>> extracted
>> archive "NuHo_S3-2000_uClinux_Rel2005062301.zip" on the Windows machine
>> to
>> the /opt/uClinux-dist directory on the Linux machine.
>>
>> 7. For the NuHo_S3-2000_uClinux-dist.patch file, this command was
>> executed
>> > patch -p 0 -b < NuHo_S3-2000_uClinux-dist.path
>>
>> 8. For the NuHo_S3-2000_uClinux-2.4.x.patch file, this command was
>> executed
>> > patch -p 0 -b < NuHo_S3-2000_uClinux-2.4.x.patch
>>
>> 9. For the NuHo_S3-2000_uClinux_config.tar file, this command was
>> executed
>> > tar xf NuHo_S3-2000_uClinux_config.tar
>>
>> 10. Copied "auto-config.in" from the extracted archive
>> "NuHo_S3-2000_uClinux_Rel2005062301.zip" into
>> /opt/uClinux-dist/linux-2.4.x/arch/microblaze/platform/uclinux-auto/
>> directory on the Linux machine
>>
>> 11. While in the /opt/uClinux-dist directory, these commands were
>> attempted
>> > make clean
>> (^^Note:make clean completed successfully)
>> > make menuconfig
>> (^^Note:make menuconfig completed successfully)
>>
>> -----------------------------------------------------------------------------
>>
>> During make menuconfig these were the extra questions prompted, <RETURN>
>> was
>> hit for all.
>>
>> When presented with the uClinux build configuration menu, I went into
>> "Kernel/Library/Defaults Selection" option and selected "Customize Kernel
>> Settings" and "Customize Vendor/User Settings", and I have saved when
>> asked.
>>
>> 2 additional windows were presented, I simply exited them and saved when
>> asked.
>>
>> ---8<-snip---
>> CFI Flash device mapped on Microblaze/ML401 (uClinux) (CONFIG_MTD_ML401)
>> [N/y/m/?] (NEW)
>>
>> Conexant flash MTD support hack (CONFIG_MTD_MTDCNXT) [N/y/m/?] (NEW)
>>
>> Fast Timer Support (CONFIG_FAST_TIMER) [N/y/?] (NEW)
>>
>> flashloader (CONFIG_USER_BOOTTOOLS_FLASHLOADER) [N/y/?] (NEW)
>>
>> himemloader (CONFIG_USER_BOOTTOOLS_HIMEMLOADER) [N/y/?] (NEW)
>>
>> rubik (CONFIG_USER_GAMES_RUBIK) [N/y/?] (NEW)
>>
>> -----------------------------------------------------------------------------
>>
>> 12. Finally during "make dep", process did not complete, errors below
>> > make dep
>>
>> -----------------------------------------------------------------------------
>>
>> ---8<-snip---
>> make[5]: Leaving directory `/opt/uClinux-2.4.x/drivers/dio'
>> make -C fc4 fastdep
>> make[5]: Entering directory `/opt/uClinux-2.4.x/drivers/fc4'
>> /opt/uClinux-2.4.x/scripts/mkdep -D__KERNEL__ -I/opt/uClinux-2.4.x/include
>> -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing
>> -fno-common -DPLATFORM=uclinux-auto -O2 -fno-builtin -DNO_MM -DNO_FPU
>> -D__ELF__ -DUTS_SYSNAME=\"uClinux\" -D__linux__
>>
> -I/usr/local/MicroBlaze-elf-tools/bin/../lib/gcc-lib/microblaze/2.95.3-4/./include
>> -mxl-barrel-shift -mno-xl-soft-div -mno-xl-soft-mul -nostdinc -iwithprefix
>> include -- fc-al.h fc.c fc.h fcp.h fcp_impl.h fc_syms.c socal.c socal.h
>> soc.c soc.h > .depend
>> make[5]: Leaving directory `/opt/uClinux-2.4.x/drivers/fc4'
>> make -C frv_acpi fastdep
>> make: *** frv_acpi: No such file or directory. Stop.
>> make: Entering an unknown directorymake: Leaving an unknown
>> directorymake[4]: *** [_sfdep_frv_acpi] Error 2
>> make[4]: Leaving directory `/opt/uClinux-2.4.x/drivers'
>> make[3]: *** [fastdep] Error 2
>> make[3]: Leaving directory `/opt/uClinux-2.4.x/drivers'
>> make[2]: *** [_sfdep_drivers] Error 2
>> make[2]: Leaving directory `/opt/uClinux-2.4.x'
>> make[1]: *** [dep-files] Error 2
>> make[1]: Leaving directory `/opt/uClinux-2.4.x'
>> make: *** [dep] Error 2
>>
>> -----------------------------------------------------------------------------
>>
>>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/