[#5438] Pictureflow can not be cleaned after "make clean" in uclinux-dist and it cause build failure for next build

Document created by Aaronwu Employee on Sep 4, 2013
Version 1Show Document
  • View in full screen mode

[#5438] Pictureflow can not be cleaned after "make clean" in uclinux-dist and it cause build failure for next build

Submitted By: Vivi Li

Open Date

2009-08-13 18:04:31     Close Date

2011-09-13 03:51:02

Priority:

Low     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2009R1-RC6     Release:

Category:

Make Errors     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1_rc9

App binary format:

N/A     

Summary: Pictureflow can not be cleaned after "make clean" in uclinux-dist and it cause build failure for next build

Details:

 

Pictureflow can not be cleaned after "make clean" in uclinux-dist. Then it will fail to build when it is not completely cleaned.

 

--

test@uboot30-527ezkit:~/work/cruise/checkouts/uclinux-dist> ls user/pictureflow/pictureflow-0.1.0/pictureflow-qt/

main.cpp  Makefile             moc_pictureflow.o  pictureflow.cpp  pictureflow.o

main.o    moc_pictureflow.cpp  pictureflow        pictureflow.h    pictureflow.pro

test@uboot30-527ezkit:~/work/cruise/checkouts/uclinux-dist> make user/pictureflow_only

make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user'

touch pictureflow/.sgbuilt_user && make -C pictureflow -j1

make[2]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/pictureflow'

make -C pictureflow-0.1.0/pictureflow-qt

make[3]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/pictureflow/pictureflow-0.1.0/pictureflow-qt'

make[3]: Nothing to be done for `first'.

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/pictureflow/pictureflow-0.1.0/pictureflow-qt'

make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/pictureflow'

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'

test@uboot30-527ezkit:~/work/cruise/checkouts/uclinux-dist>

--

 

Follow-ups

 

--- Sonic Zhang                                              2010-06-29 06:49:17

Make clean against the pictureflow can succeed only when QT is built and

installed into staging folder properly. If the staging folder was removed

manually, pictureflow binaries have to be removed manually.

 

 

--- Sonic Zhang                                              2010-06-29 06:50:22

pictureflow Makefile depends on

 

staging/usr/share/qt/mkspecs/qws/linux-bfin-flat-g++/qmake.conf

 

 

--- Mike Frysinger                                           2010-06-29 15:20:29

how about we use a separate build with OBJECTS_DIR=... ?  then the clean target

can simply be `rm -rf` on the build dir.

 

maybe something like:

$(VER)/pictureflow-qt/Makefile:

    cd $(VER)/pictureflow-qt && $(QMAKE) OBJECTS_DIR=$(PWD)/build

 

--- Sonic Zhang                                              2010-06-29 23:59:25

Yes, it can be. But, it is not a worse option to just do manual remove.

 

--- Mike Frysinger                                           2010-07-02 13:03:30

building out of the source tree is highly preferred because it keeps the

compiled code cleanly separated from the source and it makes the 'clean' target

trivial.  it is a lot faster to run `rm -rf` on a dir than to process even more

makefiles in subdirs.  and it's guaranteed to clean things where the makefile

often misses a few places.

 

--- Sonic Zhang                                              2011-09-05 04:14:40

No plan to update the Makefile for uClinux-dist.

 

--- Vivi Li                                                  2011-09-13 03:51:02

So workaround in script.

Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes