linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rdma-core compilation failed in Ubuntu 18.04
       [not found] ` <MW2PR2101MB098617BA469695962B163707DADB0@MW2PR2101MB0986.namprd21.prod.outlook.com>
@ 2019-08-04  7:01   ` Ju-Hyoung Lee
  2019-08-06 18:39     ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Ju-Hyoung Lee @ 2019-08-04  7:01 UTC (permalink / raw)
  To: linux-rdma; +Cc: Ju-Hyoung Lee

Hi all,

This is Azure VM with Ubuntu 18.04, the 'bash build.sh' failed with below error. I post the required information below also.
This is Azure Standard_NC24r VM size. So it has GPU and RDMA enabled. I don't know what it means "cc: error: unrecognized command line option '-Wcast-function-type'; did you mean '-Wbad-function-cast'?" I did not modify any file. If you need any, please let me know.

<how to repro>
%git clone <repo of rdma-core>
%cd rdma-core
%bash build. sh

<error>
root@juhlee-137339034-1:~/rdma-core# bash build.sh
-- Could NOT find cython (missing: CYTHON_EXECUTABLE CYTHON_VERSION_STRING)
-- Could NOT find pandoc (missing: PANDOC_EXECUTABLE PANDOC_VERSION_STRING)
-- Could NOT find rst2man (missing: RST2MAN_EXECUTABLE RST2MAN_VERSION_STRING)
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:36 (find_package_handle_standard_args)
  CMakeLists.txt:436 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/root/rdma-core/build/CMakeFiles/CMakeOutput.log".
See also "/root/rdma-core/build/CMakeFiles/CMakeError.log".
root@juhlee-137339034-1:~/rdma-core#

<System info>
root@juhlee-137339034-1:~/rdma-core# uname -r
4.18.0-1024-azure
root@juhlee-137339034-1:~/rdma-core# more /etc/os-release
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ubuntu.com%2F&data=02%7C01%7Cjuhlee%40microsoft.com%7C3275e088e3d6452057dd08d71876d722%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637004771040425693&sdata=z12ZYrq8XWY3J6SZnGiS11FKUyqgXYGVGchYQfH%2BrnY%3D&reserved=0"
SUPPORT_URL="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.ubuntu.com%2F&data=02%7C01%7Cjuhlee%40microsoft.com%7C3275e088e3d6452057dd08d71876d722%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637004771040425693&sdata=djbqW%2BCC5dKJJ0OAjFUjN8KJS6vG%2FV1VIQBjgLADuWY%3D&reserved=0"
BUG_REPORT_URL="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.launchpad.net%2Fubuntu%2F&data=02%7C01%7Cjuhlee%40microsoft.com%7C3275e088e3d6452057dd08d71876d722%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637004771040435690&sdata=YTc5fOFHEPujyIDR4%2F%2BDEXmBwOw9lBqJ5XI8NvJg82s%3D&reserved=0"
PRIVACY_POLICY_URL="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ubuntu.com%2Flegal%2Fterms-and-policies%2Fprivacy-policy&data=02%7C01%7Cjuhlee%40microsoft.com%7C3275e088e3d6452057dd08d71876d722%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637004771040435690&sdata=DK4jNF2oql4f9EgW5umea6ngRz1vOCEOON3MNK5QSlY%3D&reserved=0"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
root@juhlee-137339034-1:~/rdma-core#

< CMakeError.log file contents>
root@juhlee-137339034-1:~/rdma-core# more /root/rdma-core/build/CMakeFiles/CMakeError.log
Performing C SOURCE FILE Test HAVE_C_WCAST_FUNCTION failed with the following output:
Change Dir: /root/rdma-core/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d2ba5/fast"
/usr/bin/make -f CMakeFiles/cmTC_d2ba5.dir/build.make CMakeFiles/cmTC_d2ba5.dir/build
make[1]: Entering directory '/root/rdma-core/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d2ba5.dir/src.c.o
/usr/bin/cc   -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Wformat=2 -DHAVE_C_WCAST_FUNCTION   -Wcast-function-type -o CMakeFiles/cmTC_d2ba5
.dir/src.c.o   -c /root/rdma-core/build/CMakeFiles/CMakeTmp/src.c
cc: error: unrecognized command line option '-Wcast-function-type'; did you mean '-Wbad-function-cast'?
CMakeFiles/cmTC_d2ba5.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_d2ba5.dir/src.c.o' failed
make[1]: *** [CMakeFiles/cmTC_d2ba5.dir/src.c.o] Error 1
make[1]: Leaving directory '/root/rdma-core/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_d2ba5/fast' failed
make: *** [cmTC_d2ba5/fast] Error 2

