[GA 5.8 gcc@8.3.1] error: conflicting types for 'poll'

Skip to first unread message

Thibaut Very

May 11, 2021, 6:06:47 AM5/11/21
to hpctools
I am trying to compile GA 5.8 with GCC 8.3.1 on our machine and I got the following problem:
  static int poll(int* items_processed);
In file included from /usr/include/poll.h:1,
                from /usr/include/rdma/fi_eq.h:36,
                from /usr/include/rdma/fi_domain.h:38,
                from src-ofi/comex.c:24:
/usr/include/sys/poll.h:54:12: note: previous declaration of 'poll' was here
extern int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout);
make[3]: *** [Makefile:1377: src-ofi/comex.lo] Error 1

It seems that the compiler is not happy with poll being defined twice.

Do you have any workaround for that?

System info:
$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)

$ rpm -qa | grep fabric

Best regards

Palmer, Bruce J

May 11, 2021, 10:24:49 AM5/11/21
to hpct...@googlegroups.com



The OFI runtime was a contributed runtime and we don’t know much about it. However, it looks like the problem is in the rdma headers, so you might check to see if they are installed correctly. There is also an OFA runtime that you might try. In the past this has worked better than OFI when I’ve tried it but I believe both are slower than the progress ranks runtime.




From: "hpct...@googlegroups.com" <hpct...@googlegroups.com> on behalf of Thibaut Very <tve...@gmail.com>
Reply-To: "hpct...@googlegroups.com" <hpct...@googlegroups.com>
Date: Tuesday, May 11, 2021 at 3:08 AM
To: "hpct...@googlegroups.com" <hpct...@googlegroups.com>
Subject: [hpctools] [GA 5.8 g...@8.3.1] error: conflicting types for 'poll'


Check twice before you click! This email originated from outside PNNL.


You received this message because you are subscribed to the Google Groups "hpctools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hpctools+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hpctools/236acaa5-1dc0-4d9a-b349-079e5e97020dn%40googlegroups.com.

Reply all
Reply to author
0 new messages