EmbeddedRelated.com
Forums

building ucLinux on Embedded Artist LPC2478 OEM bug in Host Cygwin bug

Started by huynh April 25, 2011
Dear;
I'm using Flatform : lpc2478 OEM from embedded artist
I have built uclinux kernel 2.6 successfull in linux Emdebian environment.

But Now I'm trying to build that flatform in Host Cygwin on WinXP Sp3

Tool chain to build in Cygwin : arm-uclinux-tools-cygwin-20060116

and i have i big problem when building kernel in cygwin?I already set PATH for toolchain: and some needed environtment in etc/profile

#hbaocr add here environment variable for corss toolchain edit etc/profile
echo "setup cross toolchain environment variable by hbaocr edit /etc/profile"

export ARM_UCLINUX_ELF_PATH=/usr/local/arm-uclinux-elf-tools
export PATH=$PATH:$ARM_UCLINUX_ELF_PATH/bin:$ARM_UCLINUX_ELF_PATH/arm-uclinux-elf/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ARM_UCLINUX_ELF_PATH/lib:$ARM_UCLINUX_ELF_PATH/arm-uclinux-elf/lib
export PREFIX=$ARM_UCLINUX_ELF_PATH
export DISPLAY7.0.0.1:0.0

echo ARM_UCLINUX_ELF_PATH = $ARM_UCLINUX_ELF_PATH
echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH
echo PREFIX=$PREFIX
echo $PATH

When I run command, it occur some error which i can't fix it! Please help me!
HBAOCR@hbaocrpc /uClinux-dist
$ make ARCH= arm CROSS_COMPILE=arm-uclinux-elf-

bin/sh : /uClinux-dist/tools/ucfront-gcc : cannot excute binary file
Making include/C++ symlink to complier c++ includes
bin/sh : /uClinux-dist/tools/ucfront-gcc : cannot excute binary file
ln : failed to create symbolic link './c++':File exits
make[1]:***[all] Error 1
make[1]: Leaving directory '/uClinux-dist/include'
make: *** [subdirs] Error 1

An Engineer's Guide to the LPC2100 Series

thank for attending but now I have fixed it.that is some problem with makefile in uClinux-dist/tools/ucfront/makefile

edit it. Remove flash -Werr it cause sth wrong
HOSTCC ?= gcc
UTIL=args.c util.c execute.c
all: ucfront ucfront-ld
ucfront: ucfront.c $(UTIL)
$(HOSTCC) -g -Wall -DHAVE_MKSTEMP -o $@ $^
ucfront-ld: ucfront-ld.c $(UTIL)
$(HOSTCC) -g -Wall -DHAVE_MKSTEMP -o $@ $^
clean:
$(RM) -f *.o ucfront ucfront-ld core tags
ucfront.1: ucfront.yo
-yodl2man -o ucfront.1 ucfront.yo

and in main makefile in

uClinux-dist/make file edit

ucfront: tools/ucfront/*.c
$(MAKE) -C tools/ucfront
# echo $(cc)
ln -sf $(ROOTDIR)/tools/ucfront/ucfront.exe tools/ucfront-gcc
ln -sf $(ROOTDIR)/tools/ucfront/ucfront.exe tools/ucfront-g++
ln -sf $(ROOTDIR)/tools/ucfront/ucfront-ld.exe tools/ucfront-ld

--- In l..., "huynh" wrote:
>
> Dear;
> I'm using Flatform : lpc2478 OEM from embedded artist
> I have built uclinux kernel 2.6 successfull in linux Emdebian environment.
>
> But Now I'm trying to build that flatform in Host Cygwin on WinXP Sp3
>
> Tool chain to build in Cygwin : arm-uclinux-tools-cygwin-20060116
>
> and i have i big problem when building kernel in cygwin?I already set PATH for toolchain: and some needed environtment in etc/profile
>
> #hbaocr add here environment variable for corss toolchain edit etc/profile
> echo "setup cross toolchain environment variable by hbaocr edit /etc/profile"
>
> export ARM_UCLINUX_ELF_PATH=/usr/local/arm-uclinux-elf-tools
> export PATH=$PATH:$ARM_UCLINUX_ELF_PATH/bin:$ARM_UCLINUX_ELF_PATH/arm-uclinux-elf/bin
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ARM_UCLINUX_ELF_PATH/lib:$ARM_UCLINUX_ELF_PATH/arm-uclinux-elf/lib
> export PREFIX=$ARM_UCLINUX_ELF_PATH
> export DISPLAY7.0.0.1:0.0
>
> echo ARM_UCLINUX_ELF_PATH = $ARM_UCLINUX_ELF_PATH
> echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH
> echo PREFIX=$PREFIX
> echo $PATH
>
> When I run command, it occur some error which i can't fix it! Please help me!
> HBAOCR@hbaocrpc /uClinux-dist
> $ make ARCH= arm CROSS_COMPILE=arm-uclinux-elf-
>
> bin/sh : /uClinux-dist/tools/ucfront-gcc : cannot excute binary file
> Making include/C++ symlink to complier c++ includes
> bin/sh : /uClinux-dist/tools/ucfront-gcc : cannot excute binary file
> ln : failed to create symbolic link './c++':File exits
> make[1]:***[all] Error 1
> make[1]: Leaving directory '/uClinux-dist/include'
> make: *** [subdirs] Error 1
>