I think that file does get included indirectly, but the real issue is the old 
Intel compiler not supporting (struct argparse).  I.e., the solution might well 
be "use a newer compiler."


> On Oct 2, 2017, at 2:44 PM, r...@open-mpi.org wrote:
> 
> I correctly understood the file and the errors. I’m just pointing out that 
> the referenced file cannot possibly contain a pointer to 
> opal/threads/condition.h. There is no include in that file that can pull in 
> that path.
> 
> 
>> On Oct 2, 2017, at 11:39 AM, Jeff Squyres (jsquyres) <jsquy...@cisco.com> 
>> wrote:
>> 
>> Ralph --
>> 
>> I think he cited a typo in his email.  The actual file he is referring to is 
>> 
>> -----
>> $ find . -name pmix_mmap.c
>> ./opal/mca/pmix/pmix2x/pmix/src/sm/pmix_mmap.c
>> -----
>> 
>> From his log file, there appear to be two problems:
>> 
>> -----
>> sm/pmix_mmap.c(66): warning #266: function "posix_fallocate" declared 
>> implicitly
>>     if (0 != (rc = posix_fallocate(sm_seg->seg_id, 0, size))) {
>>                    ^
>> 
>> sm/pmix_mmap.c(88): warning #266: function "ftruncate" declared implicitly
>>     if (0 != ftruncate(sm_seg->seg_id, size)) {
>>              ^
>> -----
>> 
>> (which are just warnings but we should probably fix them)
>> 
>> and
>> 
>> -----
>> /opt/openmpi-3.0.0-Intel-src/opal/threads/condition.h(96): error: pointer to 
>> incomplete class type is not allowed
>>         absolute.tv_sec = abstime->tv_sec;
>>                           ^
>> -----
>> 
>> This one appears to be the actual error.
>> 
>> abstime is a (struct timespec), which, according to 
>> http://pubs.opengroup.org/onlinepubs/7908799/xsh/time.h.html, should be 
>> declared in <time.h>, which is definitely #included by 
>> opal/threads/condition.h.
>> 
>> Since this error occurred with Intel 11.x but didn't occur with later 
>> versions of the Intel compiler, I'm wondering if the Intel 11.x compiler 
>> suite didn't support (struct timespec).
>> 
>> Can you stop using Intel 11.x and only use later versions of the Intel 
>> compiler?
>> 
>> 
>> 
>>> On Oct 1, 2017, at 11:59 PM, r...@open-mpi.org wrote:
>>> 
>>> Afraid I’m rather stumped on this one. There is no such include file in 
>>> pmix_mmap, nor is there any include file that might lead to it. You might 
>>> try starting again from scratch to ensure you aren’t getting some weird 
>>> artifact.
>>> 
>>> 
>>>> On Sep 29, 2017, at 1:12 PM, Ted Sussman <ted.suss...@adina.com> wrote:
>>>> 
>>>> Hello all,
>>>> 
>>>> I downloaded openmpi-3.0.0.tar.gz and attempted to build it on my Red Hat 
>>>> Linux computer, kernel 2.6.18-194.el5.
>>>> 
>>>> The C compiler used is Intel icc, version 11.1.
>>>> 
>>>> The make failed when compiling pmix_mmap, with messages such as
>>>> 
>>>> /opt/openmpi-3.0.0-Intel-src/opal/threads/conditions.h(96): error: pointer 
>>>> to incomplete class type is not allowed
>>>> 
>>>>   absolute.tv_sec = abstime->tv_sec;
>>>> 
>>>> I have attached a tar file with the output from configure and the output 
>>>> from make.
>>>> 
>>>> I was able to build openmpi-2.1.1 using the same computer and compiler.
>>>> 
>>>> I was able to build openmpi-3.0.0 using a different computer, with icc 
>>>> version 14.0.4.
>>>> 
>>>> Can you please tell me how I can avoid this compilation error, when using 
>>>> icc version 11.1?
>>>> 
>>>> Sincerely,
>>>> 
>>>> Ted Sussman
>>>> 
>>>> The following section of this message contains a file attachment
>>>> prepared for transmission using the Internet MIME message format.
>>>> If you are using Pegasus Mail, or any other MIME-compliant system,
>>>> you should be able to save it or view it from within your mailer.
>>>> If you cannot, please ask your system administrator for assistance.
>>>> 
>>>> ---- File information -----------
>>>>   File:  openmpi.tgz
>>>>   Date:  29 Sep 2017, 15:59
>>>>   Size:  41347 bytes.
>>>>   Type:  Binary
>>>> <openmpi.tgz>_______________________________________________
>>>> users mailing list
>>>> users@lists.open-mpi.org
>>>> https://lists.open-mpi.org/mailman/listinfo/users
>>> 
>>> _______________________________________________
>>> users mailing list
>>> users@lists.open-mpi.org
>>> https://lists.open-mpi.org/mailman/listinfo/users
>> 
>> 
>> -- 
>> Jeff Squyres
>> jsquy...@cisco.com
>> 
>> _______________________________________________
>> users mailing list
>> users@lists.open-mpi.org
>> https://lists.open-mpi.org/mailman/listinfo/users
> 
> _______________________________________________
> users mailing list
> users@lists.open-mpi.org
> https://lists.open-mpi.org/mailman/listinfo/users


-- 
Jeff Squyres
jsquy...@cisco.com

_______________________________________________
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users

Reply via email to