All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: oulijun <oulijun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
Cc: linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Linuxarm <linuxarm-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
Subject: Re: [bug] build the user-space stack code in github is fail on ubuntu
Date: Fri, 14 Oct 2016 14:56:07 +0300	[thread overview]
Message-ID: <20161014115607.GH9282@leon.nu> (raw)
In-Reply-To: <5800A835.5020207-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>

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

On Fri, Oct 14, 2016 at 05:41:09PM +0800, oulijun wrote:
> Sorry, it is my careless.
>
>  it is fail for building rdma-core branch.
>  build environment: ubuntu
>
>  is the user-space stack in github not support to ubuntu?
>
> when use cmake build, the bug is as follows:
> ubuntu@62fe1357a077:~/rdma_core/rdma-core/build_1$ cmake ..
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
> -- checking for modules 'libnl-3.0;libnl-route-3.0'
> --   found libnl-3.0, version 3.2.21
> --   found libnl-route-3.0, version 3.2.21
> -- Check size of long
> -- Check size of long - done
> -- Looking for rdma/rdma_user_rxe.h
> -- Looking for rdma/rdma_user_rxe.h - not found
> -- Looking for valgrind/memcheck.h
> -- Looking for valgrind/memcheck.h - found
> -- Looking for valgrind/drd.h
> -- Looking for valgrind/drd.h - found
> -- Performing Test LIBC_HAS_LIBRT
> -- Performing Test LIBC_HAS_LIBRT - Success
> -- Missing Optional Items:
> --  rdma/rdma_user_rxe.h NOT found (old system kernel headers)
> --  -Wmissing-field-initializers does NOT work
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/ubuntu/rdma_core/rdma-core/build_1
>
>  but if i directly use the build.sh, the log as fllows:
>  -- The C compiler identification is GNU 4.8.4
>  -- Check for working C compiler using: Ninja
>  -- Check for working C compiler using: Ninja -- broken
>  CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
>    The C compiler "/usr/bin/cc" is not able to compile a simple test program.
>
>    It fails with the following output:
>
>     Change Dir: /home/ubuntu/rdma_core/rdma-core/build/CMakeFiles/CMakeTmp
>
>
>
>    Run Build Command:/usr/sbin/ninja cmTryCompileExec2838577708
>
>    log: reading configuration file: cmTryCompileExec2838577708
>
>
>
>    die: error: unable to read configuration file
>
>
>
>    CMake will not be able to correctly generate this project.
>  Call Stack (most recent call first):
>    CMakeLists.txt:24 (project)
>
>
>  -- Configuring incomplete, errors occurred!

According to error log, you didn't install ninja build system.
sudo apt-get install ninja-build

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

  parent reply	other threads:[~2016-10-14 11:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-14  9:24 [bug] build the user-space stack code in github is fail on ubuntu oulijun
     [not found] ` <5800A467.2020602-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2016-10-14  9:41   ` oulijun
     [not found]     ` <5800A835.5020207-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2016-10-14 11:56       ` Leon Romanovsky [this message]
2016-10-14 16:48       ` Jason Gunthorpe
2016-10-14 16:46   ` Jason Gunthorpe
     [not found]     ` <20161014164604.GC6258-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-10-17  8:48       ` oulijun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161014115607.GH9282@leon.nu \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linuxarm-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
    --cc=oulijun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.