[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] Unbuildable tree and backing it up
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] Unbuildable tree and backing it up |
Date: |
Mon, 30 Jul 2007 13:30:15 +0100 |
Hi Tom,
There is a patch to fix some make issues here:
http://www.bitshrine.org/gpp/u-boot-1.1.6-make-fixes.patch
maybe that helps?
Regards, Stuart
On Mon, 2007-07-30 at 06:49 -0400, Thomas A. Moulton wrote:
> Stuart,
>
> It is from Freescale and I think I have found the rot of the problem.
>
> It is a makeflile problem due to differences in make.
>
> I figured out the defconfig.dev, but not the --preconfig option, I like
> that.
>
> tom
>
> Stuart Hughes wrote:
> > Hi Tom,
> >
> > LTIB avoids touching anything in rpm/BUILD/xxx in case you're working on
> > source code. So if you have a failed package build and you want to want
> > to rebuild that package from scratch, run:
> >
> > $ rm -rf rpm/BUILD/<pkg-dir>
> > $ ./ltib
> >
> > Can you tell me if this LTIB was from a Freescale ISO or from the
> > savannah CVS?
> >
> > To "backup" an ltib configuration simply save the file "defconfig.dev"
> > in config/platform/<target> . This contains all the configuration
> > information about your currently configured target. You can save/rename
> > this if you like. If you later want to re-create from that preconfig
> > run:
> >
> > $ ./ltib --preconfig <path_to_preconfig>
> >
> > Regards, Stuart
> >
> > On Mon, 2007-07-23 at 16:00 -0400, Thomas A. Moulton wrote:
> >
> >> OK I shot myself in the foot once, I broke out of ltib when it was
> >> building the output; I then ended up with a tree that could not
> >> build, it gets errors looking for a file.
> >>
> >> (the BSP is for the MPC8313ERBD from Freescale)
> >>
> >> I tried
> >>
> >> ./ltib -m clean
> >> ./ltib
> >>
> >> and I still get the error (below)
> >>
> >> I am running ubuntu (Feisty Fawn)
> >>
> >> Also what is the correct way to backup the configuration (ltib dir)
> >> so I can easily recover from these kind of things?
> >>
> >> I tried an root enabled tarball but that did not seem to have enough
> >>
> >> tom
> >> -----------------------------------------------
> >> make[1]: Entering directory
> >> `/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/examples'
> >> powerpc-linux-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__
> >> -DTEXT_BASE=0xFE000000
> >> -I/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/include
> >> -fno-builtin -ffreestanding -nostdinc -isystem
> >> /opt/mtwk/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/include
> >> -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300
> >> -ffixed-r2 -ffixed-r29 -msoft-float -Wall -Wstrict-prototypes -c -o
> >> hello_world.o hello_world.c
> >> powerpc-linux-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__
> >> -DTEXT_BASE=0xFE000000
> >> -I/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/include
> >> -fno-builtin -ffreestanding -nostdinc -isystem
> >> /opt/mtwk/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/include
> >> -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300
> >> -ffixed-r2 -ffixed-r29 -msoft-float -Wall -Wstrict-prototypes -c -o
> >> sched.o sched.c
> >> powerpc-linux-gcc -D__ASSEMBLY__ -g -Os -fPIC -ffixed-r14 -meabi
> >> -D__KERNEL__ -DTEXT_BASE=0xFE000000
> >> -I/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/include
> >> -fno-builtin -ffreestanding -nostdinc -isystem
> >> /opt/mtwk/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/include
> >> -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300
> >> -ffixed-r2 -ffixed-r29 -msoft-float -c -o ppc_longjmp.o ppc_longjmp.S
> >> powerpc-linux-gcc -D__ASSEMBLY__ -g -Os -fPIC -ffixed-r14 -meabi
> >> -D__KERNEL__ -DTEXT_BASE=0xFE000000
> >> -I/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/include
> >> -fno-builtin -ffreestanding -nostdinc -isystem
> >> /opt/mtwk/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/include
> >> -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300
> >> -ffixed-r2 -ffixed-r29 -msoft-float -c -o ppc_setjmp.o ppc_setjmp.S
> >> powerpc-linux-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__
> >> -DTEXT_BASE=0xFE000000
> >> -I/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/include
> >> -fno-builtin -ffreestanding -nostdinc -isystem
> >> /opt/mtwk/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/include
> >> -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300
> >> -ffixed-r2 -ffixed-r29 -msoft-float -Wall -Wstrict-prototypes -c -o
> >> stubs.o stubs.c
> >> powerpc-linux-ar crv libstubs.a ppc_longjmp.o ppc_setjmp.o stubs.o
> >> a - ppc_longjmp.o
> >> a - ppc_setjmp.o
> >> a - stubs.o
> >> powerpc-linux-ld -g -Ttext 0x40000 \
> >> -o hello_world -e hello_world hello_world.o
> >> libstubs.a \
> >>
> >> -L/opt/mtwk/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3
> >> -lgcc
> >> powerpc-linux-objcopy -O srec hello_world hello_world.srec 2>/dev/null
> >> powerpc-linux-ld -g -Ttext 0x40000 \
> >> -o sched -e sched sched.o libstubs.a \
> >>
> >> -L/opt/mtwk/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3
> >> -lgcc
> >> powerpc-linux-objcopy -O srec sched sched.srec 2>/dev/null
> >> powerpc-linux-objcopy -O binary hello_world hello_world.bin 2>/dev/null
> >> powerpc-linux-objcopy -O binary sched sched.bin 2>/dev/null
> >> cd vsc7385_load && make
> >> make[2]: Entering directory
> >> `/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/examples/vsc7385_load'
> >> powerpc-linux-gcc -M -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__
> >> -DTEXT_BASE=0xFE000000
> >> -I/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/include
> >> -fno-builtin -ffreestanding -nostdinc -isystem
> >> /opt/mtwk/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/include
> >> -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300
> >> -ffixed-r2 -ffixed-r29 -msoft-float -Wall -Wstrict-prototypes
> >> vsc7385_load.c > .depend
> >> make[2]: Leaving directory
> >> `/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/examples/vsc7385_load'
> >> make[2]: Entering directory
> >> `/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/examples/vsc7385_load'
> >> make[2]: *** No rule to make target `vsc7385_load.srec', needed by `all'.
> >> Stop.
> >> make[2]: Leaving directory
> >> `/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/examples/vsc7385_load'
> >> make[1]: *** [vsc7385_load\vsc7385_load.srec] Error 2
> >> make[1]: Leaving directory
> >> `/home/tom/ltib-mpc8313erdb-20070428/rpm/BUILD/u-boot-1.1.6/examples'
> >> make: *** [examples] Error 2
> >> error: Bad exit status from
> >> /home/tom/ltib-mpc8313erdb-20070428/tmp/rpm-tmp.4170 (%build)
> >>
> >>
> >> RPM build errors:
> >> Bad exit status from
> >> /home/tom/ltib-mpc8313erdb-20070428/tmp/rpm-tmp.4170 (%build)
> >> Build time for u-boot-1.1.6-mpc8313erdb: 10 seconds
> >>
> >> Failed building u-boot-1.1.6-mpc8313erdb
> >>
> >>
> >> f_buildrpms() returned an error, exiting
> >>
> >> Started: Mon Jul 23 15:52:38 2007
> >> Ended: Mon Jul 23 15:52:48 2007
> >> Elapsed: 10 seconds
> >>
> >> These packages failed to build:
> >> u-boot-1.1.6-mpc8313erdb
> >> Build Failed
> >>
> >> Exiting on error or interrupt
> >> address@hidden:~/ltib-mpc8313erdb-20070428$
> >>
> >>
> >>
> >> _______________________________________________
> >> LTIB home page: http://bitshrine.org
> >>
> >> Ltib mailing list
> >> address@hidden
> >> http://lists.nongnu.org/mailman/listinfo/ltib
> >>
> >
> >
> >