[Top][All Lists]

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

Re: Unable to build Bison with PGI compilers

From: Paul Eggert
Subject: Re: Unable to build Bison with PGI compilers
Date: Tue, 31 Jan 2017 14:31:40 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 01/31/2017 09:04 AM, Stewart, Adam James wrote:

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':
 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]