Skip to contentSkip to conversation

DPDK fails to build into one single library ("CONFIG_RTE_BUILD_COMBINE_LIBS=y").

PATCH New Rauta, Alin 3 participants 10 messages Jul 20, 2015 – Jul 22, 2015 2 messages not in the archive Library code

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 DPDK fails to build into one single library ("CONFIG_RTE_BUILD_COMBINE_LIBS=y").

In reply to a message not in the archive

Hi,

I'm trying to build the latest dpdk code into one combine library, but the compilation fails like below. The issue seems to be around "librte_malloc".

" make install T=x86_64-native-linuxapp-gcc"

== Build lib/librte_malloc
AR librte_malloc.a
cp: missing destination file operand after ‘/root/dpdk/x86_64-native-linuxapp-gcc/build/lib’ Try 'cp --help' for more information.
/root/dpdk/mk/rte.lib.mk:145: recipe for target 'librte_malloc.a' failed
make[5]: *** [librte_malloc.a] Error 1
/root/dpdk/mk/rte.subdir.mk:61: recipe for target 'librte_malloc' failed
make[4]: *** [librte_malloc] Error 2
/root/dpdk/mk/rte.sdkbuild.mk:93: recipe for target 'lib' failed
make[3]: *** [lib] Error 2
/root/dpdk/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
make[2]: *** [all] Error 2
/root/dpdk/mk/rte.sdkinstall.mk:58: recipe for target 'x86_64-native-linuxapp-gcc_install' failed make[1]: *** [x86_64-native-linuxapp-gcc_install] Error 2 /root/dpdk/mk/rte.sdkroot.mk:102: recipe for target 'install' failed
make: *** [install] Error 2
[root@silpixa00390856 dpdk]#

I'm not sure if this is the fix or the right fix, I'm also not sure on the impact the change has, but commenting out "-DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_malloc" from "lib/Makefile" makes the compilation succeed.

Let me know what you think.

Thanks in advance,
Alin Rauta (1):
DPDK fails to build into one single library

    ("CONFIG_RTE_BUILD_COMBINE_LIBS=y").
 lib/Makefile | 1 -
 1 file changed, 1 deletion(-)
Signature · 1 line
2.1.0
#8 lore raw

PATCH 1/1 DPDK fails to build into one single library ("CONFIG_RTE_BUILD_COMBINE_LIBS=y").

In reply to a message not in the archive
---
 lib/Makefile | 1 -
 1 file changed, 1 deletion(-)
lib/Makefile +0 -1
@@ -33,7 +33,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
 
 DIRS-y += librte_compat
 DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal
-DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_malloc
 DIRS-$(CONFIG_RTE_LIBRTE_RING) += librte_ring
 DIRS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += librte_mempool
 DIRS-$(CONFIG_RTE_LIBRTE_MBUF) += librte_mbuf

--
2.1.0

#9 lore raw

2015-07-20 18:04, Rauta, Alin:

lib/Makefile include $(RTE_SDK)/mk/rte.vars.mk · line 36

Quoted 7 lines
lib/Makefile +0 -1
@@ -33,7 +33,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
 
 DIRS-y += librte_compat
 DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal
-DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_malloc

I feel it's not the right fix :)

Quoted 1 line

From now, I'll test combine lib build.

Thanks for reporting

#10 lore raw

The reason why I took into account as a solution the commenting of that line is that LIBRTE_EAL already has rte_malloc integrated. So, I'm not sure why the line is needed ...
/Alin

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Monday, July 20, 2015 7:15 PM
To: Rauta, Alin
Cc: [email protected]; Varlese, Marco
Subject: Re: [dpdk-dev] [PATCH] DPDK fails to build into one single library ("CONFIG_RTE_BUILD_COMBINE_LIBS=y").

2015-07-20 18:04, Rauta, Alin:

lib/Makefile include $(RTE_SDK)/mk/rte.vars.mk · line 36

Quoted 7 lines
lib/Makefile +0 -1
@@ -33,7 +33,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
 
 DIRS-y += librte_compat
 DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal
-DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_malloc

I feel it's not the right fix :)

Quoted 1 line

From now, I'll test combine lib build.

Thanks for reporting

#11 lore raw
Quoted 3 lines · Alin

The reason why I took into account as a solution the commenting of that line is that LIBRTE_EAL already has rte_malloc integrated. So, I'm not sure why the line is needed ...
/Alin

That line is needed so when we create shared libs it creates a dummy lib so we don't brake apps that expect a librte_malloc.so.

