Skip to contentSkip to conversation

Problem with new "make install" of DPDK 2.2.0-rc3 + XenVirt on 32-bit build is broken

PATCH Applied Martinx - ジェームズ 3 participants 8 messages Dec 8, 2015 – Dec 9, 2015

lore
Share & tools
lore
#0 lore raw

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/.config

make

# 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

#1 lore raw
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
#2 lore raw
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' 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:

(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.

#3 lore raw
In reply to Piotr Bartosiewicz

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' 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:

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

#4 lore raw
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' 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:

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
#5 lore raw

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/sh
Quoted 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

#6 lore raw

PATCH 1/1 mk: fix install with minimal shell

In reply to Piotr Bartosiewicz

Some 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
index c611d45..c159bf7 100644
@@ -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