UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
928 Views
Registered: ‎05-22-2008

Petalinux fails: No rule to make target clean

Jump to solution

 

I've run across a problem where when building my application in petalinux 2017.3, via the command line call:

 

petalinux-build -c myapplication

or

petalinux-build -c myapplication -x compile

 

the process errors out, with:

 

ERROR: myapplication-1.0-r0 do_configure: oe_runmake failed
....
...(more stuff)

Note: make clean
ERROR:oe_runmake failed
make: ** No rule to make target 'clean'. Stop.

I'm using the petalinux generated bbappend file, as well as the petalinux generated Makefile. It is worth noting that the Makefile has no "clean" target, and if I manually add one, I can make this problem go away. BUT, it concerns me that I'm having to manually add the "clean" target, and I'd like a better solution than "This is just petalinux being sloppy, fix it yourself."

 

Has anyone else had this problem or does anyone have insight into why this might occur?

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
971 Views
Registered: ‎04-24-2017

Re: Petalinux fails: No rule to make target clean

Jump to solution

Recipe looks good.

 

Can you run below commands and post the output.

 

$ petalinux-build -c myapplication -x cleanall
$ petalinux-build -c myapplication 

#For more details on recipes tasks run this
$ petalinux-build -c myapplication -x listtasks
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
4 Replies
Moderator
Moderator
906 Views
Registered: ‎04-24-2017

Re: Petalinux fails: No rule to make target clean

Jump to solution

Hi @mckinjo4,

 

Can you post the content on myapplication.bb and Makefile file?

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Explorer
Explorer
901 Views
Registered: ‎05-22-2008

Re: Petalinux fails: No rule to make target clean

Jump to solution

the bbappend file:

#
# This file is the tcp-echo-server recipe.
#

SUMMARY = "Simple tcp-echo-server application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://tcp-echo-server.c \
	   file://Makefile \
		  "

S = "${WORKDIR}"

do_compile() {
	     oe_runmake
}

do_install() {
	     install -d ${D}${bindir}
	     install -m 0755 tcp-echo-server ${D}${bindir}
}

the makefile:

 

APP = tcp-echo-server

# Add any other object files to this list below
APP_OBJS = tcp-echo-server.o

all: build

build: $(APP)

$(APP): $(APP_OBJS)
	$(CC) $(LDFLAGS) -o $@ $(APP_OBJS) $(LDLIBS)

0 Kudos
Moderator
Moderator
972 Views
Registered: ‎04-24-2017

Re: Petalinux fails: No rule to make target clean

Jump to solution

Recipe looks good.

 

Can you run below commands and post the output.

 

$ petalinux-build -c myapplication -x cleanall
$ petalinux-build -c myapplication 

#For more details on recipes tasks run this
$ petalinux-build -c myapplication -x listtasks
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Explorer
Explorer
871 Views
Registered: ‎05-22-2008

Re: Petalinux fails: No rule to make target clean

Jump to solution

OK,

 

So When I run:

 

petalinux-build -c myapplication -x cleanall

everything works. I haven't since been able to recreate the situation where I it won't build without a manual "clean" target, but in trying to do so, I've been able to see something else. If appears that petalinux in some cases misreports the error. In the below sequence of commands, I induce a syntax error (specifically by removing a ; at the end of a line, or by erasing the # infront of a define statement.) The error that is reported is "No rule to make clean":

 

[mckinneyj@inf-lg2-wks58 tcp-echo-server]$ petalinux-build -c tcp-echo-server -x cleanall
[INFO] building tcp-echo-server
[INFO] sourcing bitbake
INFO: bitbake tcp-echo-server -c cleanall
WARNING: Host distribution "CentOS-7.4.1708" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |###############################################################################################################################################| Time: 0:00:00
Loaded 3271 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################| Time: 0:00:01
Parsing of 2481 .bb files complete (2447 cached, 34 parsed). 3274 targets, 225 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##########################################################################################################################################| Time: 0:00:00
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
[INFO] successfully built tcp-echo-server
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!


[mckinneyj@inf-lg2-wks58 tcp-echo-server]$ petalinux-build -c tcp-echo-server
[INFO] building tcp-echo-server
[INFO] sourcing bitbake
INFO: bitbake tcp-echo-server
WARNING: Host distribution "CentOS-7.4.1708" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |###############################################################################################################################################| Time: 0:00:00
Loaded 3271 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################| Time: 0:00:01
Parsing of 2481 .bb files complete (2447 cached, 34 parsed). 3274 targets, 225 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##########################################################################################################################################| Time: 0:00:00
Checking sstate mirror object availability: 100% |##################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 568 tasks of which 553 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
INFO: Copying Images from deploy to images
NOTE: Successfully copied built images to tftp dir:  /var/lib/tftpboot
[INFO] successfully built tcp-echo-server
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!


[mckinneyj@inf-lg2-wks58 tcp-echo-server]$ petalinux-build -c tcp-echo-server -x compile
[INFO] building tcp-echo-server
[INFO] sourcing bitbake
INFO: bitbake tcp-echo-server -c compile
WARNING: Host distribution "CentOS-7.4.1708" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |###############################################################################################################################################| Time: 0:00:00
Loaded 3271 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################| Time: 0:00:01
Parsing of 2481 .bb files complete (2447 cached, 34 parsed). 3274 targets, 225 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##########################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 226 tasks of which 221 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
INFO: Copying Images from deploy to images
NOTE: Successfully copied built images to tftp dir:  /var/lib/tftpboot
[INFO] successfully built tcp-echo-server
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!

