Skip to Content.
Sympa Menu

charm - Re: [charm] In file included from cpuaffinity.C:28:0: /usr/include/infiniband/verbs.h: In function ‘verbs_context* verbs_get_ctx(const ibv_context*)’:

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] In file included from cpuaffinity.C:28:0: /usr/include/infiniband/verbs.h: In function ‘verbs_context* verbs_get_ctx(const ibv_context*)’:


Chronological Thread 
  • From: Matthias Diener <matthias.diener AT gmail.com>
  • To: 王伊秋 <51204300111 AT stu.ecnu.edu.cn>
  • Cc: charm <charm AT cs.illinois.edu>
  • Subject: Re: [charm] In file included from cpuaffinity.C:28:0: /usr/include/infiniband/verbs.h: In function ‘verbs_context* verbs_get_ctx(const ibv_context*)’:
  • Date: Tue, 2 Mar 2021 16:10:36 -0600
  • Authentication-results: ppops.net; spf=softfail smtp.mailfrom=matthias.diener AT gmail.com; dkim=fail header.d=gmail.com header.s=20161025

Hi Cynthia,

Could you please open an issue on our Github
(https://urldefense.com/v3/__https://github.com/UIUC-PPL/charm/issues__;!!DZ3fjg!oIwJfF3e6mQ64f7YXl7_YU2yB_BAitVUJahptELT9BKksIp41nvUTGx1xVo0T_s3JAU$
) with this information? Does
this error happen with the current git version of Charm++ as well?

Thank you,
Matthias

On Fri, Feb 26, 2021 at 11:43 PM 王伊秋
<51204300111 AT stu.ecnu.edu.cn>
wrote:
>
> Hello!I want to ask you about compiling NAMD.When I built the charm
> ++/converse library,it shows:
>
> In file included from cpuaffinity.C:28:0:
>
> /usr/include/infiniband/verbs.h: In function ‘verbs_context*
> verbs_get_ctx(const ibv_context*)’:
>
> /usr/include/infiniband/verbs.h:924:10: error: cannot convert ‘ibv_context’
> to ‘const int’ in initialization
>
> NULL : container_of(ctx, struct verbs_context, context);
>
> ^
>
> /usr/include/infiniband/verbs.h:924:10: error: expected ‘,’ or ‘;’ before
> ‘*’ token
>
> NULL : container_of(ctx, struct verbs_context, context);
>
> ^
>
> /usr/include/infiniband/verbs.h:924:10: error: ‘__mptr’ was not declared in
> this scope
>
> NULL : container_of(ctx, struct verbs_context, context);
>
> ^
>
> /usr/include/infiniband/verbs.h:923:62: error: third operand to the
> conditional operator is of type ‘void’, but the second operand is neither a
> throw-expression nor of type ‘void’
>
> return (!ctx || (ctx->abi_compat != ((uint8_t *)NULL) - 1)) ?
>
> ^
>
> /usr/include/infiniband/verbs.h: In function ‘verbs_device*
> verbs_get_device(const ibv_device*)’:
>
> /usr/include/infiniband/verbs.h:931:10: error: cannot convert ‘ibv_device’
> to ‘const int’ in initialization
>
> NULL : container_of(dev, struct verbs_device, device);
>
> ^
>
> /usr/include/infiniband/verbs.h:931:10: error: expected ‘,’ or ‘;’ before
> ‘*’ token
>
> NULL : container_of(dev, struct verbs_device, device);
>
> ^
>
> /usr/include/infiniband/verbs.h:931:10: error: ‘__mptr’ was not declared in
> this scope
>
> NULL : container_of(dev, struct verbs_device, device);
>
> ^
>
> /usr/include/infiniband/verbs.h:930:34: error: third operand to the
> conditional operator is of type ‘void’, but the second operand is neither a
> throw-expression nor of type ‘void’
>
> return (dev->ops.alloc_context) ?
>
> ^
>
> Fatal Error by charmc in directory
> /gpfs01/home/xiafei2/yqwang/software/NAMD_2.14_Source/charm-6.10.2/verbs-linux-x86_64-smp/tmp
>
> Command g++ -DCMK_GFORTRAN -D_REENTRANT -I../bin/../include
> -D__CHARMC__=1 -I. -O3 -U_FORTIFY_SOURCE -fno-stack-protector -std=c++11
> -fno-lifetime-dse -c cpuaffinity.C -o cpuaffinity.o returned error code 1
>
> charmc exiting...
>
> gmake: *** [cpuaffinity.o] Error 1
>
> -------------------------------------------------
>
> Why?I am praying for your help with full appreciation.
>
> Best wishes!
>
>
> Cynthia
>
>
>


  • Re: [charm] In file included from cpuaffinity.C:28:0: /usr/include/infiniband/verbs.h: In function ‘verbs_context* verbs_get_ctx(const ibv_context*)’:, Matthias Diener, 03/02/2021

Archive powered by MHonArc 2.6.19.

Top of Page