Re: [Bug-glpk] GLPK (4.47) fails to build with LTO (GCC 4.6.3, '-flto')

2012-03-18 Thread glpk xypron
Best regards Xypron Original-Nachricht Datum: Sat, 17 Mar 2012 15:05:30 +0300 Betreff: Re: [Bug-glpk] GLPK (4.47) fails to build with LTO (GCC 4.6.3, \'-flto\') Most likely the error is caused by autotools, so regenerating configure and makefiles with a newer version

Re: [Bug-glpk] GLPK (4.47) fails to build with LTO (GCC 4.6.3, '-flto')

2012-03-18 Thread Andrew Makhorin
Hi Xypron, many users may not be aware of the correct usage of autotools. Hence I suggest you add a file bootstrap.sh to the distribution with content #!/bin/sh libtoolize --copy --force aclocal -I m4 autoconf autoheader automake --add-missing --copy and add a note in the INSTALL

Re: [Bug-glpk] GLPK (4.47) fails to build with LTO (GCC 4.6.3, '-flto')

2012-03-17 Thread Andrew Makhorin
I noticed this with GLPK 4.44, but the latest version 4.47 shows (almost) the same behavior; only the line number(s) of the syntax errors differ(s). While 'configure' shows an error (see below), it continues and exits normally. Then, much later in the build, libtool causes (shell)

Re: [Bug-glpk] GLPK (4.47) fails to build with LTO (GCC 4.6.3, '-flto')

2012-03-17 Thread Andrew Makhorin
Well, I first thought it was some libtool issue, but it seems something in 'configure[.in]' goes wrong, and somebody(tm) wrote the latter... ;-) 'configure.in' is also automatically generated (by autoconf). The source file written by a human is 'configure.ac'. As to errors detected by

Re: [Bug-glpk] GLPK (4.47) fails to build with LTO (GCC 4.6.3, '-flto')

2012-03-17 Thread Andrew Makhorin
Most likely the error is caused by autotools, so regenerating configure and makefiles with a newer version of autotools may resolve the problem (I used autoconf-2.65 and automake-1.11.1 released about 3 years ago). I used the following commands to generate the configure script and Makefiles