public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* Building rdma-core from github gave an error "Unknown arguments specified"
@ 2018-01-12  9:35 Kevin Wilson
       [not found] ` <CAGXs5wUoLZLtmHhyRm3poALO5ZGSdS5u4+saKhigMgHivw-9Eg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Wilson @ 2018-01-12  9:35 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hi,
I had cloned the latest rdma-core:
https://github.com/linux-rdma/rdma-core.git

I am trying to build it on Fedora 27 x86_64 machine.
When I ran:
bash build.sh
I got the following:

CMake Error at buildlib/RDMA_BuildType.cmake:32 (if):
  if given arguments:

    "STREQUAL" "-O2 -g -DNDEBUG"

  Unknown arguments specified
Call Stack (most recent call first):
  CMakeLists.txt:145 (RDMA_BuildType)


-- Configuring incomplete, errors occurred!
See also "/work/down/temp/rdma-core/build/CMakeFiles/CMakeOutput.log".
See also "/work/down/temp/rdma-core/build/CMakeFiles/CMakeError.log".

Any ideas what can it be ?

More details:
As said, I am on the latest git commit, on the master branch:
git log | more
commit c4345781db3d4d24578873b612357124c6b3d1e3
Author: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
Date:   Thu Jan 4 15:27:51 2018 +0100

    debian: Update changelog to include Debian uploads 16.x

Regards,
KW
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building rdma-core from github gave an error "Unknown arguments specified"
       [not found] ` <CAGXs5wUoLZLtmHhyRm3poALO5ZGSdS5u4+saKhigMgHivw-9Eg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2018-01-12 11:56   ` Leon Romanovsky
  2018-01-12 18:08   ` Jason Gunthorpe
  1 sibling, 0 replies; 3+ messages in thread
From: Leon Romanovsky @ 2018-01-12 11:56 UTC (permalink / raw)
  To: Kevin Wilson; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]

On Fri, Jan 12, 2018 at 11:35:04AM +0200, Kevin Wilson wrote:
> Hi,
> I had cloned the latest rdma-core:
> https://github.com/linux-rdma/rdma-core.git
>
> I am trying to build it on Fedora 27 x86_64 machine.
> When I ran:
> bash build.sh
> I got the following:
>
> CMake Error at buildlib/RDMA_BuildType.cmake:32 (if):
>   if given arguments:
>
>     "STREQUAL" "-O2 -g -DNDEBUG"
>
>   Unknown arguments specified
> Call Stack (most recent call first):
>   CMakeLists.txt:145 (RDMA_BuildType)
>
>
> -- Configuring incomplete, errors occurred!
> See also "/work/down/temp/rdma-core/build/CMakeFiles/CMakeOutput.log".
> See also "/work/down/temp/rdma-core/build/CMakeFiles/CMakeError.log".
>
> Any ideas what can it be ?

Most probably, there is a missing build dependency.
I tested clean fc27 build in container and it worked flawlessly.
https://patchwork.kernel.org/patch/10160339/

Thanks

>
> More details:
> As said, I am on the latest git commit, on the master branch:
> git log | more
> commit c4345781db3d4d24578873b612357124c6b3d1e3
> Author: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
> Date:   Thu Jan 4 15:27:51 2018 +0100
>
>     debian: Update changelog to include Debian uploads 16.x
>
> Regards,
> KW
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building rdma-core from github gave an error "Unknown arguments specified"
       [not found] ` <CAGXs5wUoLZLtmHhyRm3poALO5ZGSdS5u4+saKhigMgHivw-9Eg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2018-01-12 11:56   ` Leon Romanovsky
@ 2018-01-12 18:08   ` Jason Gunthorpe
  1 sibling, 0 replies; 3+ messages in thread
From: Jason Gunthorpe @ 2018-01-12 18:08 UTC (permalink / raw)
  To: Kevin Wilson; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

On Fri, Jan 12, 2018 at 11:35:04AM +0200, Kevin Wilson wrote:
> Hi,
> I had cloned the latest rdma-core:
> https://github.com/linux-rdma/rdma-core.git
> 
> I am trying to build it on Fedora 27 x86_64 machine.
> When I ran:
> bash build.sh
> I got the following:
> 
> CMake Error at buildlib/RDMA_BuildType.cmake:32 (if):
>   if given arguments:
> 
>     "STREQUAL" "-O2 -g -DNDEBUG"
> 
>   Unknown arguments specified
> Call Stack (most recent call first):
>   CMakeLists.txt:145 (RDMA_BuildType)

No idea.. Can't reproduce.

I wonder if some quotes are missing:

diff --git a/buildlib/RDMA_BuildType.cmake b/buildlib/RDMA_BuildType.cmake
index 0951edadeebf61..ea2bbf8e639c2f 100644
--- a/buildlib/RDMA_BuildType.cmake
+++ b/buildlib/RDMA_BuildType.cmake
@@ -29,7 +29,7 @@ function(RDMA_BuildType)
   # with the -DNDEBUG removed
   foreach (language CXX C)
     set(VAR_TO_MODIFY "CMAKE_${language}_FLAGS_RELWITHDEBINFO")
-    if (${${VAR_TO_MODIFY}} STREQUAL ${${VAR_TO_MODIFY}_INIT})
+    if ("${${VAR_TO_MODIFY}}" STREQUAL ${${VAR_TO_MODIFY}_INIT})
 	string(REGEX REPLACE "(^| )[/-]D *NDEBUG($| )"
 	  " "
 	  replacement
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-12 18:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-12  9:35 Building rdma-core from github gave an error "Unknown arguments specified" Kevin Wilson
     [not found] ` <CAGXs5wUoLZLtmHhyRm3poALO5ZGSdS5u4+saKhigMgHivw-9Eg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-12 11:56   ` Leon Romanovsky
2018-01-12 18:08   ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox