Thanks once again for that insight Jeff. Indeed it is my configuration. When I run the code snippet you sent I get exactly the result you have " NSIG is 65". So I have to ensure my configure is pointing to the right libraries.
On Wed, Sep 28, 2022 at 2:02 AM Jeff Squyres (jsquyres) <jsquy...@cisco.com> wrote: > I'm not sure why that would happen; it does sound like some kind of > misconfiguration on your system. > > If I compile this trivial application on Ubuntu 18.04: > > #include <signal.h> > > #include <stdio.h> > > > int main() { > > printf("NSIG is %d\n", NSIG); > > return 0; > > } > > Like this: > > $ gcc foo.c -o foo && ./foo > > NSIG is 65 > > You can see that NSIG is definitely defined for me. > > It's likely that until the above trivial program can compile properly, > Open MPI won't compile properly, either. > > -- > Jeff Squyres > jsquy...@cisco.com > ------------------------------ > *From:* Zilore Mumba <zmu...@gmail.com> > *Sent:* Tuesday, September 27, 2022 2:51 PM > *To:* Jeff Squyres (jsquyres) <jsquy...@cisco.com> > *Cc:* users@lists.open-mpi.org <users@lists.open-mpi.org> > *Subject:* Re: [OMPI users] openmpi compile failure > > Thanks Jeff, > I have tried with openmpi-4.1.4, but I still get the same error. The main > error being > ../../../../../../opal/mca/event/libevent2022/libevent/signal.c:135:14: > error: ‘NSIG’ undeclared (first use in this function); did you mean ‘_NSIG’? > int ncaught[NSIG]; > ^~~~ > _NSIG > But I notice that inthe file "/usr/include/x86_64-linux-gnu/asm/signal.h" > there is some definition of NSIG > #define NSIG 32 > typedef unsigned long sigset_t; > .... > .... > /* These should not be considered constants from userland. */ > #define SIGRTMIN 32 > #define SIGRTMAX _NSIG > > So I am wondering if it is my system which is not picking up the correct > version of signal.h > I have a attached a new zipped file ompi-output-tar.bz2, which is also on > dropbox, link > https://www.dropbox.com/s/ps49xqximjnn8oy/ompi-output.tar.bz2?dl=0 > > > On Tue, Sep 27, 2022 at 2:19 PM Jeff Squyres (jsquyres) < > jsquy...@cisco.com> wrote: > > Can you re-try with the latest Open MPI v4.1.x release (v4.1.4)? There > have been many bug fixes since v4.1.0. > > -- > Jeff Squyres > jsquy...@cisco.com > > ------------------------------ > *From:* users <users-boun...@lists.open-mpi.org> on behalf of Zilore > Mumba via users <users@lists.open-mpi.org> > *Sent:* Tuesday, September 27, 2022 5:10 AM > *To:* users@lists.open-mpi.org <users@lists.open-mpi.org> > *Cc:* Zilore Mumba <zmu...@gmail.com> > *Subject:* Re: [OMPI users] openmpi compile failure > > I am seeking help compiling openmpi. My compilation and installation > output is in dropbox at the link below > https://www.dropbox.com/s/1a9tv5lnwicnhds/ompi-output.tar.bz2?dl=0 > Help will be appreciated. > >