* [dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0
@ 2015-08-28 9:06 Montorsi, Francesco
2015-09-02 14:32 ` Mcnamara, John
2015-09-07 7:57 ` Olivier MATZ
0 siblings, 2 replies; 5+ messages in thread
From: Montorsi, Francesco @ 2015-08-28 9:06 UTC (permalink / raw)
To: dev
Hi all,
I found that after unzipping dpdk-2.1.0.tar.gz if I run:
# make T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc config
And then
# make V=1 T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc clean
I get:
[...]
== Clean app/proc_info
make -f /home/fmontorsi/Downloads/dpdk-2.1.0/GNUmakefile gcovclean
make -f /home/fmontorsi/Downloads/dpdk-2.1.0/mk/rte.sdkgcov.mk gcovclean
/home/fmontorsi/Downloads/dpdk-2.1.0/mk/rte.sdkgcov.mk:34: *** "Cannot use T= with gcov target". Stop.
make[2]: *** [gcovclean] Error 2
make[1]: *** [clean] Error 2
make: *** [clean] Error 2
I guess the fix is:
--- /home/fmontorsi/Downloads/dpdk-2.1.0/mk/rte.sdkbuild.mk 2015-08-17 19:35:37.000000000 +0200
+++ dpdk-2.1.0/mk/rte.sdkbuild.mk 2015-08-28 10:52:56.092466418 +0200
@@ -85,5 +85,7 @@
@$(RTE_SDK)/scripts/gen-config-h.sh $(RTE_OUTPUT)/.config \
> $(RTE_OUTPUT)/include/rte_config.h
+ifndef T
$(Q)$(MAKE) -f $(RTE_SDK)/GNUmakefile gcovclean
+endif
@echo Clean complete
Let me know if the patch above is wrong or I should do something else to contribute it to the project in the right way.
Thanks,
Francesco Montorsi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0
2015-08-28 9:06 [dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0 Montorsi, Francesco
@ 2015-09-02 14:32 ` Mcnamara, John
2015-09-04 8:50 ` Montorsi, Francesco
2015-09-07 7:57 ` Olivier MATZ
1 sibling, 1 reply; 5+ messages in thread
From: Mcnamara, John @ 2015-09-02 14:32 UTC (permalink / raw)
To: Montorsi, Francesco, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Montorsi, Francesco
> Sent: Friday, August 28, 2015 10:07 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] "cannot use T= with gcov target" when doing "makefile
> clean" with DPDK-2.1.0
>
> Hi all,
>
> I found that after unzipping dpdk-2.1.0.tar.gz if I run:
> # make T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc
> config
> And then
> # make V=1 T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc
> clean
>
> I get:
>
> [...]
> == Clean app/proc_info
> make -f /home/fmontorsi/Downloads/dpdk-2.1.0/GNUmakefile gcovclean make -f
> /home/fmontorsi/Downloads/dpdk-2.1.0/mk/rte.sdkgcov.mk gcovclean
> /home/fmontorsi/Downloads/dpdk-2.1.0/mk/rte.sdkgcov.mk:34: *** "Cannot use
> T= with gcov target". Stop.
> make[2]: *** [gcovclean] Error 2
> make[1]: *** [clean] Error 2
> make: *** [clean] Error 2
>
> I guess the fix is:
>
Hi Francesco,
That fix seems reasonable and you should submit it as a patch.
There may be other ways to fix this (there are several ways to fix things within the build system) but if you submit a patch we can get some comments.
John.
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0
2015-09-02 14:32 ` Mcnamara, John
@ 2015-09-04 8:50 ` Montorsi, Francesco
0 siblings, 0 replies; 5+ messages in thread
From: Montorsi, Francesco @ 2015-09-04 8:50 UTC (permalink / raw)
To: Mcnamara, John, dev
Hi John,
> -----Original Message-----
> From: Mcnamara, John [mailto:john.mcnamara@intel.com]
> Sent: mercoledì 2 settembre 2015 16:32
> To: Montorsi, Francesco <fmontorsi@empirix.com>; dev@dpdk.org
> Subject: RE: "cannot use T= with gcov target" when doing "makefile clean"
> with DPDK-2.1.0
>...
> That fix seems reasonable and you should submit it as a patch.
>
> There may be other ways to fix this (there are several ways to fix things
> within the build system) but if you submit a patch we can get some
> comments.
I will submit the patch ASAP (together with a few others). I guess I need to follow closely what's written here:
http://dpdk.org/dev
Thanks,
Francesco
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0
2015-08-28 9:06 [dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0 Montorsi, Francesco
2015-09-02 14:32 ` Mcnamara, John
@ 2015-09-07 7:57 ` Olivier MATZ
2015-09-29 16:06 ` Montorsi, Francesco
1 sibling, 1 reply; 5+ messages in thread
From: Olivier MATZ @ 2015-09-07 7:57 UTC (permalink / raw)
To: Montorsi, Francesco, dev
Hi Francesco,
On 08/28/2015 11:06 AM, Montorsi, Francesco wrote:
> Hi all,
>
> I found that after unzipping dpdk-2.1.0.tar.gz if I run:
> # make T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc config
> And then
> # make V=1 T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc clean
>
> I get:
>
> [...]
> == Clean app/proc_info
> make -f /home/fmontorsi/Downloads/dpdk-2.1.0/GNUmakefile gcovclean
> make -f /home/fmontorsi/Downloads/dpdk-2.1.0/mk/rte.sdkgcov.mk gcovclean
> /home/fmontorsi/Downloads/dpdk-2.1.0/mk/rte.sdkgcov.mk:34: *** "Cannot use T= with gcov target". Stop.
> make[2]: *** [gcovclean] Error 2
> make[1]: *** [clean] Error 2
> make: *** [clean] Error 2
>
> I guess the fix is:
>
> --- /home/fmontorsi/Downloads/dpdk-2.1.0/mk/rte.sdkbuild.mk 2015-08-17 19:35:37.000000000 +0200
> +++ dpdk-2.1.0/mk/rte.sdkbuild.mk 2015-08-28 10:52:56.092466418 +0200
> @@ -85,5 +85,7 @@
> @$(RTE_SDK)/scripts/gen-config-h.sh $(RTE_OUTPUT)/.config \
> > $(RTE_OUTPUT)/include/rte_config.h
> +ifndef T
> $(Q)$(MAKE) -f $(RTE_SDK)/GNUmakefile gcovclean
> +endif
> @echo Clean complete
>
>
> Let me know if the patch above is wrong or I should do something else to contribute it to the project in the right way.
I had a look to your test case, I think the second command is not
correct. The T= parameter is not allowed for the clean target. It
should be something like this:
# configure a workspace using template specified by T= in the
# directory specified by O=
make T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc config
# clean the directory specified by O=
make O=x86_64-native-linuxapp-gcc clean
See "make help" for details.
I think the proper patch would be to add the following lines on the
top of rte.sdkbuild.mk:
ifdef T
ifeq ("$(origin T)", "command line")
$(error "Cannot use T= with a build/clean target")
endif
endif
It would then display the proper error message.
Can you have a try?
Regards,
Olivier
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0
2015-09-07 7:57 ` Olivier MATZ
@ 2015-09-29 16:06 ` Montorsi, Francesco
0 siblings, 0 replies; 5+ messages in thread
From: Montorsi, Francesco @ 2015-09-29 16:06 UTC (permalink / raw)
To: Olivier MATZ, dev
Hi Olivier,
Sorry for the delay:
> -----Original Message-----
> From: Olivier MATZ [mailto:olivier.matz@6wind.com]
> I had a look to your test case, I think the second command is not correct. The
> T= parameter is not allowed for the clean target. It should be something like
> this:
>
> # configure a workspace using template specified by T= in the
> # directory specified by O=
> make T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc config
>
> # clean the directory specified by O=
> make O=x86_64-native-linuxapp-gcc clean
>
> See "make help" for details.
>
>
> I think the proper patch would be to add the following lines on the top of
> rte.sdkbuild.mk:
>
> ifdef T
> ifeq ("$(origin T)", "command line")
> $(error "Cannot use T= with a build/clean target")
> endif
> endif
>
>
> It would then display the proper error message.
> Can you have a try?
You're right. It was not clear to me that T= is coinceived as option of the "config" target only, but it makes absolutely sense.
I added the code you posted on ret.sdkbuild.mk and it works just fine, making this usage case more clear... I just submitted a patch for that.
Thanks,
Francesco
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-29 16:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-28 9:06 [dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0 Montorsi, Francesco
2015-09-02 14:32 ` Mcnamara, John
2015-09-04 8:50 ` Montorsi, Francesco
2015-09-07 7:57 ` Olivier MATZ
2015-09-29 16:06 ` Montorsi, Francesco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).