I'm working on a fix, will post it soon.

Sergio

Quoted 20 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Monday, July 20, 2015 7:15 PM
To: Rauta, Alin
Cc: [email protected]; Varlese, Marco
Subject: Re: [dpdk-dev] [PATCH] DPDK fails to build into one single library ("CONFIG_RTE_BUILD_COMBINE_LIBS=y").

2015-07-20 18:04, Rauta, Alin:

lib/Makefile include $(RTE_SDK)/mk/rte.vars.mk · line 36

Quoted 7 lines
lib/Makefile +0 -1
@@ -33,7 +33,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
 
  DIRS-y += librte_compat
  DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal
-DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_malloc

I feel it's not the right fix :)

From now, I'll test combine lib build.
Thanks for reporting

#3 lore raw

PATCH 1/1 malloc: fix combined lib build

In reply to Sergio Gonzalez Monroy

Malloc was moved to the EAL and dummy malloc library was left to not brake apps that had a librte_malloc.so dependency. Note that the dummy library will be removed in the next release.

When building a combined library, all objects are copied to the same directory before creating the library itself.

There a couple of issues:
- CONFIG_RTE_LIBRTE_MALLOC is not a valid option anymore resulting in wrong syntax and a compilation failure. Fix it by replacing it with CONFIG_RTE_LIBRTE_EAL.
- As we kept a dummy library, there are now two objects with the same name. This means that the proper rte_malloc.o object in eal gets overwritten by an empty rte_malloc.o object from the dummy malloc lib. Fix it by changing the name of rte_malloc.o object in the dummy library.

Fixes 2f9d47013e4dbb738 ("mem: move librte_malloc to eal/common")
---
 lib/librte_malloc/Makefile           |  4 ++--
 lib/librte_malloc/rte_malloc.c       | 34 ----------------------------------
 lib/librte_malloc/rte_malloc_empty.c | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 36 deletions(-)
 delete mode 100644 lib/librte_malloc/rte_malloc.c
 create mode 100644 lib/librte_malloc/rte_malloc_empty.c
lib/librte_malloc/Makefile +2 -2
index 32d86b9..9558f3d 100644
@@ -40,9 +40,9 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
 EXPORT_MAP := rte_malloc_version.map
 
 # all source are stored in SRCS-y
-SRCS-$(CONFIG_RTE_LIBRTE_MALLOC) := rte_malloc.c
+SRCS-$(CONFIG_RTE_LIBRTE_EAL) := rte_malloc_empty.c
 
 # this lib needs eal
-DEPDIRS-$(CONFIG_RTE_LIBRTE_MALLOC) += lib/librte_eal
+DEPDIRS-$(CONFIG_RTE_LIBRTE_EAL) += lib/librte_eal
 
 include $(RTE_SDK)/mk/rte.lib.mk
lib/librte_malloc/rte_malloc.c deleted +0 -34
deleted file mode 100644
index 4b9dc7f..0000000
@@ -1,34 +0,0 @@
-/*-
- *   BSD LICENSE
- *
- *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
- *   All rights reserved.
- *
- *   Redistribution and use in source and binary forms, with or without
- *   modification, are permitted provided that the following conditions
- *   are met:
- *
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of Intel Corporation nor the names of its
- *       contributors may be used to endorse or promote products derived
- *       from this software without specific prior written permission.
- *
- *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/* Empty file to be able to create a dummy library for deprecation policy */
lib/librte_malloc/rte_malloc_empty.c new file +34 -0
new file mode 100644
index 0000000..4b9dc7f
@@ -0,0 +1,34 @@
+/*-
+ *   BSD LICENSE
+ *
+ *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
+ *   All rights reserved.
+ *
+ *   Redistribution and use in source and binary forms, with or without
+ *   modification, are permitted provided that the following conditions
+ *   are met:
+ *
+ *     * Redistributions of source code must retain the above copyright
+ *       notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above copyright
+ *       notice, this list of conditions and the following disclaimer in
+ *       the documentation and/or other materials provided with the
+ *       distribution.
+ *     * Neither the name of Intel Corporation nor the names of its
+ *       contributors may be used to endorse or promote products derived
+ *       from this software without specific prior written permission.
+ *
+ *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/* Empty file to be able to create a dummy library for deprecation policy */
Signature · 1 line
1.9.3
#2 lore raw

PATCH 1/1 malloc: fix combined lib build

In reply to Rauta, Alin

Malloc was moved to the EAL and dummy malloc library was left to not brake apps that had a librte_malloc.so dependency. Note that the dummy library will be removed in the next release.