Source file was:
int main(void) { return 0; }
Determining if the pthread_create exist failed with the following output:
Change Dir: /root/rdma-core/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_ec514/fast"
/usr/bin/make -f CMakeFiles/cmTC_ec514.dir/build.make CMakeFiles/cmTC_ec514.dir/build
make[1]: Entering directory '/root/rdma-core/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ec514.dir/CheckSymbolExists.c.o
/usr/bin/cc   -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Wformat=2 -Wformat-nonliteral -Wredundant-decls -Wdate-time -Wnested-externs -Wsh
adow    -o CMakeFiles/cmTC_ec514.dir/CheckSymbolExists.c.o   -c /root/rdma-core/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_ec514
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ec514.dir/link.txt --verbose=1
/usr/bin/cc  -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Wformat=2 -Wformat-nonliteral -Wredundant-decls -Wdate-time -Wnested-externs -Wsha
dow    -Wl,--as-needed -Wl,--no-undefined  CMakeFiles/cmTC_ec514.dir/CheckSymbolExists.c.o  -o cmTC_ec514
CMakeFiles/cmTC_ec514.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_ec514.dir/build.make:97: recipe for target 'cmTC_ec514' failed
make[1]: *** [cmTC_ec514] Error 1
make[1]: Leaving directory '/root/rdma-core/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_ec514/fast' failed
make: *** [cmTC_ec514/fast] Error 2

File /root/rdma-core/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /root/rdma-core/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_cad04/fast"
/usr/bin/make -f CMakeFiles/cmTC_cad04.dir/build.make CMakeFiles/cmTC_cad04.dir/build
make[1]: Entering directory '/root/rdma-core/build/CMakeFiles/CMakeTmp'
root@juhlee-137339034-1:~/rdma-core#

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

* Re: rdma-core compilation failed in Ubuntu 18.04
  2019-08-04  7:01   ` rdma-core compilation failed in Ubuntu 18.04 Ju-Hyoung Lee
@ 2019-08-06 18:39     ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2019-08-06 18:39 UTC (permalink / raw)
  To: Ju-Hyoung Lee; +Cc: linux-rdma

On Sun, Aug 04, 2019 at 07:01:29AM +0000, Ju-Hyoung Lee wrote:
> Hi all,
> 
> This is Azure VM with Ubuntu 18.04, the 'bash build.sh' failed with below error. I post the required information below also.
> This is Azure Standard_NC24r VM size. So it has GPU and RDMA enabled. I don't know what it means "cc: error: unrecognized command line option '-Wcast-function-type'; did you mean '-Wbad-function-cast'?" I did not modify any file. If you need any, please let me know.
> 
> <how to repro>
> %git clone <repo of rdma-core>
> %cd rdma-core
> %bash build. sh
> 
> <error>
> root@juhlee-137339034-1:~/rdma-core# bash build.sh
> CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
>   Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Isn't this clear enough what the problem is? You need to install
pkgconfig to build.

Jason

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

end of thread, other threads:[~2019-08-06 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <MW2PR2101MB0986F5879CB967B453141E93DADB0@MW2PR2101MB0986.namprd21.prod.outlook.com>
     [not found] ` <MW2PR2101MB098617BA469695962B163707DADB0@MW2PR2101MB0986.namprd21.prod.outlook.com>
2019-08-04  7:01   ` rdma-core compilation failed in Ubuntu 18.04 Ju-Hyoung Lee
2019-08-06 18:39     ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).