[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Unable to build Bison with PGI compilers

From: Stewart, Adam James
Subject: RE: Unable to build Bison with PGI compilers
Date: Mon, 6 Feb 2017 22:17:40 +0000


You're absolutely right, I guess I'm the only one out there using the PGI 
compilers haha. I added your patch to our package manager:


Dozens of tests fail during `make check`, but I'm less concerned about that.

Adam J. Stewart
Assistant Systems Administrator
Laboratory Computing Resource Center
Computing, Environment and Life Sciences
Argonne National Laboratory

From: Paul Eggert address@hidden
Sent: Tuesday, January 31, 2017 4:31 PM
To: Stewart, Adam James; address@hidden
Subject: Re: Unable to build Bison with PGI compilers

On 01/31/2017 09:04 AM, Stewart, Adam James wrote:
> Hi,
> I'm trying to install Bison 3.0.4 with PGI 16.5, but make crashes with the 
> following error messages:
> src/bison-InadequacyList.o: In function `xnmalloc':
> /blues/gpfs/home/software/spack-0.10.0/var/spack/stage/bison-3.0.4-qofkgp3xfpikbq7oj7khyo6sh6mmmmgj/bison-3.0.4/lib/xalloc.h:108:
>  multiple definition of `xnmalloc'

This is the same as the problem you reported against GNU M4 last March.
PGI by default does not support the C99 'inline' keyword properly. A
workaround was installed into Gnulib here:


This fix should appear in the next Bison version, whenever it comes out.
In the meantime you can apply the Gnulib patch to your copy of Bison,
and run 'make'; you'll need developer tools like Autoconf installed to
do that.

I expect PGI's lack of support is inadvertent: that is, I suspect the
PGI folks think that PGI supports C99 'extern inline', but the support
is buggy. As a PGI user you might file a bug report with them, and you
can point them at the Bison 3.0.4 source code as an example of the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]