When building a combined library, all objects are copied to the same directory before creating the library itself.

There a couple of issues:
- CONFIG_RTE_LIBRTE_MALLOC is not a valid option anymore resulting in wrong syntax and a compilation failure. Fix it by replacing it with CONFIG_RTE_LIBRTE_EAL.
- As we kept a dummy library, there are now two objects with the same name. This means that the proper rte_malloc.o object in eal gets overwritten by an empty rte_malloc.o object from the dummy malloc lib. Fix it by changing the name of rte_malloc.o object in the dummy library.

Fixes 2f9d47013e4dbb738 ("mem: move librte_malloc to eal/common")
---
 lib/librte_malloc/Makefile           |  4 ++--
 lib/librte_malloc/rte_malloc.c       | 34 ----------------------------------
 lib/librte_malloc/rte_malloc_empty.c | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 36 deletions(-)
 delete mode 100644 lib/librte_malloc/rte_malloc.c
 create mode 100644 lib/librte_malloc/rte_malloc_empty.c
lib/librte_malloc/Makefile +2 -2
index 32d86b9..9558f3d 100644
@@ -40,9 +40,9 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
 EXPORT_MAP := rte_malloc_version.map
 
 # all source are stored in SRCS-y
-SRCS-$(CONFIG_RTE_LIBRTE_MALLOC) := rte_malloc.c
+SRCS-$(CONFIG_RTE_LIBRTE_EAL) := rte_malloc_empty.c
 
 # this lib needs eal
-DEPDIRS-$(CONFIG_RTE_LIBRTE_MALLOC) += lib/librte_eal
+DEPDIRS-$(CONFIG_RTE_LIBRTE_EAL) += lib/librte_eal
 
 include $(RTE_SDK)/mk/rte.lib.mk
lib/librte_malloc/rte_malloc.c deleted +0 -34
deleted file mode 100644
index 4b9dc7f..0000000
@@ -1,34 +0,0 @@
-/*-
- *   BSD LICENSE
- *
- *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
- *   All rights reserved.
- *
- *   Redistribution and use in source and binary forms, with or without
- *   modification, are permitted provided that the following conditions
- *   are met:
- *
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of Intel Corporation nor the names of its
- *       contributors may be used to endorse or promote products derived
- *       from this software without specific prior written permission.
- *
- *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/* Empty file to be able to create a dummy library for deprecation policy */
lib/librte_malloc/rte_malloc_empty.c new file +34 -0
new file mode 100644
index 0000000..4b9dc7f
@@ -0,0 +1,34 @@
+/*-
+ *   BSD LICENSE
+ *
+ *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
+ *   All rights reserved.
+ *
+ *   Redistribution and use in source and binary forms, with or without
+ *   modification, are permitted provided that the following conditions
+ *   are met:
+ *
+ *     * Redistributions of source code must retain the above copyright
+ *       notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above copyright
+ *       notice, this list of conditions and the following disclaimer in
+ *       the documentation and/or other materials provided with the
+ *       distribution.
+ *     * Neither the name of Intel Corporation nor the names of its
+ *       contributors may be used to endorse or promote products derived
+ *       from this software without specific prior written permission.
+ *
+ *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/* Empty file to be able to create a dummy library for deprecation policy */
Signature · 1 line
1.9.3
#4 lore raw

Re: [PATCH] malloc: fix combined lib build

In reply to Sergio Gonzalez Monroy
Quoted 17 lines · Sergio Gonzalez Monroy

Malloc was moved to the EAL and dummy malloc library was left to not brake apps that had a librte_malloc.so dependency. Note that the dummy library will be removed in the next release.

When building a combined library, all objects are copied to the same directory before creating the library itself.

There a couple of issues:
- CONFIG_RTE_LIBRTE_MALLOC is not a valid option anymore resulting in wrong syntax and a compilation failure. Fix it by replacing it with CONFIG_RTE_LIBRTE_EAL.
- As we kept a dummy library, there are now two objects with the same name. This means that the proper rte_malloc.o object in eal gets overwritten by an empty rte_malloc.o object from the dummy malloc lib. Fix it by changing the name of rte_malloc.o object in the dummy library.

Quoted 6 lines
Fixes 2f9d47013e4dbb738 ("mem: move librte_malloc to eal/common")

---

I sent the same patch twice by accident, please ignore the second patch.

Sergio

#5 lore raw

PATCH v2 1/1 malloc: fix combined lib build

