Problem with new "make install" of DPDK 2.2.0-rc3 + XenVirt on 32-bit build is broken
Hey guys,
I'm seeing that there are something wrong with "standard make install", look:
---
cd dpdk-2.2.0-rc3
make T=x86_64-native-linuxapp-gcc config
sed -ri -e 's,(RTE_MACHINE=).*,\1"default",' \
-e 's,(RTE_APP_TEST=).*,\1n,' \
-e 's,(LIBRTE_VHOST=).*,\1y,' \
-e 's,(CONFIG_RTE_EAL_IGB_UIO=).*,\1n,' \
-e 's,(CONFIG_RTE_LIBRTE_KNI=).*,\1n,' \
-e 's,(CONFIG_RTE_BUILD_COMBINE_LIBS=).*,\1y,' \
-e 's,(CONFIG_RTE_LIBNAME=).*,\1"dpdk",' \
-e 's,(CONFIG_RTE_LIBRTE_PMD_XENVIRT=).*,\1y,' \
-e 's,(RTE_BUILD_SHARED_LIB=).*,\1y,' \
build/.configmake
# Now, the problem:
mkdir /tmp/dpdk-fakeroot
DESTDIR=/tmp/dpdk-fakeroot fakeroot make install
make[1]: Nothing to be done for 'pre_install'. ================== Installing /tmp/dpdk-fakeroot/usr/local/
cp: cannot stat ‘/home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/{mk,scripts}’: No such file or directory /home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/mk/ rte.sdkinstall.mk:137: recipe for target 'install-sdk' failed make[3]: *** [install-sdk] Error 1 /home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/mk/rte.sdkroot.mk:101:
recipe for target 'install-sdk' failed
make[2]: *** [install-sdk] Error 2 /home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/mk/ rte.sdkinstall.mk:107: recipe for target 'install' failed make[1]: *** [install] Error 2 /home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/mk/rte.sdkroot.mk:98:
recipe for target 'install' failed
make: *** [install] Error 2
---
Am I missing something?
Oh, BTW, have you guys fixed the DPDK build with Xen on 32-bit? It is broken, reported here:
http://dpdk.org/ml/archives/dev/2015-December/029261.html
Thanks!
Thiago
Quoted 7 lines
cp: cannot stat ‘/home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/{mk,scripts}’: No such file or directory
/home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/mk/rte.sdkinstall.mk:137: recipe for target 'install-sdk' failed
I have the same problem and it has nothing to do with XenVirt or 32-bit build. As a workaround you can change mk/rte.sdkinstall.mk as follows:
- $(Q)cp -a $(RTE_SDK)/{mk,scripts} $(DESTDIR)$(sdkdir)
+ $(Q)cp -a $(RTE_SDK)/mk $(DESTDIR)$(sdkdir)
+ $(Q)cp -a $(RTE_SDK)/scripts $(DESTDIR)$(sdkdir)Signature · 2 lines
Regards Piotr Bartosiewicz
Quoted 17 lines · Piotr Bartosiewicz
cp: cannot stat
Quoted 6 lines
‘/home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/{mk,scripts}’: No such file or directory
/home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/mk/rte.sdkinstall.mk:137: recipe for target 'install-sdk' failedI have the same problem and it has nothing to do with XenVirt or 32-bit build.
As a workaround you can changemk/rte.sdkinstall.mkas follows:(quoted diff) +2
-2- $(Q)cp -a $(RTE_SDK)/{mk,scripts} $(DESTDIR)$(sdkdir) + $(Q)cp -a $(RTE_SDK)/mk $(DESTDIR)$(sdkdir) + $(Q)cp -a $(RTE_SDK)/scripts $(DESTDIR)$(sdkdir) --
Quoted 4 lines
Regards
Piotr Bartosiewicz
Sure, XenVirt problem is a different issue, sorry to mix subjects on this thread.
2015-12-08 18:01, Piotr Bartosiewicz:
Quoted 12 lines
Quoted 7 lines
cp: cannot stat ‘/home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/{mk,scripts}’: No such file or directory
/home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/mk/rte.sdkinstall.mk:137: recipe for target 'install-sdk' failedI have the same problem and it has nothing to do with XenVirt or 32-bit build.
As a workaround you can changemk/rte.sdkinstall.mkas follows:
Review
Quoted 3 lines
(quoted diff) +2
-1- $(Q)cp -a $(RTE_SDK)/{mk,scripts} $(DESTDIR)$(sdkdir) + $(Q)cp -a $(RTE_SDK)/mk $(DESTDIR)$(sdkdir) + $(Q)cp -a $(RTE_SDK)/scripts $(DESTDIR)$(sdkdir)
I had a doubt when writing it.
Please what is your default shell? ls -l /bin/sh
Quoted 13 lines · Thomas Monjalon
2015-12-08 18:01, Piotr Bartosiewicz:
Quoted 12 lines
Quoted 7 lines
cp: cannot stat ‘/home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/{mk,scripts}’: No such file or directory
/home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/mk/rte.sdkinstall.mk:137: recipe for target 'install-sdk' failedI have the same problem and it has nothing to do with XenVirt or 32-bit build.
As a workaround you can changemk/rte.sdkinstall.mkas follows:
Quoted 8 lines
Quoted 1 line
- $(Q)cp -a $(RTE_SDK)/{mk,scripts}
$(DESTDIR)$(sdkdir)
Review
Quoted 2 lines
(quoted diff) +2
-0+ $(Q)cp -a $(RTE_SDK)/mk $(DESTDIR)$(sdkdir) + $(Q)cp -a $(RTE_SDK)/scripts $(DESTDIR)$(sdkdir)I had a doubt when writing it.
Please what is your default shell? ls -l/bin/sh
Mine is dash (default on Debian / Ubuntu):
tmartins@xenial-1:~$ file /bin/sh /bin/sh: symbolic link to dash
W dniu 08.12.2015 o 20:07, Martinx - ジェームズ pisze:
Quoted 29 lines · On 8 December 2015 at 17:03, Thomas Monjalon <[email protected]…
2015-12-08 18:01, Piotr Bartosiewicz:
>
> > cp: cannot stat
> >
‘/home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/{mk,scripts}’:
No
> > such file or directory
> > /home/tmartins/sources/dpdk/2.2.0-rc3/dpdk-2.2.0-rc3/mk/
> > rte.sdkinstall.mk:137 <http://rte.sdkinstall.mk:137>: recipe
for target 'install-sdk' failed
> >
>
> I have the same problem and it has nothing to do with XenVirt or
32-bit
> build.
> As a workaround you can change mk/rte.sdkinstall.mk
<http://rte.sdkinstall.mk> as follows:
>
> - $(Q)cp -a $(RTE_SDK)/{mk,scripts} $(DESTDIR)$(sdkdir)
> + $(Q)cp -a $(RTE_SDK)/mk $(DESTDIR)$(sdkdir)
> + $(Q)cp -a $(RTE_SDK)/scripts
$(DESTDIR)$(sdkdir)
I had a doubt when writing it.
Please what is your default shell? ls -l /bin/shQuoted 5 lines
Mine is dash (default on Debian / Ubuntu):
tmartins@xenial-1:~$ file /bin/sh /bin/sh: symbolic link to dash
/bin/sh -> dash
Debian GNU/Linux 8
Ubuntu 15.10
PATCH 1/1 mk: fix install with minimal shell
In reply to Piotr BartosiewiczSome shells like dash do not support the syntax {}:
{mk,scripts}: No such file or directory
--- mk/rte.sdkinstall.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mk/rte.sdkinstall.mk +2 -1
@@ -139,7 +139,8 @@ install-sdk: tar -xf - -C $(DESTDIR)$(includedir) --strip-components=1 \ --keep-newer-files --warning=no-ignore-newer $(Q)$(call rte_mkdir, $(DESTDIR)$(sdkdir)) - $(Q)cp -a $(RTE_SDK)/{mk,scripts} $(DESTDIR)$(sdkdir) + $(Q)cp -a $(RTE_SDK)/mk $(DESTDIR)$(sdkdir) + $(Q)cp -a $(RTE_SDK)/scripts $(DESTDIR)$(sdkdir) $(Q)$(call rte_mkdir, $(DESTDIR)$(targetdir)) $(Q)cp -a $O/.config $(DESTDIR)$(targetdir) $(Q)$(call rte_symlink, $(DESTDIR)$(includedir), $(DESTDIR)$(targetdir)/include)
Signature · 1 line
2.5.2
Thomas Monjalon
AppliedRe: [PATCH] mk: fix install with minimal shell
2015-12-09 09:03, Thomas Monjalon:
Quoted 6 lines
Some shells like dash do not support the syntax {}:
{mk,scripts}: No such file or directoryReported-by Thiago Martins <[email protected]>Reported-by Piotr Bartosiewicz <[email protected]>Signed-off-by Thomas Monjalon <[email protected]>
Applied