[ELDK] Rebuilding the ELDK from scratch
Wolfgang Denk
wd at denx.de
Thu May 7 22:33:24 CEST 2009
Dear Jay York,
In message <5511FD4A-50BF-4619-8F7A-7139D834BDCC at verizon.net> you wrote:
> Following the instructions on http://www.denx.de/wiki/view/DULG/ELDKRebuilding
> and http://www.denx.de/wiki/DULG/
> AN2009_02_EldkReleaseBuildEnvironment, I've been able to rebuild the
> ELDK from scratch, with one addition. I found it necessary to create
> the following file:
>
> # cat /opt/eldkbuild/home/microwin/Arch.rules
>
> include $(MW_DIR_SRC)/Arch.rules
>
> HOSTCC = /usr/bin/gcc -B/usr/bin/
>
> #
Hm... that should not be needed. At least it is not here.
> Without this file, my build would stop in target step 84 while making
> microwindows:
>
> # tail /opt/eldk/build/ppc.LOG
> Done
> Building freetype package step trg.83 at 18:27:18
> Done
> Installing freetype-ppc_4xx-2.3.4-3.ppc.rpm package
> Installing freetype-devel-ppc_4xx-2.3.4-3.ppc.rpm package
> Done
> Building microwindows package step trg.84 at 18:28:57
> parse_file: build_package failed for microwindows.spec
> + exit 1
> + rm -fr /tmp/pkg.952
> #
> # tail -23 /opt/eldk/build/ppc-2009-04-07/logs/ppc_4xx/
> build_microwindows.log
> make[2]: Leaving directory `/opt/eldk/build/ppc-2009-04-07/work/usr/
> src/denx/BUILD/microwindows-0.91/src/drivers'
> make -C /opt/eldk/build/ppc-2009-04-07/work/usr/src/denx/BUILD/
> microwindows-0.91/src/mwin
> make[2]: Entering directory `/opt/eldk/build/ppc-2009-04-07/work/usr/
> src/denx/BUILD/microwindows-0.91/src/mwin'
> make -C /opt/eldk/build/ppc-2009-04-07/work/usr/src/denx/BUILD/
> microwindows-0.91/src/mwin/bmp
> make[3]: Entering directory `/opt/eldk/build/ppc-2009-04-07/work/usr/
> src/denx/BUILD/microwindows-0.91/src/mwin/bmp'
> echo "Building convbmp tool ..."
> Building convbmp tool ...
> gcc /opt/eldk/build/ppc-2009-04-07/work/usr/src/denx/BUILD/
> microwindows-0.91/src/mwin/bmp/convbmp.c -o /opt/eldk/build/
> ppc-2009-04-07/work/usr/src/denx/BUILD/microwindows-0.91/src/bin/convbmp
> echo "Converting mwin/bmp/car8.bmp ..."
> Converting mwin/bmp/car8.bmp ...
> /opt/eldk/build/ppc-2009-04-07/work/usr/src/denx/BUILD/
> microwindows-0.91/src/bin/convbmp -o /opt/eldk/build/ppc-2009-04-07/
> work/usr/src/denx/BUILD/microwindows-0.91/src/obj/mwin/bmp/car8.c /opt/
> eldk/build/ppc-2009-04-07/work/usr/src/denx/BUILD/microwindows-0.91/
> src/mwin/bmp/car8.bmp
> /opt/eldk/build/ppc-2009-04-07/work/usr/src/denx/BUILD/
> microwindows-0.91/src/bin/convbmp: /opt/eldk/build/ppc-2009-04-07/work/
> usr/src/denx/BUILD/microwindows-0.91/src/bin/convbmp: cannot execute
> binary file
> make[3]: *** [/opt/eldk/build/ppc-2009-04-07/work/usr/src/denx/BUILD/
> microwindows-0.91/src/obj/mwin/bmp/car8.c] Error 126
> make[3]: Leaving directory `/opt/eldk/build/ppc-2009-04-07/work/usr/
> src/denx/BUILD/microwindows-0.91/src/mwin/bmp'
> make[2]: *** [subdir-/opt/eldk/build/ppc-2009-04-07/work/usr/src/denx/
> BUILD/microwindows-0.91/src/mwin/bmp] Error 2
> make[2]: Leaving directory `/opt/eldk/build/ppc-2009-04-07/work/usr/
> src/denx/BUILD/microwindows-0.91/src/mwin'
> make[1]: *** [subdir-/opt/eldk/build/ppc-2009-04-07/work/usr/src/denx/
> BUILD/microwindows-0.91/src/mwin] Error 2
> make[1]: Leaving directory `/opt/eldk/build/ppc-2009-04-07/work/usr/
> src/denx/BUILD/microwindows-0.91/src'
> error: Bad exit status from /opt/eldk/build/ppc-2009-04-07/work/var/
> tmp/rpm-tmp.25790 (%build)
>
>
> RPM build errors:
> Bad exit status from /opt/eldk/build/ppc-2009-04-07/work/var/tmp/
> rpm-tmp.25790 (%build)
> #
>
> Has anybody else had this same problem?
No. The build log looks a bit different here:
[/opt/eldk/build/ppc-2009-04-25/logs/ppc_4xx/build_microwindows.log]
...
/usr/bin/gcc -B/usr/bin/ -MM -I. -I/opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/include -I/opt/eldk/build/ppc-2009-04-25/work/ppc_4xx/usr/include/libpng12 -DMWPIXEL_FORMAT=MWPF_PALETTE -DVTSWITCH=1 -DHAVE_FILEIO -DHAVE_PNG_SUPPORT=1 -DHAVE_FNT_SUPPORT=1 -DFNT_FONT_DIR="\""/usr/microwindows-fonts/bdf""\" -DHAVE_FNTGZ_SUPPORT=1 -DHAVE_PCF_SUPPORT=1 -DPCF_FONT_DIR="\""/usr/microwindows-fonts/pcf""\" -DHAVE_HZK_SUPPORT=1 -DHZK_FONT_DIR="\""/usr/microwindows-fonts/chinese""\" -DHAVE_EUCJP_SUPPORT=1 -DEUCJP_FONT_DIR=\""/usr/microwindows-fonts/japanese"\" -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DPORTRAITMODE=0 -DHAVETEXTMODE=1 -DTHREADSAFE=1 -DERASEMOVE=1 -DUPDATEREGIONS=1 -DLINUX=1 -DUNIX=1 -DARCH_LINUX_POWERPPC=1 -DMW_CPU_BIG_ENDIAN=1 /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/winlib/combobox.c | sed 's/.*\.o[ :]*/\/opt\/eldk\/build\/ppc-2009-04-25\/work\/usr\/src\/
denx\/BUILD\/microwindows-0.91\/src\/obj\/mwin\/winlib\/combobox.o : /g' > /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/mwin/winlib/combobox.d || (rm /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/mwin/winlib/combobox.o /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/mwin/winlib/combobox.d ; exit 1)
gcc: file path prefix `/usr/bin/' never used
make -C /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/bmp
make[2]: Entering directory `/opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/bmp'
gcc: file path prefix `/usr/bin/' never used
echo "Building convbmp tool ..."
make -C /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/mwobjects
Building convbmp tool ...
/usr/bin/gcc -B/usr/bin/ /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/bmp/convbmp.c -o /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/bin/convbmp
make[2]: Entering directory `/opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/mwobjects'
gcc: file path prefix `/usr/bin/' never used
make[2]: Circular /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/lib/ <- /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/lib/ dependency dropped.
make[2]: Leaving directory `/opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/mwobjects'
make -C /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/winlib
echo "Converting fonts/X6x13.bdf ..."
Converting fonts/X6x13.bdf ...
make[2]: Entering directory `/opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/winlib'
/opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/bin/convbdf -c -o /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/fonts/X6x13.c /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/fonts/X6x13.bdf
Generating /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/fonts/X6x13.c
Compiling mwin/winlib/obsolete.c ...
echo "Building makebmp tool ..."
powerpc-linux-gcc -c -DMWPIXEL_FORMAT=MWPF_PALETTE -DVTSWITCH=1 -DHAVE_FILEIO -DHAVE_PNG_SUPPORT=1 -DHAVE_FNT_SUPPORT=1 -DFNT_FONT_DIR="\""/usr/microwindows-fonts/bdf""\" -DHAVE_FNTGZ_SUPPORT=1 -DHAVE_PCF_SUPPORT=1 -DPCF_FONT_DIR="\""/usr/microwindows-fonts/pcf""\" -DHAVE_HZK_SUPPORT=1 -DHZK_FONT_DIR="\""/usr/microwindows-fonts/chinese""\" -DHAVE_EUCJP_SUPPORT=1 -DEUCJP_FONT_DIR=\""/usr/microwindows-fonts/japanese"\" -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DPORTRAITMODE=0 -DHAVETEXTMODE=1 -DTHREADSAFE=1 -DERASEMOVE=1 -DUPDATEREGIONS=1 -DLINUX=1 -DUNIX=1 -DARCH_LINUX_POWERPPC=1 -DMW_CPU_BIG_ENDIAN=1 -fpic -Wall -Wpointer-arith -O3 -s -I. -I/opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/include -I/opt/eldk/build/ppc-2009-04-25/work/ppc_4xx/usr/include/libpng12 -DPAGE_SIZE=4096 -o /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/mwin/winlib/obsolete.o /opt/eldk/build/ppc-20
09-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/winlib/obsolete.c
Building makebmp tool ...
/usr/bin/gcc -B/usr/bin/ /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/bmp/makebmp.c -o /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/bin/makebmp
/usr/bin/gcc -B/usr/bin/ -MM -I. -I/opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/include -I/opt/eldk/build/ppc-2009-04-25/work/ppc_4xx/usr/include/libpng12 -DMWPIXEL_FORMAT=MWPF_PALETTE -DVTSWITCH=1 -DHAVE_FILEIO -DHAVE_PNG_SUPPORT=1 -DHAVE_FNT_SUPPORT=1 -DFNT_FONT_DIR="\""/usr/microwindows-fonts/bdf""\" -DHAVE_FNTGZ_SUPPORT=1 -DHAVE_PCF_SUPPORT=1 -DPCF_FONT_DIR="\""/usr/microwindows-fonts/pcf""\" -DHAVE_HZK_SUPPORT=1 -DHZK_FONT_DIR="\""/usr/microwindows-fonts/chinese""\" -DHAVE_EUCJP_SUPPORT=1 -DEUCJP_FONT_DIR=\""/usr/microwindows-fonts/japanese"\" -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DPORTRAITMODE=0 -DHAVETEXTMODE=1 -DTHREADSAFE=1 -DERASEMOVE=1 -DUPDATEREGIONS=1 -DLINUX=1 -DUNIX=1 -DARCH_LINUX_POWERPPC=1 -DMW_CPU_BIG_ENDIAN=1 /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/winlib/obsolete.c | sed 's/.*\.o[ :]*/\/opt\/eldk\/build\/ppc-2009-04-25\/work\/usr\/src\/
denx\/BUILD\/microwindows-0.91\/src\/obj\/mwin\/winlib\/obsolete.o : /g' > /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/mwin/winlib/obsolete.d || (rm /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/mwin/winlib/obsolete.o /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/mwin/winlib/obsolete.d ; exit 1)
gcc: file path prefix `/usr/bin/' never used
Creating library libmwinlib.a ...
powerpc-linux-ar rs /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/lib/libmwinlib.a /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/mwin/winlib/obsolete.o
powerpc-linux-ar: creating /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/lib/libmwinlib.a
Compiling fonts/X6x13.c ...
Creating shared library libmwinlib.so ...
powerpc-linux-ld -shared -o /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/lib/libmwinlib.so --whole-archive /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/lib/libmwinlib.a
echo "Converting mwin/bmp/car8.bmp ..."
powerpc-linux-gcc -c -DMWPIXEL_FORMAT=MWPF_PALETTE -DVTSWITCH=1 -DHAVE_FILEIO -DHAVE_PNG_SUPPORT=1 -DHAVE_FNT_SUPPORT=1 -DFNT_FONT_DIR="\""/usr/microwindows-fonts/bdf""\" -DHAVE_FNTGZ_SUPPORT=1 -DHAVE_PCF_SUPPORT=1 -DPCF_FONT_DIR="\""/usr/microwindows-fonts/pcf""\" -DHAVE_HZK_SUPPORT=1 -DHZK_FONT_DIR="\""/usr/microwindows-fonts/chinese""\" -DHAVE_EUCJP_SUPPORT=1 -DEUCJP_FONT_DIR=\""/usr/microwindows-fonts/japanese"\" -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DPORTRAITMODE=0 -DHAVETEXTMODE=1 -DTHREADSAFE=1 -DERASEMOVE=1 -DUPDATEREGIONS=1 -DLINUX=1 -DUNIX=1 -DARCH_LINUX_POWERPPC=1 -DMW_CPU_BIG_ENDIAN=1 -fpic -Wall -Wpointer-arith -O3 -s -I. -I/opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/include -I/opt/eldk/build/ppc-2009-04-25/work/ppc_4xx/usr/include/libpng12 -o /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/obj/fonts/X6x13.o /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx
/BUILD/microwindows-0.91/src/obj/fonts/X6x13.c
make[2]: Leaving directory `/opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD/microwindows-0.91/src/mwin/winlib'
echo "Converting mwin/bmp/min4.bmp ..."
Converting mwin/bmp/car8.bmp ...
Converting mwin/bmp/min4.bmp ...
...
Processing files: microwindows-0.91-3
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: microwindows-debuginfo-0.91-3
Checking for unpackaged file(s): /opt/eldk/build/ppc-2009-04-25/work/usr/lib/rpm/check-files /var/tmp/eldk.0GZz7h
Wrote: /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/SRPMS/microwindows-0.91-3.src.rpm
Wrote: /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/RPMS/ppc/microwindows-ppc_4xx-0.91-3.ppc.rpm
Wrote: /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/RPMS/ppc/microwindows-debuginfo-ppc_4xx-0.91-3.ppc.rpm
Executing(%clean): /bin/sh -e /opt/eldk/build/ppc-2009-04-25/work/var/tmp/rpm-tmp.50933
+ umask 022
+ cd /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD
+ cd microwindows-0.91
+ rm -rf /var/tmp/eldk.0GZz7h
+ exit 0
Executing(--clean): /bin/sh -e /opt/eldk/build/ppc-2009-04-25/work/var/tmp/rpm-tmp.50933
+ umask 022
+ cd /opt/eldk/build/ppc-2009-04-25/work/usr/src/denx/BUILD
+ rm -rf microwindows-0.91
+ exit 0
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Carelessly planned projects take three times longer to complete than
expected. Carefully planned projects take four times longer to
complete than expected, mostly because the planners expect their
planning to reduce the time it takes.
More information about the eldk
mailing list