In reply to Sergio Gonzalez Monroy

Malloc was moved to the EAL and dummy malloc library was left to not break apps that had a librte_malloc.so dependency. Note that the dummy library will be removed in the next release.

When building a combined library, all objects are copied to the same directory before creating the library itself.

There are a few issues:
- CONFIG_RTE_LIBRTE_MALLOC is not a valid option anymore resulting in wrong syntax and a compilation failure. Fix it by replacing it with CONFIG_RTE_LIBRTE_EAL.
- As we kept a dummy library, there are now two objects with the same name. This means that the proper rte_malloc.o object in eal gets overwritten by an empty rte_malloc.o object from the dummy malloc lib. Fix it by changing the name of rte_malloc.o object in the dummy library.
- Update the copyright year.

Fixes 2f9d47013e4dbb738 ("mem: move librte_malloc to eal/common")

---
v2:
- Fix spelling error (brake -> break)
- Update copyright year of dummy file

 lib/librte_malloc/Makefile           |  4 ++--
 lib/librte_malloc/rte_malloc.c       | 34 ----------------------------------
 lib/librte_malloc/rte_malloc_empty.c | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 36 deletions(-)
 delete mode 100644 lib/librte_malloc/rte_malloc.c
 create mode 100644 lib/librte_malloc/rte_malloc_empty.c
lib/librte_malloc/Makefile +2 -2
index 32d86b9..9558f3d 100644
@@ -40,9 +40,9 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
 EXPORT_MAP := rte_malloc_version.map
 
 # all source are stored in SRCS-y
-SRCS-$(CONFIG_RTE_LIBRTE_MALLOC) := rte_malloc.c
+SRCS-$(CONFIG_RTE_LIBRTE_EAL) := rte_malloc_empty.c
 
 # this lib needs eal
-DEPDIRS-$(CONFIG_RTE_LIBRTE_MALLOC) += lib/librte_eal
+DEPDIRS-$(CONFIG_RTE_LIBRTE_EAL) += lib/librte_eal
 
 include $(RTE_SDK)/mk/rte.lib.mk
lib/librte_malloc/rte_malloc.c deleted +0 -34
deleted file mode 100644
index 4b9dc7f..0000000
@@ -1,34 +0,0 @@
-/*-
- *   BSD LICENSE
- *
- *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
- *   All rights reserved.
- *
- *   Redistribution and use in source and binary forms, with or without
- *   modification, are permitted provided that the following conditions
- *   are met:
- *
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of Intel Corporation nor the names of its
- *       contributors may be used to endorse or promote products derived
- *       from this software without specific prior written permission.
- *
- *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/* Empty file to be able to create a dummy library for deprecation policy */
lib/librte_malloc/rte_malloc_empty.c new file +34 -0
new file mode 100644
index 0000000..4892a61
@@ -0,0 +1,34 @@
+/*-
+ *   BSD LICENSE
+ *
+ *   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
+ *   All rights reserved.
+ *
+ *   Redistribution and use in source and binary forms, with or without
+ *   modification, are permitted provided that the following conditions
+ *   are met:
+ *
+ *     * Redistributions of source code must retain the above copyright
+ *       notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above copyright
+ *       notice, this list of conditions and the following disclaimer in
+ *       the documentation and/or other materials provided with the
+ *       distribution.
+ *     * Neither the name of Intel Corporation nor the names of its
+ *       contributors may be used to endorse or promote products derived
+ *       from this software without specific prior written permission.
+ *
+ *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/* Empty file to be able to create a dummy library for deprecation policy */
Signature · 1 line
1.9.3
#6 lore raw

Re: [PATCH v2] malloc: fix combined lib build

Quoted 18 lines

Malloc was moved to the EAL and dummy malloc library was left to not break apps that had a librte_malloc.so dependency. Note that the dummy library will be removed in the next release.

When building a combined library, all objects are copied to the same directory before creating the library itself.

There are a few issues:
- CONFIG_RTE_LIBRTE_MALLOC is not a valid option anymore resulting in wrong syntax and a compilation failure. Fix it by replacing it with CONFIG_RTE_LIBRTE_EAL.
- As we kept a dummy library, there are now two objects with the same name. This means that the proper rte_malloc.o object in eal gets overwritten by an empty rte_malloc.o object from the dummy malloc lib. Fix it by changing the name of rte_malloc.o object in the dummy library.
- Update the copyright year.

Quoted 4 lines
Fixes 2f9d47013e4dbb738 ("mem: move librte_malloc to eal/common")

Applied, thanks