CAUSE_SYNTAX_ERROR_IN_FILE

[mckinneyj@inf-lg2-wks58 tcp-echo-server]$ petalinux-build -c tcp-echo-server -x compile
[INFO] building tcp-echo-server
[INFO] sourcing bitbake
INFO: bitbake tcp-echo-server -c compile
WARNING: Host distribution "CentOS-7.4.1708" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |###############################################################################################################################################| Time: 0:00:00
Loaded 3271 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################| Time: 0:00:01
Parsing of 2481 .bb files complete (2447 cached, 34 parsed). 3274 targets, 225 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##########################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: tcp-echo-server-1.0-r0 do_configure: oe_runmake failed
ERROR: tcp-echo-server-1.0-r0 do_configure: Function failed: do_configure (log file is located at /data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/build/tmp/work/aarch64-xilinx-linux/tcp-echo-server/1.0-r0/temp/log.do_configure.64969)
ERROR: Logfile of failure stored in: /data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/build/tmp/work/aarch64-xilinx-linux/tcp-echo-server/1.0-r0/temp/log.do_configure.64969
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| NOTE: make clean
| ERROR: oe_runmake failed
| make: *** No rule to make target 'clean'.  Stop.
| WARNING: /data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/build/tmp/work/aarch64-xilinx-linux/tcp-echo-server/1.0-r0/temp/run.do_configure.64969:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_configure (log file is located at /data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/build/tmp/work/aarch64-xilinx-linux/tcp-echo-server/1.0-r0/temp/log.do_configure.64969)
ERROR: Task (/data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/project-spec/meta-user/recipes-apps/tcp-echo-server/tcp-echo-server.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 225 tasks of which 221 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/project-spec/meta-user/recipes-apps/tcp-echo-server/tcp-echo-server.bb:do_configure
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build tcp-echo-server
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!


FIXED SYNTAX ERROR IN FILE

[mckinneyj@inf-lg2-wks58 tcp-echo-server]$ petalinux-build -c tcp-echo-server -x compile
[INFO] building tcp-echo-server
[INFO] sourcing bitbake
INFO: bitbake tcp-echo-server -c compile
WARNING: Host distribution "CentOS-7.4.1708" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |###############################################################################################################################################| Time: 0:00:00
Loaded 3271 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################| Time: 0:00:01
Parsing of 2481 .bb files complete (2447 cached, 34 parsed). 3274 targets, 225 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##########################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 226 tasks of which 226 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
INFO: Copying Images from deploy to images
NOTE: Successfully copied built images to tftp dir:  /var/lib/tftpboot
[INFO] successfully built tcp-echo-server
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!

CAUSE_SYNTAX_ERROR_IN_FILE

[mckinneyj@inf-lg2-wks58 tcp-echo-server]$ petalinux-build -c tcp-echo-server -x compile
[INFO] building tcp-echo-server
[INFO] sourcing bitbake
INFO: bitbake tcp-echo-server -c compile
WARNING: Host distribution "CentOS-7.4.1708" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |###############################################################################################################################################| Time: 0:00:00
Loaded 3271 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################| Time: 0:00:01
Parsing of 2481 .bb files complete (2447 cached, 34 parsed). 3274 targets, 225 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##########################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: tcp-echo-server-1.0-r0 do_configure: oe_runmake failed
ERROR: tcp-echo-server-1.0-r0 do_configure: Function failed: do_configure (log file is located at /data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/build/tmp/work/aarch64-xilinx-linux/tcp-echo-server/1.0-r0/temp/log.do_configure.67882)
ERROR: Logfile of failure stored in: /data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/build/tmp/work/aarch64-xilinx-linux/tcp-echo-server/1.0-r0/temp/log.do_configure.67882
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| NOTE: make clean
| ERROR: oe_runmake failed
| make: *** No rule to make target 'clean'.  Stop.
| WARNING: /data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/build/tmp/work/aarch64-xilinx-linux/tcp-echo-server/1.0-r0/temp/run.do_configure.67882:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_configure (log file is located at /data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/build/tmp/work/aarch64-xilinx-linux/tcp-echo-server/1.0-r0/temp/log.do_configure.67882)
ERROR: Task (/data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/project-spec/meta-user/recipes-apps/tcp-echo-server/tcp-echo-server.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 225 tasks of which 221 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /data/mckinneyj/fpga_projects/fpga_irad/xapp1305-ps-pl-based-ethernet-solution-2017.3/software/stardust/project-spec/meta-user/recipes-apps/tcp-echo-server/tcp-echo-server.bb:do_configure
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build tcp-echo-server
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!


FIXED SYNTAX ERROR

[mckinneyj@inf-lg2-wks58 tcp-echo-server]$ petalinux-build -c tcp-echo-server -x compile
[INFO] building tcp-echo-server
[INFO] sourcing bitbake
INFO: bitbake tcp-echo-server -c compile
WARNING: Host distribution "CentOS-7.4.1708" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |###############################################################################################################################################| Time: 0:00:00
Loaded 3271 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################| Time: 0:00:01
Parsing of 2481 .bb files complete (2447 cached, 34 parsed). 3274 targets, 225 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##########################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 226 tasks of which 221 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
INFO: Copying Images from deploy to images
NOTE: Successfully copied built images to tftp dir:  /var/lib/tftpboot
[INFO] successfully built tcp-echo-server
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!
[mckinneyj@inf-lg2-wks58 tcp-echo-server]$ 

0 Kudos